/* ============================================
   Pallium marketing — dark instrument, warm edge
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&family=Syne:wght@500;600;700;800&display=swap");

:root {
    --bg: #06070b;
    --bg-elevated: #0c0e14;
    --surface: rgba(18, 22, 32, 0.72);
    --surface-solid: #121620;
    --surface-hover: rgba(28, 34, 48, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f1ec;
    --text-muted: #9a9eab;
    --accent: #ff9e4d;
    --accent-soft: rgba(255, 158, 77, 0.14);
    --accent-glow: rgba(255, 158, 77, 0.45);
    --blue: #6eb6ff;
    --blue-soft: rgba(110, 182, 255, 0.14);
    --blue-glow: rgba(110, 182, 255, 0.4);
    --teal: #2dd4bf;
    --btn-primary: #ff9e4d;
    --btn-primary-hover: #ffb066;
    --btn-primary-text: #1a1008;
    --destructive: #f07178;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --radius: 18px;
    --max: 72rem;
    --header-h: 4.5rem;
    --section-y: 4.5rem;
    --font-display: "Syne", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    color-scheme: dark;
}

html.light-mode,
body.light-mode {
    --bg: #f4f1ea;
    --bg-elevated: #fffdf8;
    --surface: rgba(255, 253, 248, 0.78);
    --surface-solid: #fffdf8;
    --surface-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(20, 24, 32, 0.1);
    --border-strong: rgba(20, 24, 32, 0.16);
    --text: #12151c;
    --text-muted: #5a6170;
    --accent: #c45f12;
    --accent-soft: rgba(196, 95, 18, 0.1);
    --accent-glow: rgba(196, 95, 18, 0.22);
    --blue: #1d5fd0;
    --blue-soft: rgba(29, 95, 208, 0.1);
    --blue-glow: rgba(29, 95, 208, 0.2);
    --teal: #0f766e;
    --btn-primary: #12151c;
    --btn-primary-hover: #2a3140;
    --btn-primary-text: #f7f4ee;
    --shadow: 0 20px 50px rgba(20, 24, 32, 0.1);
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* clip (not hidden) avoids WebKit side-effect of clipping vertical glyph overflow */
    overflow-x: clip;
    position: relative;
}

/* ---------- Atmosphere ---------- */

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 90% 70% at 10% -10%,
            rgba(255, 158, 77, 0.16),
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 55% at 95% 5%,
            rgba(110, 182, 255, 0.14),
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 50% at 70% 90%,
            rgba(45, 212, 191, 0.06),
            transparent 55%
        ),
        var(--bg);
}

html.light-mode .atmosphere {
    background:
        radial-gradient(
            ellipse 90% 70% at 10% -10%,
            rgba(255, 158, 77, 0.18),
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 55% at 95% 5%,
            rgba(29, 95, 208, 0.1),
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 50% at 70% 90%,
            rgba(15, 118, 110, 0.06),
            transparent 55%
        ),
        var(--bg);
}

.atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(
        ellipse 80% 70% at 50% 20%,
        black,
        transparent 75%
    );
    opacity: 0.55;
}

html.light-mode .atmosphere::before {
    background-image:
        linear-gradient(rgba(18, 21, 28, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 21, 28, 0.05) 1px, transparent 1px);
    opacity: 0.7;
}

.atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.045;
    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");
    mix-blend-mode: overlay;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
    width: 28rem;
    height: 28rem;
    top: -8rem;
    left: -6rem;
    background: var(--accent-glow);
}

.orb-b {
    width: 24rem;
    height: 24rem;
    top: 20%;
    right: -8rem;
    background: var(--blue-glow);
    animation-delay: -6s;
    animation-duration: 22s;
}

.orb-c {
    width: 18rem;
    height: 18rem;
    bottom: 5%;
    left: 30%;
    background: rgba(45, 212, 191, 0.25);
    animation-delay: -11s;
    animation-duration: 26s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(4%, 6%, 0) scale(1.08);
    }
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent);
}

/* ---------- Layout ---------- */

.wrap {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.site-header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    font-size: 1.45rem;
    line-height: 1;
}

.brand:hover {
    color: var(--text);
}

.brand-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 5px var(--accent-soft),
        0 0 20px var(--accent-glow);
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.15rem 1.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
}

.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.nav .nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--btn-primary) 40%, transparent),
        0 10px 30px var(--accent-glow);
}

.nav .nav-cta:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-primary-text);
    filter: brightness(1.05);
}

.nav .nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

main {
    min-height: calc(100vh - var(--header-h) - 5rem);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.25rem 0 6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--text);
}

