:root {
    --bg: #fafdff;
    --surface: #ffffff;
    --navy: #0b1635;
    --blue: #167bff;
    --cyan: #17c9ef;
    --violet: #6c35ff;
    --text: #101a38;
    --muted: #59627a;
    --border: #dce7f5;
    --shadow: 0 22px 60px rgba(30, 77, 145, 0.12);
    --radius-card: 28px;
    --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg) url("assets/landing-bg-desktop.png") center top / 100% auto repeat-y;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--navy);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.landing-header {
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand { width: clamp(190px, 18vw, 280px); flex: 0 0 auto; }
.brand img, .footer-brand img { width: 100%; height: auto; }

.login-actions { display: flex; align-items: center; gap: 12px; position:relative; }
.auth-popup-message{position:absolute;right:0;top:100%;max-width:360px;margin:7px 0 0;color:#8b3656;font-size:.78rem;font-weight:700;line-height:1.35;text-align:right}

.login-button {
    min-width: 0;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid #cbd9ec;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 8px 24px rgba(30, 77, 145, .05);
    text-decoration: none;
    font-weight: 750;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.login-button img { width: 24px; height: 24px; }
.login-button span { min-width: 0; overflow-wrap: anywhere; }
.login-button:hover { transform: translateY(-2px); border-color: #9ebcf0; box-shadow: 0 12px 28px rgba(30,77,145,.1); }

.hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(480px, 1.06fr);
    align-items: center;
    gap: clamp(24px, 4vw, 68px);
    padding-block: 34px 62px;
}

.eyebrow {
    margin: 0 0 15px;
    color: #2876d9;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(3.45rem, 5.45vw, 5.4rem);
    line-height: .97;
    letter-spacing: -.065em;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(102deg, var(--blue) 0%, #2768ff 46%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 560px;
    margin: 28px 0 30px;
    color: var(--muted);
    font-size: clamp(1.15rem, 1.7vw, 1.48rem);
    line-height: 1.45;
}

.primary-cta {
    width: min(100%, 440px);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 26px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(105deg, #7c16f1 0%, #3d49ff 52%, #079ef7 100%);
    box-shadow: 0 15px 34px rgba(80, 55, 244, .24);
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 850;
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(80,55,244,.3); }
.primary-cta:active { transform: translateY(0) scale(.99); }
.cta-arrow { font-size: 1.7rem; line-height: 1; }

.launch-date { margin: 28px 0 18px; color: #4e5873; font-weight: 650; }
.launch-date time { color: var(--navy); font-weight: 850; }

.countdown {
    width: min(100%, 460px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(220,231,245,.7);
    border-radius: 24px;
    background: rgba(241,247,255,.9);
    box-shadow: 0 14px 36px rgba(46,91,151,.08);
    overflow: hidden;
}

.countdown-cell {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 19px 8px 17px;
}

.countdown-cell + .countdown-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    width: 1px;
    height: 60%;
    background: #cddbec;
}

.countdown strong { color: var(--navy); font-size: clamp(1.55rem, 2.6vw, 2.2rem); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: .82rem; }
.countdown-status { min-height: 1.5em; margin: 8px 0 0; color: var(--blue); font-weight: 750; }

.hero-visual { position: relative; min-width: 0; align-self: end; padding-right: clamp(18px, 2.8vw, 44px); }
.hero-visual .hero-kory { position: relative; z-index: 2; width: min(100%, 590px); margin-inline: auto; filter: drop-shadow(0 22px 24px rgba(23,71,130,.13)); }
.hero-visual .hero-card {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 8%;
    width: 330px;
    max-width: 54%;
    height: auto;
    margin: 0;
    transform: rotate(1.5deg);
    filter: drop-shadow(0 20px 24px rgba(11,22,53,.22));
}
.hero-halo {
    position: absolute;
    z-index: 1;
    inset: 12% 6% 3%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(28,209,245,.2), rgba(46,127,255,.1) 42%, rgba(108,53,255,0) 72%);
}

.how-it-works {
    padding: 70px clamp(24px, 4vw, 54px) 58px;
    border: 1px solid rgba(220,231,245,.9);
    border-radius: 42px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow);
}

.section-heading { max-width: 560px; margin: 0 auto 46px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.section-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 1.08rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; }
.step { position: relative; display: grid; justify-items: center; align-content: start; padding: 18px 24px; text-align: center; }
.step:not(:last-child)::after { content: "›"; position: absolute; right: -22px; top: 45%; color: #7f8da9; font-size: 2.6rem; font-weight: 300; }
.step-number { position: absolute; top: 3px; left: 12%; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #1269ed; background: #e3f1ff; font-weight: 900; }
.step img { width: 84px; height: 84px; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; line-height: 1.2; }
.step p { max-width: 260px; margin: 0; color: var(--muted); line-height: 1.45; }

.benefit-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-block: 34px 76px;
    padding: 30px 26px;
    border-radius: 30px;
    background: linear-gradient(110deg, rgba(233,245,255,.96), rgba(248,248,255,.95));
    box-shadow: 0 14px 40px rgba(30,77,145,.06);
}

.benefit-strip article { display: flex; align-items: center; gap: 17px; padding: 4px 28px; }
.benefit-strip article + article { border-left: 1px solid #cbd9e9; }
.benefit-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: white; border-radius: 17px; background: linear-gradient(145deg, var(--blue), var(--violet)); font-size: 1.9rem; font-weight: 900; }
.benefit-strip h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.08rem; }
.benefit-strip p { margin: 0; color: var(--muted); line-height: 1.4; }

.landing-footer { border-top: 1px solid rgba(220,231,245,.95); background: rgba(255,255,255,.86); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 32px; }
.footer-brand { display: grid; gap: 4px; width: 160px; }
.footer-brand span { color: var(--navy); font-size: .78rem; font-weight: 850; text-align: right; }
.footer-inner nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-inner nav a { color: #4f5b75; text-decoration: none; font-size: .9rem; }
.footer-inner nav a:hover { color: var(--blue); text-decoration: underline; }
.footer-inner > p { margin: 0; color: #5c6680; font-size: .88rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,20,45,.58); backdrop-filter: blur(10px); }
.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background: white;
    box-shadow: 0 32px 90px rgba(5,20,55,.3);
}
.modal-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 23px 24px 10px; }
.modal-kicker { color: #167bff; font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.modal-header h2 { margin: 3px 0 0; color: var(--navy); font-size: 1.6rem; }
.modal-note { margin: 0; padding: 0 24px 14px; color: var(--muted); font-size: .9rem; }
.modal-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #d6e1ef; border-radius: 50%; color: #52617b; background: #f7faff; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.registration-form { min-height: 520px; display: flex; flex-direction: column; overflow: auto; padding: 0 24px 24px; }
.registration-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 22px; }
.registration-progress span { display: flex; align-items: center; gap: 7px; padding: 9px 8px; border-radius: 11px; color: #71809a; background: #f4f7fb; font-size: .76rem; font-weight: 750; }
.registration-progress b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #63728d; background: white; }
.registration-progress span.is-active { color: #0a65d8; background: #e9f4ff; }
.registration-progress span.is-active b { color: white; background: #167bff; }
.registration-panel { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.registration-panel.is-active { display: block; }
.registration-panel legend { padding: 0; color: var(--navy); font-size: 1.08rem; font-weight: 850; }
.registration-panel > p { margin: 5px 0 14px; color: var(--muted); font-size: .86rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid label { display: grid; gap: 7px; color: #43516c; font-size: .82rem; font-weight: 750; }
.field-grid input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cddbec; border-radius: 11px; color: var(--navy); background: white; }
.registration-form.was-validated .field-grid input:invalid { border-color: #ce3465; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.interest-grid label, .preference-list label { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #dce7f5; border-radius: 11px; color: #35435f; background: #fbfdff; font-size: .82rem; }
.interest-grid input, .preference-list input, .consent-row input { accent-color: #167bff; }
.preference-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 11px 0; color: #4e5c75; font-size: .8rem; line-height: 1.4; }
.consent-row input { margin-top: 3px; flex: 0 0 auto; }
.consent-row a { color: #0b6fea; font-weight: 750; }
.registration-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 22px; }
.primary-action, .secondary-action { min-height: 46px; padding: 11px 22px; border-radius: 999px; cursor: pointer; font-weight: 850; }
.primary-action { border: 0; color: white; background: linear-gradient(105deg, #7040ed, #167bff); }
.secondary-action { border: 1px solid #cbd9ec; color: #42516d; background: white; }
.registration-status { margin: auto 0; padding: 24px; border: 1px solid #cfe1f5; border-radius: 18px; color: #42516d; background: #f2f8ff; text-align: center; }
.registration-status strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1.1rem; }
.registration-status p { margin: 0; line-height: 1.5; }

.noscript-notice { position: fixed; z-index: 1001; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 12px; color: white; background: var(--navy); text-align: center; }

:focus-visible { outline: 3px solid #0b82ff; outline-offset: 4px; }

@media (max-width: 980px) {
    .landing-header { min-height: 108px; }
    .brand { width: 205px; }
    .login-button { padding: 11px 16px; font-size: .88rem; }
    .hero { grid-template-columns: 1fr .9fr; min-height: 610px; padding-block: 38px 64px; }
    .hero h1 { font-size: clamp(3rem, 6vw, 4.2rem); }
    .hero-visual .hero-kory { width: min(100%, 540px); }
    .step { padding-inline: 12px; }
    .benefit-strip article { padding-inline: 16px; }
    .footer-inner { grid-template-columns: 170px 1fr; }
    .footer-inner > p { grid-column: 1 / -1; margin-top: -30px; text-align: center; }
}

@media (max-width: 760px) {
    body { background-image: url("assets/landing-bg-mobile.png"); }
    .container { width: min(calc(100% - 32px), var(--container)); }
    .landing-header { min-height: auto; align-items: stretch; flex-direction: column; gap: 18px; padding-block: 24px 10px; }
    .brand { width: 184px; }
    .login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .auth-popup-message{position:static;grid-column:1/-1;max-width:none;margin:0;text-align:center}
    .login-button { min-height: 48px; padding: 10px 11px; gap: 7px; font-size: .77rem; line-height: 1.18; text-align: left; }
    .login-button img { width: 22px; height: 22px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 12px; padding-block: 44px 52px; text-align: center; }
    .hero-copy { display: contents; }
    .hero .eyebrow { order: 1; }
    .hero h1 { order: 2; max-width: 100%; font-size: clamp(2.85rem, 14vw, 4rem); line-height: .96; overflow-wrap: normal; }
    .hero-lead { order: 3; margin: 16px auto 6px; font-size: 1.08rem; }
    .hero-visual { order: 4; width: 88%; margin-inline: auto; padding-right: 16px; align-self: center; }
    .hero-visual .hero-kory { width: 100%; filter: drop-shadow(0 16px 16px rgba(23,71,130,.1)); }
    .hero-visual .hero-card { right: 0; bottom: 7%; width: 54%; max-width: 54%; filter: drop-shadow(0 14px 17px rgba(11,22,53,.2)); }
    .primary-cta { order: 5; width: 100%; min-height: 60px; margin-top: 4px; font-size: 1.08rem; }
    .launch-date { order: 6; margin: 18px 0 5px; font-size: .88rem; line-height: 1.45; }
    .countdown { order: 7; width: 100%; grid-template-columns: 1fr 1fr; }
    .countdown-cell:nth-child(3), .countdown-cell:nth-child(4) { border-top: 1px solid #cddbec; }
    .countdown-cell:nth-child(3)::before { display: none; }
    .countdown-cell { padding-block: 15px; }
    .countdown-status { order: 8; }
    .how-it-works { width: calc(100% - 24px); padding: 50px 22px 30px; border-radius: 30px; }
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: 2.45rem; }
    .steps { grid-template-columns: 1fr; gap: 4px; }
    .step { padding: 25px 10px 35px; }
    .step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -5px; transform: translateX(50%); font-size: 1.5rem; }
    .step-number { left: calc(50% - 72px); top: 18px; }
    .step img { width: 76px; height: 76px; }
    .benefit-strip { grid-template-columns: 1fr; margin-block: 24px 52px; padding: 16px 20px; }
    .benefit-strip article { padding: 18px 4px; }
    .benefit-strip article + article { border-top: 1px solid #cbd9e9; border-left: 0; }
    .footer-inner { min-height: auto; grid-template-columns: 1fr; justify-items: center; gap: 24px; padding-block: 38px; text-align: center; }
    .footer-inner > p { grid-column: auto; margin: 0; }
    .footer-inner nav { gap: 13px 18px; }
    .modal { padding: 0; align-items: stretch; }
    .modal-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
    .registration-form { min-height: 0; flex: 1; padding-inline: 18px; }
    .field-grid, .interest-grid, .preference-list { grid-template-columns: 1fr; }
    .registration-progress span { justify-content: center; font-size: 0; }
    .registration-progress b { font-size: .76rem; }
}

@media (max-width: 380px) {
    .login-actions { grid-template-columns: 1fr; }
    .login-button { justify-content: center; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
