:root {
    --violet-700: #5b34d6;
    --violet-600: #6d44e8;
    --violet-400: #9d80ff;
    --violet-200: #d8ccff;
    --violet-tint: #f1ecff;
    --spark: #36e0c8;

    --paper: #faf8f4;
    --paper-2: #f3efe8;
    --paper-line: #e6e0d6;
    --paper-grid: #ece6db;

    --ink-900: #0c0a14;
    --ink-800: #131120;
    --ink-700: #1c1930;
    --ink-line: #2a2640;
    --ink-grid: #1a1730;

    --text-on-light: #1a1622;
    --text-on-light-soft: #544c5e;
    --text-on-light-faint: #8a8294;
    --text-on-dark: #f0ecf7;
    --text-on-dark-soft: #a59fb8;
    --text-on-dark-faint: #6b6483;

    --ok: #3fa874;
    --pending: #c9942f;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-reveal: cubic-bezier(0.2, 0.7, 0.2, 1);

    --r-btn: 10px;
    --r-card: 16px;
    --r-cta: 24px;
    --pill: 999px;

    --shadow-hover: 0 2px 8px rgba(26, 22, 34, 0.06);
    --shadow-elev: 0 8px 28px rgba(26, 22, 34, 0.08);
    --shadow-cta: 0 24px 60px rgba(26, 22, 34, 0.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    font-size: 1rem;
    color: var(--text-on-light);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    color: var(--text-on-light);
}
h1 {
    font-size: clamp(2.75rem, 5.2vw, 4.75rem);
    font-weight: 480;
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
}
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 480; line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.12; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--text-on-light); }

em, .em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 480;
    color: var(--violet-700);
}

p { line-height: 1.65; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.body-lg { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; }
.small { font-size: 0.875rem; font-weight: 500; }

::selection { background: var(--violet-tint); color: var(--text-on-light); }

:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--violet-700);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--r-btn) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--violet-700);
}
.eyebrow-on-dark { color: var(--violet-400); }

.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 1.1rem 0 1rem; }
.section-head p { font-size: 1.2rem; color: var(--text-on-light-soft); }

.tech-grid {
    background-image:
        linear-gradient(to right, var(--ink-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--ink-grid) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.06;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 90%);
    mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 90%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 13px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--r-btn);
    transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform 200ms var(--ease); }

.btn-primary {
    background: var(--violet-700);
    color: #fff;
}
.btn-primary:hover {
    background: var(--violet-600);
    transform: translateY(-1px);
}
.btn-primary:hover svg:last-child { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 16px 30px; font-size: 1.0625rem; }

.btn-ghost-dark {
    background: var(--ink-800);
    color: var(--text-on-dark);
}
.btn-ghost-dark:hover { background: var(--ink-700); color: var(--violet-400); }

.btn-ghost-light {
    background: var(--paper-2);
    color: var(--text-on-light);
}
.btn-ghost-light:hover { background: var(--violet-tint); }

.reveal, .reveal-left, .reveal-scale {
    opacity: 0;
    transition: opacity 600ms var(--ease-reveal), transform 600ms var(--ease-reveal);
}
.reveal { transform: translateY(16px); }
.reveal-left { transform: translateY(16px); }
.reveal-scale { transform: translateY(16px) scale(0.98); }
.reveal.in, .reveal-left.in, .reveal-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-left, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
    .container { padding: 0 1.15rem; }
    .section-head { margin-bottom: 2.5rem; }
    .section-head p { font-size: 1.05rem; }
    .section-head.center { text-align: left; }
}