/* ---------- Hero ---------- */

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-copy {
    min-width: 0;
    overflow: visible;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0.7rem 0.35rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.hero h1,
.page-hero h1 {
    margin: 0 0 1rem;
    /* Syne 800 has deep descenders (g, y). Tight line-boxes clip them. */
    padding: 0.05em 0 0.35em;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.4;
    font-size: clamp(2.35rem, 5.5vw, 3.85rem);
    max-width: none;
    overflow: visible;
    color: var(--text);
    /* Keep painted glyphs from being sliced by grid/overflow ancestors */
    text-rendering: geometricPrecision;
}

html.light-mode .hero h1,
html.light-mode .page-hero h1 {
    color: var(--text);
}

.hero-lead,
.page-hero p {
    margin: 0 0 1.85rem;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.7;
    text-align: justify;
    text-wrap: pretty;
}

.hero-lead em,
.page-hero p em,
.section-lead em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.08em;
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

/* Decorative causal constellation */
.hero-visual {
    position: relative;
    min-height: 22rem;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 45%),
        radial-gradient(circle at 75% 65%, var(--blue-soft), transparent 40%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 40%),
        color-mix(in srgb, var(--surface-solid) 88%, transparent);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.hero-visual svg {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    display: block;
}

.hero-visual-caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.node-glow {
    filter: drop-shadow(0 0 6px rgba(255, 158, 77, 0.65));
}

.node-glow-blue {
    filter: drop-shadow(0 0 6px rgba(110, 182, 255, 0.65));
}

.edge-draw {
    stroke-dasharray: 8 10;
    animation: dash 18s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -200;
    }
}

/* ---------- Sections ---------- */

.section {
    padding: var(--section-y) 0;
}

.section-tight {
    /* Keep class for markup compatibility; same rhythm as .section */
    padding: var(--section-y) 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    max-width: 48rem;
}

.section h2,
.section-title,
.cta-band h2,
.soon-panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    letter-spacing: -0.03em;
    line-height: 1.18;
    font-weight: 700;
    padding-bottom: 0.06em;
}

.section-lead {
    margin: 0;
    max-width: 42rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
    text-wrap: pretty;
}

/* Feature rails — not boring equal cards */
.feature-rail {
    display: grid;
    gap: 1rem;
}

.feature {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem 1.5rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(
        125deg,
        color-mix(in srgb, var(--surface-solid) 92%, transparent),
        color-mix(in srgb, var(--surface-solid) 55%, transparent)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.2s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.feature:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    transform: translateY(-2px);
    background: linear-gradient(
        125deg,
        color-mix(in srgb, var(--surface-solid) 100%, transparent),
        color-mix(in srgb, var(--accent-soft) 35%, var(--surface-solid))
    );
}

.feature-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    background: linear-gradient(
        180deg,
        var(--accent),
        color-mix(in srgb, var(--accent) 20%, transparent)
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.feature h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.feature p {
    margin: 0;
    color: var(--text-muted);
    max-width: 46rem;
    text-align: justify;
    text-wrap: pretty;
}

/* Audience bento */
.audience {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.audience-card {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    min-height: 10rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-solid);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
    transition:
        transform 0.25s ease,
        border-color 0.2s ease;
}

.audience-card:nth-child(1) {
    grid-column: span 7;
    background:
        radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 45%),
        var(--surface-solid);
}

.audience-card:nth-child(2) {
    grid-column: span 5;
    background:
        radial-gradient(circle at 0% 100%, var(--blue-soft), transparent 50%),
        var(--surface-solid);
}

.audience-card:nth-child(3) {
    grid-column: span 5;
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(45, 212, 191, 0.1),
            transparent 50%
        ),
        var(--surface-solid);
}

.audience-card:nth-child(4) {
    grid-column: span 7;
}

.audience-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.audience-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.audience-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 34rem;
    text-align: justify;
    text-wrap: pretty;
}

/* Quote / manifesto strip */
.manifesto {
    margin: 0.5rem 0 0;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 158, 77, 0.08), transparent 40%),
        linear-gradient(320deg, rgba(110, 182, 255, 0.08), transparent 35%),
        color-mix(in srgb, var(--surface-solid) 90%, transparent);
    box-shadow: var(--shadow);
}

.manifesto p {
    margin: 0;
    max-width: 28ch;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
}

.manifesto footer {
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(2rem, 4vw, 2.75rem);
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(
            ellipse 80% 120% at 0% 0%,
            var(--accent-soft),
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 100% at 100% 100%,
            var(--blue-soft),
            transparent 50%
        ),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.cta-band h2 {
    margin: 0 0 0.55rem;
}

.cta-band p {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
    max-width: 36rem;
    text-align: justify;
    text-wrap: pretty;
}

/* Page hero */
.page-hero {
    padding: var(--section-y) 0 calc(var(--section-y) * 0.35);
}

.page-hero h1 {
    max-width: none;
}

/* ---------- Founders ---------- */

.founders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.founder-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 40%),
        var(--surface-solid);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    min-width: 0;
}

