:root {
    --brand-light: #7BC5EB;
    --brand-blue: #3975C5;
    --brand-navy: #142D50;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface2: #F3F9FD;
    --text: #142D50;
    --text-muted: #526781;
    --border: #DDEAF3;
    --accent: #3975C5;
    --ok: #18744B;
    --ok-bg: #EDF8F2;
    --ok-border: #CEEADB;
    --err: #BD363B;
    --err-bg: #FFF2F2;
    --err-border: #F3D4D6;
    --warn: #926019;
    --warn-bg: #FFF8EB;
    --warn-border: #EEDFBF;
    --radius: 16px;
    --radius-sm: 9px;
    --shadow: 0 5px 24px rgba(20, 45, 80, .04);
    color-scheme: light;
}

body.dark {
    --bg: #0E2037;
    --surface: #142D50;
    --surface2: #193657;
    --text: #F1F7FD;
    --text-muted: #B4C8DD;
    --border: #2D4868;
    --accent: #7BC5EB;
    --ok: #7BD7A8;
    --ok-bg: #173F36;
    --ok-border: #2C6351;
    --err: #FFACAE;
    --err-bg: #4A2C3D;
    --err-border: #744457;
    --warn: #F0CB8C;
    --warn-bg: #3D382B;
    --warn-border: #67583B;
    --shadow: 0 5px 24px rgba(0, 0, 0, .12);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background .2s, color .2s;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
a { color: var(--accent); }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    left: 20px;
    top: -80px;
    z-index: 500;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
}
.skip-link:focus { top: 14px; }
header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.header-inner {
    max-width: 1184px;
    min-height: 100px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-link { display: inline-flex; flex-shrink: 0; border-radius: 8px; }
.brand-logo { display: block; width: 218px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s, background .2s;
}
.nav-link i { font-size: 12px; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--surface2); }
.theme-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.theme-btn:hover { border-color: var(--brand-light); color: var(--accent); }
main { max-width: 1240px; margin: 0 auto; padding: 36px 28px 72px; }
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.button-primary { background: var(--brand-blue); color: #FFFFFF; }
.button-primary:hover { background: #2D64AE; }
.button-secondary { color: var(--accent); background: var(--surface); border-color: var(--border); }
.button-secondary:hover { border-color: var(--brand-light); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

@media (max-width: 800px) {
    html { scroll-padding-top: 155px; }
    header { padding: 0 20px; }
    .header-inner { flex-wrap: wrap; gap: 12px; padding: 18px 0 12px; }
    .brand-logo { width: 190px; }
    .header-nav { width: 100%; justify-content: space-between; gap: 4px; }
    .nav-link { padding: 10px 12px; font-size: 12px; }
    .theme-btn { margin-left: auto; }
    main { padding: 28px 20px 48px; }
}
@media (max-width: 480px) {
    header { padding: 0 16px; }
    .header-inner { position: relative; gap: 10px; }
    .brand-logo { width: 166px; }
    .header-nav { gap: 2px; flex-wrap: wrap; }
    .nav-link { padding: 10px 8px; gap: 6px; font-size: 11px; }
    .header-nav .nav-link i { display: none; }
    .theme-btn { position: absolute; top: 22px; right: 0; padding: 10px; margin-left: 0; }
    .theme-btn span { display: none; }
    main { padding: 24px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
