/* V8: SKY BLUE EDITION — Base (Light Premium) */
:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surf: #ffffff;
    --prim: #0284c7;
    --prim-soft: rgba(2, 132, 199, 0.08);
    --text: #0f172a;
    --mut: #475569;
    --bord: #e2e8f0;
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 92px;
    --touch: 48px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-color: #061220; /* Prevents white flash on mobile overscroll */
}

/* ── Selection Theme ── */
::selection {
    background: rgba(2, 132, 199, 0.2);
    color: var(--prim);
}
::-moz-selection {
    background: rgba(2, 132, 199, 0.2);
    color: var(--prim);
}

/* ── Native Cross-Document Transitions (Chrome 126+) ── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 220ms ease both vt-fade-out;
}

::view-transition-new(root) {
    animation: 280ms ease both vt-fade-in;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes vt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 220px, var(--bg) 100%);
    color: var(--text);
    line-height: 1.6;
    animation: page-in 0.4s var(--ease-out);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

@keyframes page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

a, button {
    touch-action: manipulation;
}

img, svg {
    max-width: 100%;
    height: auto;
}

