:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e6eaf0;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --primary: #2463eb;
    --primary-dark: #184dcc;
    --cyan: #16c7cf;
    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-md: 0 22px 60px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
svg { display: block; }

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

.site-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    height: 86px;
    border-bottom: 1px solid rgba(226, 232, 240, .88);
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
.brand-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #edf0f5;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.brand-symbol.small { width: 38px; height: 38px; border-radius: 12px; }
.brand-symbol svg { width: 28px; height: 28px; fill: none; stroke: #187ca7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { font-size: 19px; font-weight: 850; letter-spacing: -.03em; }
.menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background .2s ease;
}
.menu-toggle:hover { background: #f2f5f9; }
.menu-toggle span { height: 2px; border-radius: 999px; background: currentColor; }
.menu-toggle span:nth-child(2) { width: 75%; }

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(8, 15, 30, .68);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s ease;
}
.menu-backdrop.is-visible { opacity: 1; }

.site-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(324px, 92vw);
    height: 100dvh;
    color: #172033;
    background: #fff;
    box-shadow: 28px 0 90px rgba(15, 23, 42, .22);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
.site-drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-shell {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: inherit;
}

.drawer-top {
    min-height: 74px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
}

.drawer-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}
.drawer-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2463eb, #19c8d0);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    font-size: 18px;
    font-weight: 900;
}
.drawer-brand > span:last-child { min-width: 0; display: grid; gap: 1px; }
.drawer-brand strong { font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.drawer-brand small {
    overflow: hidden;
    color: #8791a4;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #7a8497;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}
.drawer-close:hover { color: #111827; background: #f4f6f9; }
.drawer-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

.drawer-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d6dce6 transparent;
}
.drawer-scroll::-webkit-scrollbar { width: 6px; }
.drawer-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: #d6dce6; }

.drawer-account {
    margin: 0;
    padding: 22px 16px 18px;
    border-bottom: 1px solid #edf0f5;
}
.drawer-account-copy { display: grid; gap: 4px; }
.drawer-account-copy strong { font-size: 14px; letter-spacing: -.01em; }
.drawer-account-copy span { color: #7a8497; font-size: 11px; line-height: 1.45; }
.drawer-account-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; }

.drawer-button {
    min-height: 38px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.drawer-button:hover { transform: translateY(-1px); }
.drawer-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-button-light { border: 1px solid #e3e7ee; color: #48536a; background: #fff; }
.drawer-button-light:hover { background: #f7f9fc; }
.drawer-button-primary { border: 1px solid #6437ef; color: #fff; background: linear-gradient(135deg, #7146ef, #5a2de0); box-shadow: 0 9px 20px rgba(100,55,239,.22); }

.drawer-nav { padding: 6px 10px 24px; }
.drawer-group { padding: 14px 0 8px; border-bottom: 1px solid #f0f2f6; }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group-title,
.drawer-group-toggle {
    margin: 0 8px 8px;
    color: #9aa3b4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.drawer-group-toggle {
    width: calc(100% - 16px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.drawer-group-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}
.drawer-group-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }

.drawer-submenu { display: grid; gap: 2px; }
.drawer-submenu:not(.is-open) { display: none; }

.drawer-link {
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    color: #38445a;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.drawer-link:hover { color: #172033; background: #f6f8fb; transform: translateX(2px); }
.drawer-link.is-active { color: #2e63df; background: #f2f6ff; }

.drawer-link-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}
.drawer-link-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-blue { color: #2f6fe9; background: #eaf1ff; }
.icon-yellow { color: #b78300; background: #fff5d8; }
.icon-green { color: #129567; background: #e5faf2; }
.icon-purple { color: #7c45dc; background: #f1eaff; }
.icon-pink { color: #df4d8f; background: #ffeaf3; }
.icon-cyan { color: #0d9fb0; background: #e2f9fc; }
.icon-orange { color: #d87918; background: #fff0df; }
.icon-indigo { color: #5664db; background: #edf0ff; }
.icon-magenta { color: #c23bb7; background: #fce9fb; }
.icon-emerald { color: #1b9c73; background: #e7f9f2; }
.icon-sky { color: #268bc9; background: #e8f5fd; }
.icon-amber { color: #c18b14; background: #fff7dc; }

.drawer-chevron { color: #aab2c0; font-size: 19px; font-weight: 400; }
.drawer-badge {
    padding: 3px 6px;
    border-radius: 999px;
    color: #6d3ce7;
    background: #efe8ff;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.drawer-footer {
    padding: 10px 12px 12px;
    border-top: 1px solid #edf0f5;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 20px rgba(15, 23, 42, .035);
}
.drawer-admin-link {
    min-height: 34px;
    margin-bottom: 9px;
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 9px;
    color: #697386;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.drawer-admin-link:hover { color: #2e63df; background: #f3f6fb; }
.drawer-admin-link svg,
.preference-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drawer-preferences {
    display: grid;
    grid-template-columns: 40px repeat(3, minmax(0, 1fr));
    gap: 5px;
}
.preference-button {
    min-width: 0;
    min-height: 32px;
    padding: 6px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    color: #7b8496;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.preference-button:hover { color: #263147; border-color: #d7dce5; background: #f7f9fc; }
.preference-button.is-selected { color: #5f34dd; border-color: #d9cdfd; background: #f5f1ff; }
.language-button { color: #2878d8; background: #eef7ff; }

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 160;
    max-width: min(420px, calc(100vw - 28px));
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, .94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .25);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transform: translateX(-50%);
}

.hero {
    min-height: 720px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #f0f2f6;
    background:
        radial-gradient(circle at 18% 22%, rgba(72, 121, 255, .18), transparent 34%),
        radial-gradient(circle at 82% 30%, rgba(26, 220, 211, .18), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f7f8ff 72%, #fff 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, .08) .8px, transparent .8px);
    background-size: 28px 28px;
    opacity: .18;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
    pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(20px); opacity: .55; }
.hero-glow-one { width: 340px; height: 340px; left: 10%; top: 22%; background: rgba(125, 118, 255, .13); }
.hero-glow-two { width: 300px; height: 300px; right: 9%; top: 20%; background: rgba(26, 220, 211, .13); }
.hero-content { position: relative; z-index: 2; padding: 80px 0 110px; text-align: center; }
.hero-badge {
    width: fit-content;
    margin: 0 auto 26px;
    padding: 9px 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 999px;
    color: #34446b;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    font-size: 13px;
    font-weight: 720;
    backdrop-filter: blur(12px);
}
.sparkle { color: var(--primary); font-size: 18px; }
.hero h1 {
    margin: 0;
    font-size: clamp(52px, 7.2vw, 94px);
    line-height: .94;
    letter-spacing: -.066em;
    font-weight: 900;
}
.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 46%, #14c8c6 100%);
    background-clip: text;
    -webkit-background-clip: text;
}
.hero p {
    max-width: 750px;
    margin: 28px auto 0;
    color: #536078;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}
.hero-actions { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.button {
    min-height: 52px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 14px 28px rgba(37, 99, 235, .23); }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 18px 34px rgba(37, 99, 235, .28); }
.button-secondary { border-color: #dde3ec; color: var(--ink); background: rgba(255,255,255,.82); box-shadow: 0 10px 24px rgba(15, 23, 42, .05); }
.button-secondary:hover { background: #fff; }
.button-light { color: var(--primary); background: #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .16); }
.button-disabled { cursor: default; }
.button-disabled:hover { transform: none; }

.section { padding: 110px 0; }
.section-heading { margin-bottom: 46px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { max-width: 650px; margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-link { white-space: nowrap; font-weight: 760; }
.muted-link { color: #35415c; }

.platform-section { background: #fff; }
.feature-grid {
    display: grid;
    grid-template-columns: 1.45fr .7fr;
    gap: 18px;
}
.feature-stack { display: grid; gap: 18px; }
.feature-card {
    position: relative;
    min-height: 190px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: var(--radius-lg);
    background: #f8f9fc;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #dae3f5; box-shadow: var(--shadow-md); }
.feature-card-large {
    min-height: 430px;
    display: block;
    padding: 38px;
    background: linear-gradient(135deg, #edf2ff, #f4f7ff 60%, #effbff);
}
.feature-card-large h3 { margin-top: 28px; }
.feature-card h3 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: #62708a; font-size: 15px; line-height: 1.65; }
.feature-card-large p { max-width: 610px; font-size: 18px; }
.feature-card-dark {
    min-height: 210px;
    color: #fff;
    background: #0f1834;
    border-color: #0f1834;
}
.feature-card-dark p { color: #aeb9d0; }
.feature-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.blue { color: #fff; background: #2563eb; box-shadow: 0 12px 24px rgba(37,99,235,.25); }
.feature-icon.cyan { color: #0f9da7; background: #cffafa; }
.feature-icon.purple { color: #a21caf; background: #fae8ff; }
.feature-icon.green { color: #15966a; background: #d7fae9; }
.feature-icon.dark { color: #fff; background: rgba(255,255,255,.1); }
.soon-label {
    position: absolute;
    left: 38px;
    bottom: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(37,99,235,.15);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255,255,255,.66);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.exams-section { background: #f8f9fc; }
.exam-list { display: grid; gap: 22px; }
.exam-card {
    min-height: 178px;
    padding: 30px 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #dfe4ec;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.exam-card h3 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.exam-card p { max-width: 790px; margin: 8px 0 18px; color: var(--muted); line-height: 1.55; }
.exam-time {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 10px;
    color: #667085;
    background: #f5f7fa;
    font-size: 13px;
    font-weight: 720;
}
.exam-score {
    padding: 8px 12px;
    border-radius: 999px;
    color: #0a9369;
    background: #e9fbf4;
    font-size: 13px;
    font-weight: 850;
}

.word-section {
    min-height: 650px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
}
.word-pattern {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.word-content { position: relative; z-index: 2; text-align: center; }
.word-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid #dce4f5;
    border-radius: 18px;
    color: var(--primary);
    background: #f5f8ff;
    box-shadow: 0 10px 30px rgba(37,99,235,.1);
}
.word-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.word-kicker { color: #68758e; font-size: 14px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.word-content h2 { margin: 50px 0 18px; font-size: clamp(58px, 8vw, 92px); line-height: .9; letter-spacing: -.065em; }
.word-content p { margin: 0 auto 32px; color: #52617a; font-size: 19px; }

.articles-section { background: #f7f9fc; }
.articles-grid { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: stretch; }
.article-card {
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.article-visual {
    height: 205px;
    position: relative;
    display: grid;
    place-items: center;
    background: #f2f5f9;
}
.article-line { position: absolute; top: 18px; left: 20px; width: 24px; height: 5px; border-radius: 99px; background: var(--primary); }
.article-logo { display: grid; place-items: center; color: #1f5f88; }
.article-symbol { width: 72px; height: 72px; border: 0; box-shadow: none; background: transparent; }
.article-symbol svg { width: 58px; height: 58px; }
.article-logo strong { margin-top: 4px; font-size: 24px; }
.article-logo small { margin-top: 4px; color: #66819a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-body { padding: 24px 26px 28px; }
.article-meta { color: #77839a; font-size: 12px; }
.article-body h3 { margin: 16px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.article-body p { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.article-link { color: var(--primary); font-weight: 800; }
.article-placeholder {
    min-height: 100%;
    display: grid;
    place-items: center;
    border: 1px dashed #d8dee8;
    border-radius: 22px;
    color: #7b879b;
    background: rgba(255,255,255,.55);
    text-align: center;
    padding: 30px;
}

.cta-section {
    padding: 82px 0;
    color: #fff;
    background: linear-gradient(115deg, #5530db 0%, #245df0 45%, #2588f2 100%);
}
.cta-content { text-align: center; }
.cta-content h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.045em; }
.cta-content p { max-width: 710px; margin: 15px auto 28px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.65; }

.site-footer { padding: 72px 0 24px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 46px; }
.footer-brand p { max-width: 300px; color: var(--muted); line-height: 1.65; }
.footer-grid h3 { margin: 5px 0 18px; font-size: 14px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 11px; }
.footer-grid a, .footer-grid span { color: #6c788c; font-size: 13px; text-decoration: none; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid strong { color: #27324b; font-size: 13px; }
.footer-bottom {
    margin-top: 56px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: #98a2b3;
    font-size: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero { min-height: 650px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card-large { min-height: 360px; }
    .feature-card-dark { min-height: 190px; }
    .articles-grid { grid-template-columns: 320px 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 700px) {
    .site-container { width: min(100% - 28px, 1120px); }
    .site-header { height: 72px; }
    .brand-word { display: none; }
    .hero { min-height: 640px; }
    .hero-content { padding: 70px 0 90px; }
    .hero h1 { font-size: clamp(46px, 14vw, 68px); }
    .hero p { font-size: 17px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .section { padding: 78px 0; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .feature-card, .feature-card-large { min-height: auto; padding: 25px; }
    .feature-card-large { padding-bottom: 82px; }
    .soon-label { left: 25px; bottom: 24px; }
    .exam-card { padding: 24px; align-items: flex-start; flex-direction: column; }
    .word-section { min-height: 560px; }
    .word-content h2 { margin-top: 38px; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-placeholder { min-height: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    .hero-badge { font-size: 11px; }
    .feature-card:not(.feature-card-large) { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
}

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

/* Theme support — lightweight, no external library. */
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eef4ff;
    --muted: #9aa8bf;
    --line: #273149;
    --surface: #111a2d;
    --surface-soft: #0d1526;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, .18);
    --shadow-md: 0 22px 60px rgba(0, 0, 0, .26);
}
html[data-theme="dark"] body { color: var(--ink); background: #0a1120; }
html[data-theme="dark"] .site-header {
    border-bottom-color: rgba(51,65,85,.72);
    background: rgba(10,17,32,.86);
}
html[data-theme="dark"] .site-header.is-scrolled { background: rgba(10,17,32,.96); }
html[data-theme="dark"] .brand-symbol { border-color: #26324a; background: #111a2d; }
html[data-theme="dark"] .menu-toggle:hover { background: #172238; }
html[data-theme="dark"] .site-drawer,
html[data-theme="dark"] .drawer-shell { color: #eef4ff; background: #111827; }
html[data-theme="dark"] .drawer-top,
html[data-theme="dark"] .drawer-account,
html[data-theme="dark"] .drawer-group,
html[data-theme="dark"] .drawer-footer { border-color: #273149; }
html[data-theme="dark"] .drawer-footer { background: rgba(17,24,39,.97); }
html[data-theme="dark"] .drawer-brand small,
html[data-theme="dark"] .drawer-account-copy span,
html[data-theme="dark"] .drawer-group-title,
html[data-theme="dark"] .drawer-group-toggle { color: #8591a8; }
html[data-theme="dark"] .drawer-close { color: #9aa8bf; }
html[data-theme="dark"] .drawer-close:hover,
html[data-theme="dark"] .drawer-link:hover { color: #fff; background: #1a2539; }
html[data-theme="dark"] .drawer-link { color: #c5d0e2; }
html[data-theme="dark"] .drawer-link.is-active { color: #8bb2ff; background: #182641; }
html[data-theme="dark"] .drawer-button-light,
html[data-theme="dark"] .preference-button { color: #c6d0df; border-color: #303a50; background: #182133; }
html[data-theme="dark"] .preference-button:hover { color: #fff; border-color: #445069; background: #202b40; }
html[data-theme="dark"] .preference-button.is-selected { color: #c9b8ff; border-color: #614b9e; background: #2a2147; }
html[data-theme="dark"] .language-button { color: #8fc5ff; background: #172943; }
html[data-theme="dark"] .hero {
    border-color: #1d2940;
    background:
        radial-gradient(circle at 18% 22%, rgba(72,121,255,.2), transparent 34%),
        radial-gradient(circle at 82% 30%, rgba(26,220,211,.12), transparent 34%),
        linear-gradient(180deg, #0b1324 0%, #0d1528 72%, #0a1120 100%);
}
html[data-theme="dark"] .hero-badge { color: #b9c6da; border-color: #35425a; background: rgba(17,26,45,.72); }
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .exam-card p,
html[data-theme="dark"] .word-content p,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .footer-brand p { color: #9aa8bf; }
html[data-theme="dark"] .button-secondary { color: #eaf0fa; border-color: #303c54; background: rgba(17,26,45,.9); }
html[data-theme="dark"] .platform-section,
html[data-theme="dark"] .word-section,
html[data-theme="dark"] .site-footer { background: #0a1120; }
html[data-theme="dark"] .exams-section,
html[data-theme="dark"] .articles-section { background: #0d1526; }
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .exam-card,
html[data-theme="dark"] .article-card { border-color: #273149; background: #111a2d; }
html[data-theme="dark"] .feature-card-large { background: linear-gradient(135deg, #14213c, #111b31 60%, #102332); }
html[data-theme="dark"] .feature-card-dark { background: #080e1b; }
html[data-theme="dark"] .exam-time { color: #a9b5c8; background: #19243a; }
html[data-theme="dark"] .article-placeholder { color: #8c99ad; border-color: #334057; background: rgba(17,26,45,.7); }
html[data-theme="dark"] .footer-grid a,
html[data-theme="dark"] .footer-grid span { color: #96a4b8; }
html[data-theme="dark"] .footer-grid strong { color: #dce5f2; }
html[data-theme="dark"] .word-pattern { opacity: .12; }