.founder-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    opacity: 0.85;
}

.founder-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--blue), transparent 70%);
}

.founder-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
}

.founder-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

.founder-role {
    margin: 0;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
}

.founder-card:nth-child(2) .founder-role {
    color: var(--blue);
}

.founder-bio {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.founder-bio p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: justify;
    text-wrap: pretty;
}

/* Prose */
.prose {
    max-width: 42rem;
}

.prose h2 {
    margin: 2.5rem 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    letter-spacing: -0.03em;
    line-height: 1.18;
    font-weight: 700;
    padding-bottom: 0.06em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    text-align: justify;
    text-wrap: pretty;
}

.prose p strong,
.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--text-muted);
}

.prose li + li {
    margin-top: 0.55rem;
}

.prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.muted {
    color: var(--text-muted);
}

.divider {
    border: 0;
    height: 1px;
    margin: 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-strong),
        transparent
    );
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.2s ease,
        color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    border-color: transparent;
    box-shadow: 0 12px 36px var(--accent-glow);
}

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

.btn-secondary {
    background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: color-mix(in srgb, var(--blue) 40%, var(--border));
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    padding-inline: 0.85rem;
    box-shadow: none;
}

.btn-ghost:hover {
    color: var(--text);
}

/* ---------- Forms ---------- */

.form-shell {
    max-width: 36rem;
    padding: 1.6rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 45%),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.form {
    display: grid;
    gap: 1.05rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.field .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-body);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    color: var(--text);
    font: inherit;
    padding: 0.8rem 0.95rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
    min-height: 9.5rem;
    resize: vertical;
}

.hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-status {
    min-height: 1.4rem;
    font-size: 0.9rem;
}

.form-status[data-state="error"] {
    color: var(--destructive);
}

.form-status[data-state="ok"] {
    color: var(--teal);
}

.form-status[data-state="pending"] {
    color: var(--text-muted);
}

.turnstile-slot {
    min-height: 1.5rem;
}

/* ---------- Coming soon ---------- */

.soon-panel {
    margin: 1rem 0 4rem;
    padding: 2.1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background:
        radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 45%),
        var(--surface-solid);
    max-width: 40rem;
    box-shadow: var(--shadow);
}

.soon-label {
    margin: 0 0 0.75rem !important;
    color: var(--accent) !important;
    font-family: var(--font-mono);
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.soon-panel h2 {
    margin: 0 0 0.75rem;
    color: var(--text);
}

.soon-panel p {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    text-align: justify;
    text-wrap: pretty;
}

.soon-panel .hero-actions {
    margin-top: 0.35rem;
}

.soon-panel code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
}

/* ---------- Theme switch ---------- */

.theme-switch-dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
}

.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem 0.45rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--surface-solid) 85%, transparent);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.mode-toggle:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--blue) 40%, var(--border));
}

.mode-toggle:focus-within {
    outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent);
    outline-offset: 2px;
}

.mode-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.mode-toggle-track {
    position: relative;
    display: block;
    width: 2rem;
    height: 1.15rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
    border: 1px solid var(--border);
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.mode-toggle-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(1.15rem - 4px);
    height: calc(1.15rem - 4px);
    border-radius: 9999px;
    background: var(--text-muted);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}

.mode-toggle input:checked + .mode-toggle-track {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.mode-toggle input:checked + .mode-toggle-track .mode-toggle-thumb {
    transform: translateX(0.85rem);
    background: var(--accent);
}

html.light-mode #theme-mode-toggle,
body.light-mode #theme-mode-toggle {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 16rem;
        order: -1;
    }

    .hero-visual svg {
        min-height: 16rem;
    }

    .audience-card,
    .audience-card:nth-child(1),
    .audience-card:nth-child(2),
    .audience-card:nth-child(3),
    .audience-card:nth-child(4) {
        grid-column: span 12;
    }

    .founders {
        grid-template-columns: 1fr;
    }

    .feature {
        grid-template-columns: 3.5rem 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.85rem 1.25rem 1.15rem;
        background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.8rem 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav a[aria-current="page"]::after {
        display: none;
    }

    .nav .nav-cta {
        margin-top: 0.65rem;
        justify-content: center;
    }

    .site-header .wrap {
        position: relative;
    }
}

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

    .orb,
    .edge-draw,
    .eyebrow-pulse,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
