@layer reset, tokens, base, components, sections, responsive, motion, theme-refresh, page-refinements;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    /* Animația este controlată în site.js: exact o secundă pentru fiecare ancoră. */
    html { scroll-behavior: auto; }
    body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
    ul, ol { padding: 0; }
    img, svg { display: block; max-width: 100%; }
    button, input, select, textarea { font: inherit; }
    a { color: inherit; text-decoration: none; }
}

/* Subject-card refinements. */
@layer page-refinements {
    .error-page { min-height: 100svh; background: var(--canvas); }
    .not-found {
        position: relative;
        min-height: 100svh;
        display: grid;
        place-items: center;
        overflow: hidden;
        padding: clamp(42px, 7vw, 88px) 24px;
        background:
            radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--peach) 60%, transparent) 0 12%, transparent 34%),
            radial-gradient(circle at 14% 82%, color-mix(in srgb, var(--sage) 55%, transparent) 0 10%, transparent 34%),
            var(--canvas);
        color: var(--ink);
        text-align: left;
    }
    .not-found::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .34;
        pointer-events: none;
        background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 18%, transparent) 1px, transparent 1px);
        background-size: 28px 28px;
        mask-image: linear-gradient(110deg, transparent 8%, #000 55%, transparent 94%);
    }
    .not-found-grid {
        position: relative;
        z-index: 1;
        width: min(1120px, 100%);
        display: grid;
        grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
        gap: clamp(42px, 8vw, 108px);
        align-items: center;
    }
    .not-found-copy { max-width: 560px; }
    .not-found-code {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 22px;
        color: var(--blue);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
    }
    .not-found-code span { width: 28px; height: 2px; border-radius: 99px; background: var(--blue); }
    .not-found h1 { margin: 0; font-size: clamp(3.4rem, 6.4vw, 6.4rem); line-height: .88; letter-spacing: -.075em; }
    .not-found-lead { max-width: 520px; margin: 30px 0 32px; color: var(--muted-dark); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.7; }
    .not-found-action { min-height: 58px; padding-inline: 24px; }
    .not-found-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; color: var(--muted); font-size: .66rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
    .not-found-meta i { width: 3px; aspect-ratio: 1; border-radius: 50%; background: currentColor; }

    .not-found-visual { position: relative; min-height: 510px; display: grid; place-items: center; perspective: 1200px; }
    .not-found-number {
        position: absolute;
        inset: 50% auto auto 50%;
        color: color-mix(in srgb, var(--blue) 11%, transparent);
        font-family: var(--font-display);
        font-size: clamp(11rem, 24vw, 22rem);
        font-weight: 800;
        line-height: .7;
        letter-spacing: -.12em;
        transform: translate(-53%, -57%);
        user-select: none;
    }
    .book-scene { position: relative; width: min(470px, 92%); aspect-ratio: 1.23; display: grid; place-items: center; transform-style: preserve-3d; animation: bookFloat 5.2s ease-in-out infinite; }
    .book-shadow { position: absolute; left: 10%; right: 7%; bottom: 12%; height: 15%; border-radius: 50%; background: rgba(42, 50, 46, .2); filter: blur(18px); transform: rotate(-2deg); }
    .open-book { position: relative; width: 100%; height: 68%; transform: rotateX(9deg) rotateZ(-2deg); transform-style: preserve-3d; }
    .book-cover { position: absolute; inset: 5% 1% 0; border-radius: 15px 15px 24px 24px; background: var(--sage-strong); box-shadow: 0 28px 48px rgba(49, 58, 53, .24), inset 0 -8px 0 color-mix(in srgb, var(--deep) 36%, transparent); }
    .book-page { position: absolute; top: 0; bottom: 8%; width: 49.5%; padding: 12% 10%; overflow: hidden; background: #fffaf2; border: 1px solid rgba(74, 64, 51, .12); box-shadow: inset 0 -14px 25px rgba(96, 75, 48, .06); }
    .book-page-left { left: 1.5%; border-radius: 18px 5px 7px 22px; transform: skewY(2deg); }
    .book-page-right { right: 1.5%; border-radius: 5px 18px 22px 7px; transform: skewY(-2deg); }
    .book-page-turn { position: absolute; z-index: 4; top: 1%; right: 1.7%; width: 48.5%; height: 90%; padding: 12% 10%; border: 1px solid rgba(74, 64, 51, .12); border-radius: 4px 18px 22px 5px; background: #fffdf7; box-shadow: -10px 8px 22px rgba(72, 57, 42, .12); transform-origin: left center; transform-style: preserve-3d; backface-visibility: hidden; animation: turnBookPage 5.2s cubic-bezier(.65,.05,.25,1) infinite; }
    .page-formula { display: block; margin-bottom: 20%; color: #d96f55; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(.8rem, 1.6vw, 1.05rem); font-weight: 750; white-space: nowrap; }
    .page-line { display: block; width: 78%; height: 4px; margin-top: 9%; border-radius: 99px; background: #93b9b0; opacity: .72; }
    .page-line-long { width: 96%; }
    .page-line-short { width: 56%; }
    .book-spine { position: absolute; z-index: 5; left: 50%; top: 4%; bottom: 8%; width: 3px; border-radius: 99px; background: linear-gradient(180deg, rgba(72,57,42,.08), rgba(72,57,42,.28), rgba(72,57,42,.06)); transform: translateX(-50%); }
    .book-bookmark { position: absolute; z-index: 6; left: 50%; bottom: -7%; width: 26px; height: 36px; background: #d96f55; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); transform: translateX(-50%); }
    .math-note { position: absolute; display: grid; place-items: center; min-width: 54px; min-height: 54px; padding: 10px; border: 1px solid var(--line-dark); border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; font-weight: 800; box-shadow: 0 14px 32px rgba(75, 58, 43, .1); backdrop-filter: blur(10px); }
    .math-note-one { left: 2%; top: 13%; transform: rotate(-9deg); animation: noteFloatOne 4.8s ease-in-out infinite; }
    .math-note-two { right: 7%; top: 8%; transform: rotate(8deg); animation: noteFloatTwo 5.6s ease-in-out infinite; }
    .math-note-three { right: 0; bottom: 12%; transform: rotate(5deg); animation: noteFloatOne 5.2s ease-in-out infinite reverse; }

    @keyframes bookFloat { 0%, 100% { transform: translateY(8px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
    @keyframes turnBookPage { 0%, 18% { transform: rotateY(0deg) skewY(-2deg); } 48%, 62% { transform: rotateY(-168deg) skewY(-2deg); } 92%, 100% { transform: rotateY(0deg) skewY(-2deg); } }
    @keyframes noteFloatOne { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
    @keyframes noteFloatTwo { 0%, 100% { translate: 0 0; } 50% { translate: 7px 10px; } }

    @media (max-width: 860px) {
        .not-found { padding-block: 54px; }
        .not-found-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
        .not-found-copy { max-width: 620px; margin-inline: auto; }
        .not-found-code, .not-found-meta { justify-content: center; }
        .not-found-lead { margin-inline: auto; }
        .not-found-visual { min-height: 370px; }
        .book-scene { width: min(400px, 88%); }
        .math-note-one { left: 8%; }
        .math-note-three { right: 6%; }
    }

    @media (max-width: 520px) {
        .not-found { padding: 38px 18px 46px; }
        .not-found h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
        .not-found-action { width: 100%; }
        .not-found-visual { min-height: 300px; }
        .math-note { min-width: 44px; min-height: 44px; border-radius: 13px; font-size: .7rem; }
        .math-note-one { left: 0; }
        .math-note-two { right: 0; }
        .math-note-three { right: 1%; bottom: 6%; }
    }

    @media (prefers-reduced-motion: reduce) {
        .book-scene, .book-page-turn, .math-note { animation: none; }
        .book-page-turn { transform: rotateY(-18deg) skewY(-2deg); }
    }

    .hero h1 { font-size: clamp(4rem, 7.8vw, 7.6rem); line-height: .88; }

    .subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .subject-card { min-height: 500px; padding: 32px; }
    .subject-card h3 { max-width: 100%; font-size: clamp(2.15rem, 3.6vw, 3.7rem); overflow-wrap: normal; word-break: normal; hyphens: none; }
    .grade-progress.progress-message { grid-template-columns: auto minmax(35px, 1fr) auto; gap: 14px; }
    .grade-progress.progress-message > span { font-size: clamp(1.05rem, 2vw, 1.45rem); letter-spacing: -.045em; white-space: nowrap; }

    .proof-mantra { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-display); font-size: clamp(3.8rem, 7vw, 7rem); font-weight: 760; letter-spacing: -.075em; line-height: .88; }
    .proof-mantra span:first-child { color: rgba(255,255,255,.42); }
    .proof-mantra span:nth-child(2) { color: #fff; }
    .proof-mantra strong { color: #f4cd6f; font-weight: inherit; }
    .proof-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; list-style: none; }
    .proof-facts li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; font-size: .72rem; }
    .proof-facts span { color: #b7c6c0; }

    .coming-section { background: color-mix(in srgb, var(--lavender) 36%, var(--canvas)); }
    .coming-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 9vw, 125px); align-items: start; }
    .coming-copy { position: sticky; top: calc(var(--header-h) + 34px); }
    .coming-copy h2 { font-size: clamp(3rem, 5vw, 5rem); }
    .coming-copy > p:not(.kicker) { margin: 24px 0 34px; color: var(--muted-dark); }
    .coming-points { border-top: 1px solid var(--line-dark); }
    .coming-points article { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
    .coming-points article > span { color: var(--blue); font-size: .72rem; font-weight: 800; }
    .coming-points h3 { margin-bottom: 5px; font-size: 1.2rem; letter-spacing: -.03em; }
    .coming-points p { color: var(--muted-dark); font-size: .82rem; }
    .interest-form { background: var(--surface); border-color: var(--line-dark); box-shadow: var(--soft-shadow); }
    .interest-form .field > span { color: var(--ink); }
    .interest-form .field input, .interest-form .field select, .interest-form .field textarea { background: var(--surface-soft); color: var(--ink); border-color: var(--line-dark); }
    .interest-form .field input::placeholder { color: var(--muted); }
    .interest-form .consent, .interest-form .form-note { color: var(--muted-dark); }
    .interest-badge { display: inline-flex; margin-bottom: 28px; padding: 8px 12px; border-radius: 999px; background: var(--lavender); color: var(--blue); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

    @media (max-width: 1120px) {
        .subject-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 820px) {
        .coming-layout { grid-template-columns: 1fr; }
        .coming-copy { position: static; }
    }

    @media (max-width: 720px) {
        .hero h1 { font-size: clamp(3.35rem, 17vw, 5.1rem); }
        .subject-grid { grid-template-columns: 1fr; }
        .proof-mantra { font-size: clamp(3.5rem, 17vw, 5.6rem); }
    }
}

@layer tokens {
    :root {
        --ink: #07090d;
        --ink-soft: #10141c;
        --ink-card: #131821;
        --paper: #f4f3ed;
        --paper-pure: #fffef9;
        --muted: #a8adb7;
        --muted-dark: #5f6570;
        --line: rgba(255, 255, 255, .14);
        --line-dark: rgba(7, 9, 13, .14);
        --blue: #4f6bff;
        --blue-bright: #6680ff;
        --cyan: #88f1ff;
        --green: #20e68b;
        --radius-sm: 12px;
        --radius: 22px;
        --radius-lg: 36px;
        --shell: min(1180px, calc(100% - 48px));
        --header-h: 82px;
        --shadow: 0 28px 80px rgba(0, 0, 0, .22);
        --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --font-display: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, sans-serif;
    }
}

@layer base {
    body {
        min-width: 320px;
        background: var(--ink);
        color: var(--paper);
        font-family: var(--font);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }

    ::selection { background: var(--cyan); color: var(--ink); }
    :focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

    h1, h2, h3 {
        font-family: var(--font-display);
        font-weight: 760;
        line-height: .98;
        letter-spacing: -.045em;
    }

    h2 { font-size: clamp(2.8rem, 6vw, 5.7rem); }
    h3 { font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.035em; }
    p { text-wrap: pretty; }

    .shell { width: var(--shell); margin-inline: auto; }
    .section { padding: clamp(90px, 11vw, 150px) 0; }
    .section-dark, .section-ink { background: var(--ink); color: var(--paper); }
    .section-light { background: var(--paper); color: var(--ink); }
    .section-blue { background: var(--blue); color: #fff; }

    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .skip-link {
        position: fixed;
        z-index: 999;
        top: 12px;
        left: 12px;
        padding: 10px 16px;
        background: var(--paper-pure);
        color: var(--ink);
        border-radius: 8px;
        transform: translateY(-150%);
        transition: transform .2s ease;
    }
    .skip-link:focus { transform: translateY(0); }
}

@layer components {
    .site-header {
        position: fixed;
        z-index: 100;
        inset: 0 0 auto;
        height: var(--header-h);
        border-bottom: 1px solid transparent;
        transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    }

    .site-header.is-scrolled {
        background: rgba(7, 9, 13, .84);
        border-color: var(--line);
        backdrop-filter: blur(18px);
    }

    .nav-wrap { height: 100%; display: flex; align-items: center; gap: 36px; }
    .brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
    .brand-mark {
        display: block;
        width: 52px;
        aspect-ratio: 1;
        border: 0;
        border-radius: 15px;
        overflow: hidden;
        background: transparent;
        box-shadow: 0 8px 24px rgba(73, 56, 42, .12);
    }
    .brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .brand-copy { color: #fff; font-size: .75rem; line-height: 1.05; letter-spacing: .02em; }
    .brand-copy strong { font-weight: 750; }

    .main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
    .main-nav a { color: #d8dbe1; font-size: .86rem; font-weight: 600; transition: color .2s ease; }
    .main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }

    .menu-toggle {
        display: none;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid var(--line);
        background: transparent;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
    }
    .menu-toggle span:not(.sr-only) { display: block; width: 17px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .25s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

    .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        min-height: 58px;
        padding: 0 24px;
        border: 1px solid transparent;
        border-radius: 999px;
        font-size: .9rem;
        font-weight: 760;
        line-height: 1;
        cursor: pointer;
        transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    }
    .button:hover { transform: translateY(-2px); }
    .button-small { min-height: 44px; padding: 0 19px; gap: 16px; background: #fff; color: var(--ink); font-size: .78rem; }
    .button-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 36px rgba(79,107,255,.34); }
    .button-primary:hover { background: var(--blue-bright); }
    .button-outline { color: #fff; border-color: rgba(255,255,255,.35); }
    .button-outline:hover { border-color: #fff; background: #fff; color: var(--ink); }

    .text-link { display: inline-flex; gap: 18px; align-items: center; color: #fff; font-size: .9rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 5px; }
    .text-link-dark { color: var(--ink); border-color: var(--line-dark); }

    .kicker, .eyebrow {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 24px;
        color: var(--blue);
        font-size: .71rem;
        font-weight: 800;
        letter-spacing: .16em;
        line-height: 1.3;
        text-transform: uppercase;
    }
    .eyebrow { color: #d2d7e1; }
    .eyebrow-dot { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }

    .section-heading { max-width: 930px; margin-bottom: clamp(48px, 7vw, 82px); }
    .section-heading.split-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; max-width: none; align-items: end; }
    .split-heading > p { max-width: 420px; padding-bottom: 8px; color: var(--muted-dark); font-size: 1.03rem; }
    .on-dark .kicker { color: var(--cyan); }
    .on-dark h2 { max-width: 900px; }

    .floating-whatsapp {
        position: fixed;
        z-index: 90;
        right: 24px;
        bottom: 24px;
        display: grid;
        place-items: center;
        width: 58px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: #25d366;
        color: #07130b;
        box-shadow: 0 12px 34px rgba(0,0,0,.3);
        transition: transform .25s ease, box-shadow .25s ease;
    }
    .floating-whatsapp:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
    .floating-whatsapp img { width: 29px; height: 29px; }
}

@layer sections {
    .hero { position: relative; min-height: 840px; padding: calc(var(--header-h) + 90px) 0 76px; overflow: hidden; }
    .hero-grid-bg {
        position: absolute;
        inset: 0;
        opacity: .13;
        background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
        background-size: 70px 70px;
        mask-image: linear-gradient(to bottom, black, transparent 85%);
    }
    .hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
    .hero-orb-one { width: 520px; height: 520px; right: -250px; top: -170px; border: 1px solid rgba(101,126,255,.25); box-shadow: inset 0 0 120px rgba(79,107,255,.08); }
    .hero-orb-two { width: 260px; height: 260px; left: -180px; bottom: 10%; background: rgba(79,107,255,.1); filter: blur(80px); }
    .hero-layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(45px, 7vw, 100px); }
    .hero h1 { max-width: 760px; font-size: clamp(4.7rem, 9.4vw, 8.8rem); color: #fff; }
    .hero h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.58); }
    .hero-lead { max-width: 590px; margin-top: 30px; color: #b9bec9; font-size: clamp(1rem, 1.5vw, 1.2rem); }
    .hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
    .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; margin-top: 60px; list-style: none; border-top: 1px solid var(--line); }
    .hero-facts li { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; }
    .hero-facts strong { font-size: .92rem; color: #fff; }
    .hero-facts span { color: #747b89; font-size: .76rem; }

    .hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
    .result-card {
        position: relative;
        z-index: 4;
        width: min(100%, 390px);
        padding: 32px;
        background: rgba(18,23,32,.9);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        transform: rotate(-2.5deg);
    }
    .result-label { color: #aeb4c0; font-size: .74rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .grade-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 25px 0; }
    .grade-progress > span { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -.08em; color: #737a87; }
    .grade-progress .grade-highlight { color: var(--cyan); }
    .progress-line { position: relative; height: 1px; background: rgba(255,255,255,.18); overflow: visible; }
    .progress-line::after { content: ""; position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border: solid var(--cyan); border-width: 1px 1px 0 0; transform: rotate(45deg); }
    .progress-line i { display: block; width: 72%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 14px var(--blue); }
    .result-note { color: #9ca3af; font-size: .84rem; line-height: 1.55; }
    .mini-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 27px; }
    .mini-plan span { padding: 8px 4px; border: 1px solid var(--line); border-radius: 999px; text-align: center; color: #777f8c; font-size: .64rem; font-weight: 700; }
    .mini-plan .is-done { background: rgba(79,107,255,.14); border-color: rgba(79,107,255,.4); color: #c9d1ff; }
    .equation-cloud { position: absolute; z-index: 5; padding: 11px 16px; border: 1px solid var(--line); background: rgba(7,9,13,.84); border-radius: 999px; color: #aab0bc; font-family: ui-monospace, monospace; font-size: .72rem; backdrop-filter: blur(10px); }
    .equation-one { top: 13%; right: 0; }
    .equation-two { left: 0; bottom: 17%; }
    .orbit { position: absolute; border: 1px solid rgba(112,134,255,.22); border-radius: 50%; }
    .orbit-one { width: 500px; height: 500px; }
    .orbit-two { width: 360px; height: 360px; border-style: dashed; }
    .orbit i { position: absolute; width: 8px; height: 8px; top: 50%; left: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

    .trust-strip { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line-dark); }
    .trust-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
    .trust-grid p { padding: 14px 24px; border-right: 1px solid var(--line-dark); font-size: .78rem; font-weight: 740; text-align: center; }
    .trust-grid p:first-child { border-left: 1px solid var(--line-dark); }
    .trust-grid span { margin-right: 9px; color: var(--blue); font-size: .66rem; }

    .level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .level-card { position: relative; min-height: 390px; padding: 30px; background: var(--paper-pure); border: 1px solid var(--line-dark); border-radius: var(--radius); display: flex; flex-direction: column; }
    .level-index { color: var(--muted-dark); font-size: .7rem; font-weight: 800; }
    .level-range { margin: auto 0 34px; font-family: var(--font-display); font-size: clamp(4.3rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.09em; line-height: 1; }
    .level-range span { color: var(--blue); font-size: .38em; margin-inline: .08em; vertical-align: middle; }
    .level-card h3 { margin-bottom: 12px; }
    .level-card p { color: var(--muted-dark); font-size: .9rem; }
    .level-card-accent { background: var(--blue); color: #fff; border-color: var(--blue); }
    .level-card-accent .level-index, .level-card-accent p { color: rgba(255,255,255,.72); }
    .level-card-accent .level-range span { color: var(--cyan); }

    .subjects { position: relative; overflow: hidden; }
    .subjects::before { content: ""; position: absolute; inset: 10% -30% auto; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); transform: rotate(-7deg); opacity: .5; }
    .subject-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .subject-card { position: relative; min-height: 520px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s ease, border-color .35s ease; }
    .subject-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.38); }
    .subject-card::after { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; bottom: -160px; border-radius: 50%; background: var(--blue); filter: blur(60px); opacity: .18; }
    .subject-symbol { margin-left: auto; font-family: Georgia, serif; font-size: 7rem; line-height: .8; color: rgba(255,255,255,.13); }
    .subject-card > div { margin-top: auto; position: relative; z-index: 2; }
    .subject-meta { margin-bottom: 18px; color: var(--cyan); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
    .subject-card h3 { margin-bottom: 18px; color: #fff; font-size: clamp(2.8rem, 5vw, 5rem); }
    .subject-card p:not(.subject-meta) { max-width: 480px; color: #9ca3af; }
    .subject-link { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: #fff; font-size: .78rem; font-weight: 750; }
    .subject-link i, .resource-card > span:last-child i { font-style: normal; transition: transform .25s ease; }
    .subject-card:hover .subject-link i, .resource-card:hover > span:last-child i { transform: translate(3px, -3px); }
    .subject-physics { background: linear-gradient(145deg, rgba(79,107,255,.16), transparent 45%); }
    .subject-computer-science { background: linear-gradient(145deg, rgba(31,178,184,.14), transparent 48%); }

    .method-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(70px, 10vw, 145px); align-items: start; }
    .method-sticky { position: sticky; top: calc(var(--header-h) + 35px); }
    .method-sticky h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
    .method-sticky > p:not(.kicker) { max-width: 420px; margin: 30px 0; color: var(--muted-dark); }
    .method-steps { list-style: none; border-top: 1px solid var(--line-dark); }
    .method-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 38px 0 44px; border-bottom: 1px solid var(--line-dark); }
    .method-steps li > span { color: var(--blue); font-size: .75rem; font-weight: 800; }
    .method-steps h3 { margin-bottom: 12px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
    .method-steps p { max-width: 570px; color: var(--muted-dark); }

    .about-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
    .profile-visual { position: relative; min-height: 610px; border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius-lg); overflow: hidden; background: #2c3436; }
    .profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
    .profile-grid { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 46%, rgba(15, 24, 27, .64) 100%); }
    .profile-visual::before { content: ""; position: absolute; z-index: 1; inset: 14px; border: 1px solid rgba(255,255,255,.28); border-radius: calc(var(--radius-lg) - 10px); pointer-events: none; }
    .profile-caption { position: absolute; z-index: 2; left: 30px; bottom: 27px; font-size: .7rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .1em; text-shadow: 0 2px 16px rgba(0,0,0,.65); }
    .profile-formula { position: absolute; z-index: 2; top: 28px; right: 27px; font-family: ui-monospace, monospace; font-size: .67rem; color: rgba(255,255,255,.88); text-shadow: 0 2px 12px rgba(0,0,0,.65); }
    .about-copy .kicker { color: var(--cyan); }
    .about-copy h2 { font-size: clamp(4rem, 8vw, 7rem); }
    .about-intro { margin: 25px 0 30px; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 650; line-height: 1.25; }
    .about-copy > p:not(.kicker):not(.about-intro) { margin-top: 17px; color: rgba(255,255,255,.77); }
    .credential-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; }
    .credential-list span { max-width: 100%; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.4; }
    .credential-list .credential-study { padding: 11px 15px; border-radius: 18px; }
    .credential-study strong, .credential-study small { display: block; }
    .credential-study small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: .92em; font-weight: 550; }

    .format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .format-card { min-height: 350px; padding: 30px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-pure); display: flex; flex-direction: column; }
    .format-number { color: var(--blue); font-size: .72rem; font-weight: 800; }
    .format-card > div { margin-top: auto; }
    .format-card h3 { margin-bottom: 13px; font-size: 2.2rem; }
    .format-card p { color: var(--muted-dark); font-size: .9rem; }
    .format-card-dark { background: var(--ink); color: #fff; }
    .format-card-dark p { color: #9ca3af; }
    .format-card-time { background: var(--blue); color: #fff; border-color: var(--blue); }
    .format-card-time p { color: rgba(255,255,255,.72); }
    .format-card-photo { position: relative; isolation: isolate; padding: 0; overflow: hidden; color: #fff; border-color: transparent; }
    .format-card-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .format-card-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 28, 24, .08) 12%, rgba(20, 28, 24, .88) 100%); }
    .format-card-overlay { display: flex; flex: 1; flex-direction: column; padding: 30px; }
    .format-card-photo .format-number { color: #f7d983; }
    .format-card-photo p { color: rgba(255,255,255,.84); }
    .time-big { font-family: var(--font-display); font-size: clamp(5rem, 9vw, 8rem); font-weight: 800; line-height: .8; letter-spacing: -.08em; }

    #rezultate.proof { padding: clamp(52px, 5.5vw, 74px) 0; }
    .proof-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
    .proof-stat { display: flex; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 15vw, 12rem); line-height: .8; letter-spacing: -.1em; }
    .proof-from { color: #414651; }
    .proof-to { color: var(--cyan); }
    .proof-arrow { color: var(--blue); font-size: .28em; letter-spacing: 0; }
    .proof-copy .kicker { color: var(--cyan); }
    .proof-copy h2 { font-size: clamp(3rem, 5.6vw, 5.4rem); }
    .proof-copy p:not(.kicker) { max-width: 540px; margin: 26px 0 34px; color: #9ca3af; }

    .resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .resource-card { min-height: 320px; padding: 30px; border: 1px solid var(--line-dark); border-radius: var(--radius); display: flex; flex-direction: column; background: var(--paper-pure); transition: background .3s ease, color .3s ease, transform .3s ease; }
    .resource-card:hover { background: var(--ink); color: #fff; transform: translateY(-5px); }
    .resource-tag { align-self: flex-start; padding: 7px 11px; border-radius: 999px; background: rgba(79,107,255,.1); color: var(--blue); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
    .resource-card h3 { margin: auto 0 13px; font-size: clamp(2rem, 3vw, 3rem); }
    .resource-card p { color: var(--muted-dark); font-size: .9rem; }
    .resource-card:hover p { color: #a5acb8; }
    .resource-card > span:last-child { display: flex; justify-content: space-between; padding-top: 17px; margin-top: 27px; border-top: 1px solid var(--line-dark); font-size: .75rem; font-weight: 750; }
    .contact { position: relative; padding: clamp(36px, 4vw, 56px) 0 clamp(95px, 12vw, 160px); overflow: hidden; }
    .contact-lines { position: absolute; inset: 0; opacity: .11; background: repeating-radial-gradient(circle at 0 100%, transparent 0 55px, rgba(102,128,255,.8) 56px 57px); }
    .contact-layout { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 120px); align-items: start; }
    .contact-copy { position: sticky; top: calc(var(--header-h) + 35px); }
    .contact-copy h2 { max-width: 580px; }
    .contact-copy > p:not(.eyebrow) { max-width: 500px; margin-top: 28px; color: #a5acb7; }
    .button-phone { margin-top: 38px; }
    .contact-form { padding: clamp(26px, 4vw, 44px); background: #11161e; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .field { display: grid; gap: 9px; margin-bottom: 18px; }
    .field > span { color: #c9cdd5; font-size: .73rem; font-weight: 700; }
    .field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm); background: #0a0e14; color: #fff; padding: 15px 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
    .field input, .field select { min-height: 54px; }
    .field textarea { resize: vertical; min-height: 120px; }
    .field input::placeholder, .field textarea::placeholder { color: #646b77; }
    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(79,107,255,.15); }
    .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 5px 0 24px; color: #858c98; font-size: .68rem; line-height: 1.45; cursor: pointer; }
    .consent input { margin-top: 2px; accent-color: var(--blue); }
    .button-whatsapp { width: 100%; background: var(--green); color: #07120c; }
    .button-whatsapp:hover { background: #4df0a2; }
    .form-errors { margin: -4px 0 18px; padding: 11px 13px; border: 1px solid rgba(255, 152, 152, .65); border-radius: var(--radius-sm); background: rgba(152, 28, 28, .2); color: #ffd4d4; font-size: .76rem; line-height: 1.45; }
    .form-note { margin-top: 13px; color: #69717e; font-size: .66rem; text-align: center; }

    .site-footer { padding: 72px 0 24px; background: #040609; border-top: 1px solid var(--line); color: #fff; }
    .footer-main { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding-bottom: 65px; }
    .footer-brand { margin-bottom: 20px; }
    .footer-main > div:first-child > p { color: #777e89; font-size: .85rem; }
    .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .footer-links > div { display: flex; flex-direction: column; gap: 9px; }
    .footer-links strong { margin-bottom: 7px; color: #fff; font-size: .72rem; }
    .footer-links a, .footer-links span { color: #7e8591; font-size: .76rem; transition: color .2s ease; }
    .footer-links a:hover { color: #fff; }
    .footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); color: #666d78; font-size: .68rem; }
    .footer-bottom div { display: flex; gap: 24px; }

    /* Interior pages */
    .page-hero { position: relative; padding: calc(var(--header-h) + 95px) 0 100px; overflow: hidden; }
    .page-hero::after { content: attr(data-symbol); position: absolute; right: 4vw; bottom: -8vw; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: min(48vw, 660px); line-height: 1; pointer-events: none; }
    .breadcrumbs { display: flex; gap: 8px; margin-bottom: 35px; color: #7d8490; font-size: .72rem; }
    .breadcrumbs a:hover { color: #fff; }
    .page-hero h1 { max-width: 980px; font-size: clamp(4rem, 9vw, 8rem); color: #fff; }
    .page-hero h1 span { color: var(--cyan); }
    .page-hero .page-lead { max-width: 680px; margin: 32px 0; color: #a6adb9; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
    .page-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 40px; }
    .page-facts span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #c0c5ce; font-size: .7rem; font-weight: 700; }
    .content-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(60px, 9vw, 130px); }
    .content-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 35px); }
    .content-aside h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
    .content-aside p { margin-top: 22px; color: var(--muted-dark); }
    .content-block + .content-block { margin-top: 75px; }
    .content-block h2 { margin-bottom: 28px; font-size: clamp(2.4rem, 4vw, 4rem); }
    .content-block > p { color: var(--muted-dark); }
    .topic-list { margin-top: 28px; list-style: none; border-top: 1px solid var(--line-dark); }
    .topic-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
    .topic-list span { color: var(--blue); font-size: .7rem; font-weight: 800; }
    .topic-list strong { font-size: .96rem; }
    .simple-cta { padding: 80px 0; background: var(--blue); color: #fff; }
    .simple-cta .shell { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
    .simple-cta h2 { max-width: 750px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
    .simple-cta .button { flex: 0 0 auto; background: #fff; color: var(--ink); }

    .reviews-coming { padding: 34px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-pure); }
    .reviews-coming strong { display: block; margin-bottom: 10px; font-size: 1.25rem; }
    .reviews-coming p { color: var(--muted-dark); }
    .result-story { display: grid; grid-template-columns: .55fr 1.45fr; gap: 45px; padding: 42px 0; border-top: 1px solid var(--line-dark); }
    .result-story:last-child { border-bottom: 1px solid var(--line-dark); }
    .result-story .story-grade { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.08em; color: var(--blue); }
    .result-story h3 { margin-bottom: 12px; }
    .result-story p { color: var(--muted-dark); }

    .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 35px; }
    .filter-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 750; cursor: pointer; }
    .filter-button.is-active { background: var(--ink); color: #fff; }
    .library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .library-card { min-height: 250px; padding: 27px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-pure); display: flex; flex-direction: column; }
    .library-card[hidden] { display: none; }
    .library-card .resource-tag { margin-bottom: auto; }
    .library-card h3 { margin: 34px 0 10px; }
    .library-card p { color: var(--muted-dark); font-size: .86rem; }
    .library-status { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line-dark); color: var(--blue); font-size: .7rem; font-weight: 750; }

    .legal { padding: calc(var(--header-h) + 70px) 0 100px; background: var(--paper); color: var(--ink); min-height: 75vh; }
    .legal-back { margin-left: auto; }
    .legal article { max-width: 780px; }
    .legal h1 { margin-bottom: 18px; font-size: clamp(3rem, 7vw, 5.5rem); }
    .legal .updated { margin-bottom: 48px; color: var(--muted-dark); font-size: .78rem; }
    .legal h2 { margin: 40px 0 12px; font-size: 1.65rem; letter-spacing: -.03em; }
    .legal p, .legal li { color: #4f5560; }
    .legal ul { margin: 12px 0 0 20px; }
    .legal a { color: var(--blue); text-decoration: underline; }

}

@layer responsive {
    @media (max-width: 980px) {
        :root { --header-h: 72px; }
        .main-nav {
            position: fixed;
            inset: var(--header-h) 0 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0;
            padding: 34px 24px;
            background: rgba(7,9,13,.98);
            transform: translateX(100%);
            opacity: 0;
            pointer-events: none;
            transition: transform .3s ease, opacity .3s ease;
        }
        .main-nav.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
        .main-nav a { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.35rem; }
        .menu-toggle { display: block; }
        .hero { min-height: auto; }
        .hero-layout { grid-template-columns: 1fr; }
        .hero-copy { max-width: 760px; }
        .hero-visual { min-height: 490px; }
        .equation-one { right: 8%; }
        .equation-two { left: 8%; }
        .section-heading.split-heading { grid-template-columns: 1fr; gap: 24px; }
        .level-grid { grid-template-columns: 1fr 1fr; }
        .level-card-accent { grid-column: span 2; min-height: 320px; }
        .subject-card { min-height: 480px; }
        .method-layout, .content-grid { grid-template-columns: 1fr; }
        .method-sticky, .content-aside { position: static; }
        .about-layout { grid-template-columns: .75fr 1.25fr; gap: 45px; }
        .profile-visual { min-height: 500px; }
        .format-grid { grid-template-columns: 1fr 1fr; }
        .format-card-time { grid-column: span 2; min-height: 300px; }
        .proof-layout { gap: 45px; }
        .contact-layout { grid-template-columns: 1fr; }
        .contact-copy { position: static; }
        .footer-main { grid-template-columns: 1fr; }
    }

    @media (max-width: 720px) {
        :root { --shell: min(100% - 28px, 1180px); }
        h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
        .section { padding: 82px 0; }
        .hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 55px; }
        .hero h1 { font-size: clamp(4rem, 20vw, 6.2rem); }
        .hero-lead { margin-top: 22px; }
        .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
        .hero-facts { margin-top: 45px; }
        .hero-facts li { padding-right: 5px; }
        .hero-facts strong { font-size: .78rem; }
        .hero-facts span { font-size: .65rem; }
        .hero-visual { min-height: 430px; }
        .result-card { padding: 25px; }
        .grade-progress > span { font-size: 4rem; }
        .orbit-one { width: 390px; height: 390px; }
        .orbit-two { width: 280px; height: 280px; }
        .equation-one { top: 4%; right: 0; }
        .equation-two { left: 0; bottom: 5%; }
        .trust-grid { grid-template-columns: 1fr 1fr; padding: 10px 0; }
        .trust-grid p, .trust-grid p:first-child { min-height: 58px; border: 0; border-bottom: 1px solid var(--line-dark); display: grid; place-items: center; }
        .level-grid, .subject-grid, .format-grid, .resource-grid, .proof-layout, .about-layout, .footer-main, .library-grid { grid-template-columns: 1fr; }
        .level-card-accent, .format-card-time { grid-column: auto; }
        .level-card { min-height: 340px; }
        .subject-card { min-height: 460px; padding: 28px; }
        .method-steps li { grid-template-columns: 45px 1fr; gap: 12px; }
        .profile-visual { min-height: 440px; }
        .proof-layout { gap: 60px; }
        .proof-stat { justify-content: center; font-size: clamp(6.5rem, 35vw, 10rem); }
        .field-row { grid-template-columns: 1fr; gap: 0; }
        .contact-form { padding: 24px 18px; border-radius: 24px; }
        .floating-whatsapp { right: 14px; bottom: 14px; width: 54px; }
        .footer-links { grid-template-columns: 1fr 1fr; row-gap: 35px; }
        .footer-bottom { flex-direction: column; gap: 12px; }
        .page-hero { padding-top: calc(var(--header-h) + 65px); }
        .page-hero h1 { font-size: clamp(3.65rem, 17vw, 6rem); }
        .simple-cta .shell { flex-direction: column; align-items: flex-start; }
        .result-story { grid-template-columns: 1fr; gap: 20px; }
    }

    @media (max-width: 420px) {
        .brand-copy { display: none; }
        .hero-facts { grid-template-columns: 1fr 1fr; gap: 15px; }
        .hero-facts li:last-child { grid-column: span 2; }
        .footer-links { grid-template-columns: 1fr; }
    }
}

@layer motion {
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes orbit { to { transform: rotate(360deg); } }
    @keyframes pulseLine { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

    .orbit-one { animation: spin 30s linear infinite; }
    .orbit-two { animation: spin 22s linear infinite reverse; }
    .progress-line i { animation: pulseLine 2.4s ease-in-out infinite; }
    .equation-one { animation: floatOne 6s ease-in-out infinite; }
    .equation-two { animation: floatTwo 7s ease-in-out infinite; }
    @keyframes floatOne { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
    @keyframes floatTwo { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(11px) rotate(1deg); } }

    .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
    .reveal-delay-short { transition-delay: .1s; }
    .reveal-delay { transition-delay: .2s; }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }

    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
        .reveal { opacity: 1; transform: none; }
    }
}

/* Warm visual direction — the light theme is intentionally the default. */
@layer theme-refresh {
    :root {
        color-scheme: light;
        --ink: #29332f;
        --ink-soft: #35423d;
        --paper: #fffaf2;
        --paper-pure: #ffffff;
        --muted: #77827d;
        --muted-dark: #5f6c66;
        --line: rgba(41, 51, 47, .13);
        --line-dark: rgba(41, 51, 47, .13);
        --blue: #df6b4f;
        --blue-bright: #ef8268;
        --cyan: #2f8879;
        --canvas: #fffaf2;
        --surface: #ffffff;
        --surface-soft: #f5ecdf;
        --sage: #dfeee5;
        --sage-strong: #c9e1d4;
        --peach: #f9d8c8;
        --sun: #f3c65a;
        --lavender: #e4ddf6;
        --deep: #27443d;
        --header-bg: rgba(255, 250, 242, .88);
        --soft-shadow: 0 24px 70px rgba(76, 58, 42, .12);
        --font: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, sans-serif;
        --font-display: "Avenir Next", Avenir, "Trebuchet MS", ui-rounded, "Segoe UI", sans-serif;
    }

    html[data-theme="dark"] {
        color-scheme: dark;
        --ink: #fff8ec;
        --ink-soft: #e9e1d5;
        --paper: #1e2825;
        --paper-pure: #293531;
        --muted: #aebbb5;
        --muted-dark: #bcc7c2;
        --line: rgba(255, 248, 236, .14);
        --line-dark: rgba(255, 248, 236, .14);
        --blue: #ff9278;
        --blue-bright: #ffa28c;
        --cyan: #71c8b8;
        --canvas: #1e2825;
        --surface: #293531;
        --surface-soft: #323f3a;
        --sage: #273b35;
        --sage-strong: #304840;
        --peach: #49362f;
        --sun: #f4cf74;
        --lavender: #39364a;
        --deep: #14201d;
        --header-bg: rgba(30, 40, 37, .9);
        --soft-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    }

    body { background: var(--canvas); color: var(--ink); }
    h1, h2, h3 { font-weight: 720; letter-spacing: -.055em; }
    section[id], article[id], div[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

    .section-dark, .section-light { background: var(--canvas); color: var(--ink); }
    .section-ink { background: var(--sage); color: var(--ink); }
    .section-blue { background: #d96f55; }
    html[data-theme="dark"] .section-blue { background: #87483b; }

    .site-header { color: var(--ink); }
    .site-header.is-scrolled { background: var(--header-bg); border-color: var(--line); box-shadow: 0 8px 28px rgba(70, 55, 40, .06); }
    .brand-mark { background: transparent; box-shadow: 0 8px 24px rgba(73, 56, 42, .12); }
    .brand-copy { color: var(--ink); }
    .main-nav { position: relative; gap: 22px; }
    .main-nav::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -9px;
        width: var(--nav-indicator-width, 0px);
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--blue), var(--sun));
        box-shadow: 0 4px 13px color-mix(in srgb, var(--blue) 48%, transparent);
        opacity: 0;
        transform: translateX(var(--nav-indicator-x, 0px));
        transition: transform .55s cubic-bezier(.2,.75,.2,1), width .55s cubic-bezier(.2,.75,.2,1), opacity .2s ease;
        pointer-events: none;
    }
    .main-nav.has-active-link::after { opacity: 1; }
    .main-nav a { position: relative; color: var(--muted-dark); font-size: .78rem; transition: color .3s ease, transform .3s ease, background .3s ease; }
    .main-nav a:hover, .main-nav a[aria-current="page"], .main-nav a[aria-current="location"], .main-nav a.is-active { color: var(--blue); }
    .main-nav a.is-active { transform: translateY(-1px); }
    .site-header.is-navigating .main-nav::after { box-shadow: 0 4px 18px var(--blue); }
    .site-header.is-navigating .brand-mark { animation: headerMarkPulse 1s ease-in-out; }
    @keyframes headerMarkPulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08) rotate(-4deg); } }
    .menu-toggle { border-color: var(--line-dark); color: var(--ink); background: var(--surface); }

    .theme-toggle {
        position: relative;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--line-dark);
        border-radius: 50%;
        background: var(--surface);
        color: var(--ink);
        box-shadow: 0 8px 22px rgba(76, 58, 42, .08);
        cursor: pointer;
        transition: transform .25s ease, background .25s ease;
    }
    .theme-toggle:hover { transform: translateY(-2px) rotate(8deg); background: var(--surface-soft); }
    .theme-toggle span { position: absolute; font-size: 1.05rem; line-height: 1; transition: opacity .2s ease, transform .25s ease; }
    .theme-moon { opacity: 0; transform: scale(.6) rotate(-35deg); }
    html[data-theme="dark"] .theme-sun { opacity: 0; transform: scale(.6) rotate(35deg); }
    html[data-theme="dark"] .theme-moon { opacity: 1; transform: scale(1) rotate(0); }

    .button-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 32px rgba(223, 107, 79, .24); }
    .button-primary:hover { background: var(--blue-bright); }
    .text-link { color: var(--ink); border-color: var(--line-dark); }
    .text-link-dark { color: var(--ink); }
    .kicker, .eyebrow { color: var(--blue); }
    .eyebrow-dot { background: var(--cyan); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cyan) 14%, transparent); }

    .hero { background: var(--canvas); }
    .hero::before {
        content: "";
        position: absolute;
        width: 390px;
        height: 390px;
        left: 34%;
        top: 10%;
        border-radius: 42% 58% 63% 37% / 40% 42% 58% 60%;
        background: var(--peach);
        opacity: .55;
        filter: blur(2px);
        transform: rotate(14deg);
    }
    .hero-grid-bg { opacity: .35; background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1.2px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(105deg, black, transparent 76%); }
    .hero-orb-one { border-color: color-mix(in srgb, var(--blue) 26%, transparent); box-shadow: inset 0 0 120px color-mix(in srgb, var(--peach) 32%, transparent); }
    .hero-orb-two { background: color-mix(in srgb, var(--sun) 25%, transparent); }
    .hero h1 { color: var(--ink); }
    .hero h1 span { color: var(--blue); -webkit-text-stroke: 0; }
    .hero-lead { color: var(--muted-dark); }
    .hero-facts { border-color: var(--line-dark); }
    .hero-facts strong { color: var(--ink); }
    .hero-facts span { color: var(--muted); }
    .result-card { background: color-mix(in srgb, var(--surface) 94%, transparent); border-color: var(--line-dark); box-shadow: var(--soft-shadow); transform: rotate(1.4deg); }
    .result-label, .result-note { color: var(--muted-dark); }
    .grade-progress > span { color: color-mix(in srgb, var(--ink) 35%, transparent); }
    .grade-progress .grade-highlight { color: var(--cyan); }
    .progress-line { background: var(--line-dark); }
    .progress-line i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
    .mini-plan span { border-color: var(--line-dark); color: var(--muted); }
    .mini-plan .is-done { background: color-mix(in srgb, var(--cyan) 12%, transparent); border-color: color-mix(in srgb, var(--cyan) 35%, transparent); color: var(--cyan); }
    .equation-cloud { border-color: var(--line-dark); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--muted-dark); box-shadow: 0 10px 28px rgba(74, 57, 42, .08); }
    .orbit { border-color: color-mix(in srgb, var(--blue) 27%, transparent); }
    .orbit i { background: var(--sun); box-shadow: 0 0 18px var(--sun); }

    .trust-strip { background: var(--surface); border-color: var(--line-dark); color: var(--ink); }
    .trust-grid p, .trust-grid p:first-child { border-color: var(--line-dark); }
    .trust-grid span { color: var(--blue); }

    .level-card, .format-card, .resource-card, .library-card, .reviews-coming { background: var(--surface); border-color: var(--line-dark); box-shadow: 0 14px 42px rgba(78, 62, 45, .055); }
    .level-card p, .format-card p, .resource-card p, .library-card p, .reviews-coming p { color: var(--muted-dark); }
    .level-card:nth-child(1) { background: color-mix(in srgb, var(--peach) 72%, var(--surface)); }
    .level-card:nth-child(2) { background: color-mix(in srgb, var(--sage) 75%, var(--surface)); }
    .level-card-accent { background: var(--lavender); border-color: transparent; color: var(--ink); }
    .level-card-accent .level-index, .level-card-accent p { color: var(--muted-dark); }
    .level-card-accent .level-range span { color: var(--blue); }
    .level-range span { color: var(--blue); }

    .subjects { background: var(--sage); }
    .subjects::before { background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .22; }
    .on-dark .kicker { color: var(--blue); }
    .subject-card { border-color: var(--line-dark); background: var(--surface); box-shadow: var(--soft-shadow); }
    .subject-card:nth-child(2) { background: color-mix(in srgb, var(--peach) 42%, var(--surface)); }
    .subject-card:nth-child(3) { background: color-mix(in srgb, var(--lavender) 48%, var(--surface)); }
    .subject-card:hover { border-color: color-mix(in srgb, var(--blue) 42%, transparent); }
    .subject-card::after { background: var(--sun); opacity: .16; }
    .subject-symbol { color: color-mix(in srgb, var(--blue) 24%, transparent); }
    .subject-meta { color: var(--cyan); }
    .subject-card h3, .subject-link { color: var(--ink); }
    .subject-card p:not(.subject-meta) { color: var(--muted-dark); }
    .subject-link { border-color: var(--line-dark); }
    .subject-physics { background: var(--surface); }
    .subject-computer-science { background: var(--surface); }

    .method { background: var(--canvas); }
    .method-sticky > p:not(.kicker), .method-steps p, .split-heading > p, .content-aside p, .content-block > p { color: var(--muted-dark); }
    .method-steps, .method-steps li, .topic-list, .topic-list li { border-color: var(--line-dark); }
    .method-steps li > span, .topic-list span { color: var(--blue); }

    .about { background: #d96f55; }
    html[data-theme="dark"] .about { background: #87483b; }
    .about .kicker { color: #ffe2a3; }
    .about .profile-visual { background: rgba(255,255,255,.08); }

    .format-card-dark { background: var(--deep); color: #fff; }
    .format-card-dark p { color: #c6d3ce; }
    .format-card-photo { background: var(--deep); }
    .format-card-photo p { color: rgba(255,255,255,.84); }
    .format-card-time { background: var(--sun); border-color: transparent; color: #3b3422; }
    .format-card-time p { color: #625943; }

    .proof { background: var(--deep); color: #fff; }
    .proof .kicker { color: #9ce0d2; }
    .proof-from { color: rgba(255,255,255,.28); }
    .proof-to { color: #f4cd6f; }
    .proof-copy p:not(.kicker) { color: #c2cec9; }
    .proof .button-outline { color: #fff; border-color: rgba(255,255,255,.42); }

    .future-preview { padding: 0 0 clamp(90px, 11vw, 150px); background: var(--canvas); }
    .future-preview-card { position: relative; min-height: 390px; padding: clamp(34px, 6vw, 72px); border-radius: 42px; background: var(--lavender); color: var(--ink); display: flex; justify-content: space-between; align-items: end; gap: 50px; overflow: hidden; }
    .future-preview-card::after { content: "→"; position: absolute; right: 4%; top: -32%; color: color-mix(in srgb, var(--blue) 18%, transparent); font-family: var(--font-display); font-size: 22rem; font-weight: 800; transform: rotate(-14deg); }
    .future-preview-card > * { position: relative; z-index: 1; }
    .future-preview-card h2 { max-width: 800px; font-size: clamp(2.7rem, 5.7vw, 5.2rem); }
    .future-preview-card p:not(.kicker) { max-width: 650px; margin-top: 24px; color: var(--muted-dark); }
    .future-preview-card .button { flex: 0 0 auto; }

    .contact { background: var(--deep); color: #fff; }
    .contact .eyebrow { color: #f6d47e; }
    .contact-copy > p:not(.eyebrow) { color: #c3cec9; }
    .contact-form { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.17); }
    .field > span { color: #e7eee9; }
    .field input, .field select, .field textarea { background: rgba(8,20,16,.28); color: #fff; border-color: rgba(255,255,255,.18); }
    .consent { color: #b8c4bf; }
    .button-whatsapp { background: #52dc8b; }

    .site-footer { background: #182521; }
    .site-footer .brand-copy { color: #fff; }
    .site-footer .brand-mark { background: transparent; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
    .footer-links a, .footer-links span, .footer-main > div:first-child > p, .footer-bottom { color: #aab8b2; }
    .footer-promise { display: flex; flex-direction: column; gap: 5px; }
    .footer-promise > span { color: #9ce0d2; font-size: .65rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
    .footer-promise > strong { color: #fff; font-size: .88rem; font-weight: 760; }

    .cookie-banner { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px)); z-index: 95; width: min(560px, calc(100vw - 36px)); display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line-dark); border-radius: 18px; background: var(--surface-soft); color: var(--ink); box-shadow: var(--soft-shadow); }
    .cookie-banner-copy p { margin: 0; color: var(--muted-dark); font-size: .86rem; line-height: 1.6; }
    .cookie-banner-copy .cookie-title { margin-bottom: 6px; color: var(--ink); font-family: var(--font-display); font-size: 1.55rem; font-weight: 760; letter-spacing: -.04em; line-height: 1.1; }
    .cookie-banner-copy a { display: inline-flex; margin-top: 8px; color: var(--blue); font-size: .78rem; font-weight: 760; text-decoration: underline; text-underline-offset: 4px; }
    .cookie-options { padding: 14px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--surface); }
    .cookie-options[hidden] { display: none; }
    .cookie-options p { color: var(--muted-dark); font-size: .78rem; line-height: 1.55; }
    .cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
    .cookie-actions .button { min-height: 44px; padding-inline: 17px; gap: 10px; font-size: .74rem; }
    .cookie-action-secondary { border-color: var(--line-dark); background: var(--surface); color: var(--ink); }
    .cookie-action-secondary:hover { border-color: color-mix(in srgb, var(--blue) 48%, var(--line-dark)); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }

    .page-hero { background: var(--canvas); color: var(--ink); }
    .page-hero::before { content: ""; position: absolute; width: 360px; height: 360px; left: 48%; top: 15%; border-radius: 50% 40% 55% 45%; background: var(--peach); opacity: .52; filter: blur(3px); }
    .page-hero::after { color: color-mix(in srgb, var(--blue) 9%, transparent); }
    .page-hero h1 { color: var(--ink); }
    .page-hero h1 span { color: var(--blue); }
    .page-hero .page-lead, .breadcrumbs { color: var(--muted-dark); }
    .breadcrumbs a:hover { color: var(--blue); }
    .page-facts span { border-color: var(--line-dark); color: var(--muted-dark); background: color-mix(in srgb, var(--surface) 72%, transparent); }
    .content-grid, .legal { background: var(--canvas); color: var(--ink); }
    .content-block + .content-block { margin-top: 85px; }
    .simple-cta { background: #d96f55; }
    html[data-theme="dark"] .simple-cta { background: #87483b; }
    .simple-cta .button { background: #fffaf2; color: #29332f; }
    .result-story { border-color: var(--line-dark); }
    .result-story p, .legal p, .legal li { color: var(--muted-dark); }

    .filter-button { border-color: var(--line-dark); color: var(--ink); background: var(--surface); }
    .filter-button.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
    .library-status { color: var(--blue); border-color: var(--line-dark); }
    .content-live-status { margin: -18px 0 28px; padding: 12px 16px; border-radius: 14px; background: var(--sage); color: var(--muted-dark); font-size: .78rem; }
    .library-card.has-link { transition: transform .25s ease, box-shadow .25s ease; }
    .library-card.has-link:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
    .library-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
    .library-action { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 750; }
    .library-action.secondary { background: var(--surface-soft); color: var(--ink); }

    .roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .roadmap-card { min-height: 320px; padding: 32px; border: 1px solid var(--line-dark); border-radius: 30px; background: var(--surface); display: flex; flex-direction: column; box-shadow: 0 16px 45px rgba(76,58,42,.06); }
    .roadmap-card:nth-child(2) { background: var(--sage); }
    .roadmap-card:nth-child(3) { background: var(--peach); }
    .roadmap-card:nth-child(4) { background: var(--lavender); }
    .roadmap-state { align-self: flex-start; padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .roadmap-card h3 { margin: auto 0 14px; font-size: clamp(2rem, 3.5vw, 3.4rem); }
    .roadmap-card p { color: var(--muted-dark); }

    .training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .training-card { min-height: 310px; padding: 28px; border: 1px solid var(--line-dark); border-radius: 28px; background: var(--surface); display: flex; flex-direction: column; }
    .training-card:nth-child(3n+1) { background: color-mix(in srgb, var(--sage) 50%, var(--surface)); }
    .training-card:nth-child(3n+2) { background: color-mix(in srgb, var(--peach) 50%, var(--surface)); }
    .training-card:nth-child(3n+3) { background: color-mix(in srgb, var(--lavender) 50%, var(--surface)); }
    .training-card[hidden] { display: none; }
    .training-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-dark); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
    .training-card h3 { margin: auto 0 13px; font-size: 2rem; }
    .training-card p { color: var(--muted-dark); font-size: .87rem; }
    .training-card .library-actions { margin-top: 24px; }

    @media (max-width: 1120px) {
        body.menu-open { overflow: hidden; overscroll-behavior: none; }
        .nav-wrap { gap: 12px; }
        .menu-toggle { display: block; order: 3; }
        .theme-toggle { margin-left: auto; order: 2; }
        .site-header, .site-header.is-scrolled { backdrop-filter: none; }
        .main-nav {
            position: fixed;
            inset: var(--header-h) 0 auto;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: center;
            gap: 0;
            width: 100%;
            height: calc(100dvh - var(--header-h));
            min-height: 0;
            margin: 0;
            padding: clamp(14px, 4dvh, 38px) max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
            overflow: hidden;
            overscroll-behavior: none;
            background: var(--canvas);
            transform: translateX(100%);
            opacity: 0;
            pointer-events: none;
            transition: transform .3s ease, opacity .3s ease;
        }
        .main-nav::after { display: none; }
        .main-nav.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
        .main-nav a { width: 100%; padding: clamp(8px, 2.3dvh, 20px) 0; border-bottom: 1px solid var(--line-dark); color: var(--ink); font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.1; }
        .main-nav a.is-active, .main-nav a[aria-current="page"], .main-nav a[aria-current="location"] { padding-inline: 16px; border-color: transparent; border-radius: 14px; background: color-mix(in srgb, var(--blue) 11%, transparent); transform: none; }
        .resource-grid, .training-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 1120px) and (max-height: 520px) {
        .main-nav { padding-block: 8px max(8px, env(safe-area-inset-bottom)); }
        .main-nav a { padding-block: 6px; font-size: 1.05rem; }
    }

    @media (max-width: 720px) {
        .theme-toggle { width: 42px; height: 42px; }
        .cookie-banner { right: 14px; bottom: max(78px, calc(env(safe-area-inset-bottom) + 78px)); width: calc(100vw - 28px); padding: 18px; border-radius: 16px; }
        .cookie-actions { justify-content: stretch; }
        .cookie-actions .button { flex: 1 1 100%; }
        .hero::before { width: 230px; height: 230px; left: 35%; top: 20%; }
        .resource-grid, .training-grid, .roadmap-grid { grid-template-columns: 1fr; }
        .future-preview-card { min-height: 440px; flex-direction: column; align-items: flex-start; justify-content: space-between; border-radius: 28px; }
        .future-preview-card::after { right: -20%; top: -22%; font-size: 16rem; }
        .future-preview-card .button { flex: 0 0 auto; }
        .page-hero::before { width: 240px; height: 240px; left: 40%; }
    }

}
