:root {
    --purple-950: #241d58;
    --purple-800: #393178;
    --purple-700: #524697;
    --purple-600: #685bb0;
    --purple-100: #eeecf9;
    --purple-50: #f7f6fc;
    --yellow-500: #ffd31c;
    --yellow-300: #ffe66d;
    --ink: #211d35;
    --muted: #67627a;
    --surface: #ffffff;
    --background: #f7f6fb;
    --success: #1d7a52;
    --danger: #a82a3a;
    --border: #e3e0ed;
    --shadow: 0 18px 55px rgba(50, 40, 104, .12);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--background);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 90% 5%, rgba(255, 211, 28, .16), transparent 28rem),
        radial-gradient(circle at 5% 35%, rgba(82, 70, 151, .08), transparent 25rem),
        var(--background);
}

button, input { font: inherit; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    width: min(1160px, calc(100% - 2rem));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link { text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; gap: .55rem; }
.brand-name { color: var(--purple-700); font-size: 1.55rem; font-weight: 750; letter-spacing: -.045em; }
.brand-name > span { color: var(--yellow-500); }
.brand-camera {
    position: relative;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 3px solid var(--purple-700);
    border-radius: 12px;
    color: var(--purple-700);
    font-weight: 800;
}
.brand-camera::before { content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border: 2px solid var(--purple-700); border-radius: 50%; }
.brand-camera i { position: absolute; right: -8px; bottom: -5px; color: var(--yellow-500); font-size: 1.55rem; font-style: normal; text-shadow: 0 1px 0 white; }
.brand-logo-compact { transform: scale(.78); transform-origin: left center; }

.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.login-link { min-height: 44px; padding: .7rem 1rem; display: inline-flex; align-items: center; text-decoration: none; color: var(--purple-800); font-weight: 700; }
.login-link:hover { color: var(--purple-600); }

.culture-selector { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.8); }
.culture-selector button { min-width: 39px; min-height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.culture-selector button.active { background: var(--purple-700); color: white; box-shadow: 0 4px 12px rgba(82,70,151,.24); }

.landing-page { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; flex: 1; }
.hero-section { min-height: 610px; padding: 5.5rem 0 4rem; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 4rem; }
.eyebrow { color: var(--purple-700); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h1 { max-width: 700px; margin: .75rem 0 1.25rem; color: var(--purple-950); font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: .99; letter-spacing: -.06em; }
.hero-subtitle { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.65; }
.trust-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-row span { padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: .84rem; }
.trust-row strong { color: var(--purple-700); }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.role-card { min-height: 360px; padding: 1.65rem; display: flex; flex-direction: column; align-items: flex-start; border-radius: 28px; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.role-card:hover { transform: translateY(-5px); box-shadow: 0 25px 65px rgba(50,40,104,.19); }
.role-card-candidate { background: var(--purple-700); color: white; }
.role-card-company { background: var(--yellow-500); color: var(--purple-950); }
.role-icon { width: 52px; height: 52px; margin-bottom: auto; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.18); font-size: 1.4rem; }
.role-card-company .role-icon { background: rgba(82,70,151,.12); }
.role-kicker { margin-top: 2rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.role-card strong { margin: .5rem 0 .65rem; font-size: 1.5rem; line-height: 1.12; letter-spacing: -.035em; }
.role-card > span:not(.role-icon):not(.role-kicker):not(.role-action) { font-size: .93rem; line-height: 1.52; opacity: .84; }
.role-action { margin-top: 1.5rem; font-weight: 800; }

.how-section { margin: 1rem 0 5rem; padding: 2.5rem; display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; border: 1px solid var(--border); border-radius: 30px; background: rgba(255,255,255,.7); }
.how-section h2 { margin: .5rem 0 0; color: var(--purple-950); font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.step-list { margin: 0; padding: 0; display: grid; gap: 1rem; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 1rem; }
.step-list li > span { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-100); color: var(--purple-700); font-weight: 850; }
.step-list div { display: grid; gap: .2rem; }
.step-list strong { color: var(--purple-950); }
.step-list small { color: var(--muted); font-size: .9rem; line-height: 1.4; }

.form-page { width: min(760px, calc(100% - 2rem)); margin: 2.5rem auto 5rem; flex: 1; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--purple-700); font-weight: 700; text-decoration: none; }
.form-card { margin-top: 1rem; padding: clamp(1.4rem, 5vw, 3rem); border: 1px solid var(--border); border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.form-heading { margin-bottom: 2rem; }
.step-badge { display: inline-flex; padding: .4rem .65rem; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); font-size: .75rem; font-weight: 850; }
.form-heading h1 { margin: .8rem 0 .55rem; color: var(--purple-950); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
.form-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.form-card form { display: grid; gap: 1.15rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card label { display: grid; gap: .45rem; color: var(--purple-950); font-size: .88rem; font-weight: 750; }
.form-card label small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.form-card input { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 15px; background: white; color: var(--ink); outline: none; }
.form-card input:focus { border-color: var(--purple-600); box-shadow: 0 0 0 4px rgba(82,70,151,.11); }
.primary-button { min-height: 54px; margin-top: .4rem; padding: .85rem 1.2rem; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 16px; background: var(--yellow-500); color: var(--purple-950); font-weight: 850; cursor: pointer; }
.primary-button:hover { background: var(--yellow-300); }
.form-error { margin: 0; padding: .8rem 1rem; border-radius: 13px; background: #fff0f2; color: var(--danger); font-size: .88rem; }
.form-success { margin: 0; padding: .8rem 1rem; border-radius: 13px; background: #edf9f1; color: #176b3a; font-size: .88rem; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.approval-note { margin-top: 1.5rem; padding: 1rem; display: flex; align-items: flex-start; gap: .8rem; border-radius: 16px; background: var(--purple-50); }
.approval-note > span { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-700); color: white; font-weight: 800; }
.approval-note div { display: grid; gap: .25rem; }
.approval-note strong { color: var(--purple-950); font-size: .9rem; }
.approval-note small { color: var(--muted); line-height: 1.45; }

.site-footer { width: min(1160px, calc(100% - 2rem)); margin: auto auto 0; padding: 1.5rem 0 2rem; display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); }
h1:focus { outline: none; }

@media (max-width: 900px) {
    .hero-section { padding-top: 3rem; grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-copy { text-align: center; }
    .hero-subtitle { margin-inline: auto; }
    .trust-row { justify-content: center; }
    .role-card { min-height: 300px; }
    .how-section { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 620px) {
    .topbar { width: min(100% - 1.25rem, 1160px); min-height: 68px; }
    .brand-name { font-size: 1.25rem; }
    .brand-camera { width: 34px; height: 34px; border-radius: 10px; }
    .login-link { display: none; }
    .landing-page { width: min(100% - 1.25rem, 1160px); }
    .hero-section { min-height: auto; padding: 2.5rem 0 3rem; }
    .hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
    .trust-row { gap: .5rem; }
    .trust-row span { font-size: .73rem; }
    .role-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 245px; border-radius: 24px; }
    .role-kicker { margin-top: 1.2rem; }
    .how-section { margin-bottom: 3rem; padding: 1.35rem; border-radius: 24px; }
    .form-page { width: min(100% - 1.25rem, 760px); margin-top: 1rem; }
    .form-card { border-radius: 24px; }
    .field-grid { grid-template-columns: 1fr; }
    .site-footer { width: min(100% - 1.25rem, 1160px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
