:root {
    --bg-primary: #05070D;
    --bg-secondary: #0B1120;
    --bg-elevated: #0F1729;
    --blue-primary: #2563EB;
    --blue-accent: #3B82F6;
    --blue-muted: rgba(37, 99, 235, 0.12);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --glass: rgba(11, 17, 32, 0.55);
    --glow: rgba(37, 99, 235, 0.28);
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 100px;
    --header-h-scrolled: 84px;
    --logo-h: 78px;
    --logo-h-scrolled: 66px;
    --section-gap: clamp(6rem, 12vw, 9rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loaded .page-hero-content > .reveal {
    opacity: 1;
    transform: translateY(0);
}

a { text-decoration: none; color: inherit; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--blue-primary);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* Typography */
.eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--blue-primary);
    vertical-align: middle;
    margin-right: 0.75rem;
    opacity: 0.8;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.038em;
    margin-bottom: 1.875rem;
}

h2 {
    font-size: clamp(1.9375rem, 4vw, 3.125rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.032em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.32;
}

.text-accent {
    color: var(--text-primary);
    background: linear-gradient(135deg, #FFFFFF 30%, #93C5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-top: 1.625rem;
    line-height: 1.78;
    letter-spacing: -0.005em;
}

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-header {
    max-width: 640px;
    margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--blue-accent);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--blue-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--blue-accent);
    transform: translateY(-4px);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-glow {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 0 28px var(--glow);
}

.btn-glow:hover {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.28),
        0 0 48px rgba(37, 99, 235, 0.4);
}

.btn-lg {
    padding: 1.0625rem 2.5rem;
    font-size: 0.9375rem;
}

/* Glass cards (shared) */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition:
        transform 0.55s var(--ease),
        border-color 0.4s ease,
        box-shadow 0.55s var(--ease);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-cta {
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
