/* ─── Fienti marketing site ────────────────────────────────────────
   Palette:
     Ink          #0a0a0a  (dominant text, dark sections)
     Body         #3f3f46
     Muted        #71717a
     Surface      #ffffff
     Surface-alt  #fafafa
     Border       #e4e4e7
     Accent       #ea580c  (CTA, links, brand moments)
     Accent-dark  #c2410c  (hover)
     Success      #059669

   Typography: system font stack. No external fonts, no external requests.
   ────────────────────────────────────────────────────────────────── */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #3f3f46;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #ea580c; text-decoration: none; }
a:hover { color: #c2410c; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}
h1, h2, h3, h4 {
    color: #0a0a0a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* Layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-alt { background: #fafafa; }
.section-dark { background: #0a0a0a; color: #d4d4d8; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark a { color: #fb923c; }
.section-dark a:hover { color: #fdba74; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ea580c;
    margin: 0 0 0.9em;
}
.eyebrow-on-dark { color: #fb923c; }
.lede { font-size: 1.12rem; color: #52525b; max-width: 720px; margin-bottom: 2.4em; }
.lede-on-dark { color: #a1a1aa; max-width: 720px; margin-bottom: 2.4em; font-size: 1.12rem; }
.on-dark { color: #ffffff; }
.accent { color: #ea580c; }

/* Top bar */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid #e4e4e7;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.wordmark { height: 28px; width: auto; }
.wordmark-sm { height: 22px; }
.topnav { display: flex; gap: 28px; }
.topnav a {
    color: #0a0a0a; font-weight: 500; font-size: 0.95rem;
}
.topnav a:hover { color: #ea580c; }
.portal-lozenge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0a0a0a; color: #ffffff !important;
    padding: 8px 18px; border-radius: 999px;
    font-weight: 600; font-size: 0.9rem;
    transition: background 0.12s;
}
.portal-lozenge:hover { background: #27272a; }
.portal-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
}
.portal-lozenge-workshop { margin-right: 8px; }
.portal-lozenge-workshop .portal-dot {
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

/* Hero */
.hero {
    padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px);
    background:
        radial-gradient(ellipse 60% 60% at 20% 0%, rgba(234, 88, 12, 0.06), transparent 70%),
        radial-gradient(ellipse 40% 50% at 90% 20%, rgba(234, 88, 12, 0.04), transparent 70%),
        #ffffff;
}
.hero-eyebrow {
    font-size: 0.88rem;
    font-weight: 600;
    color: #71717a;
    letter-spacing: 0.03em;
    margin: 0 0 1.1em;
}
.hero-title { max-width: 900px; margin-bottom: 0.6em; }
.hero-sub { font-size: 1.18rem; color: #3f3f46; max-width: 720px; margin-bottom: 2em; }
.hero-sub-bold { font-size: 1.2rem; color: #0a0a0a; font-weight: 600; max-width: 760px; margin-bottom: 2em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.6em; }
.hero-trust { font-size: 0.88rem; color: #71717a; }
.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    font-size: 0.88rem;
    color: #71717a;
    margin-top: 0.25em;
}
.hero-proof-row span { padding: 0 12px; }
.hero-proof-row span:first-child { padding-left: 0; }
.proof-div {
    width: 1px;
    height: 12px;
    background: #d4d4d8;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600; font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    text-align: center;
}
.btn-primary { background: #ea580c; color: #ffffff !important; }
.btn-primary:hover { background: #c2410c; }
.btn-ghost { background: transparent; color: #0a0a0a !important; border-color: #0a0a0a; }
.btn-ghost:hover { background: #0a0a0a; color: #ffffff !important; }
.btn-submit { width: 100%; padding: 16px 24px; font-size: 1.05rem; }

/* Proof stats (inside dark strip) */
.proof-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 36px;
    border-bottom: 1px solid #2a2a2e;
    margin-bottom: 36px;
}
.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 80px;
}
.proof-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.proof-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .proof-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Contact secondary CTA */
.contact-secondary {
    color: #71717a;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 0.6em;
}
.contact-secondary a { font-weight: 600; }

/* Capability strip */
.strip {
    background: #0a0a0a;
    padding: 44px 0 40px;
    border-top: 1px solid #1c1c1f;
    border-bottom: 1px solid #1c1c1f;
}
.strip-label {
    color: #fb923c;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0 0 28px;
    text-align: center;
}
.strip-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    position: relative;
}
/* the connecting rail — sits behind the nodes */
.strip-timeline::before {
    content: "";
    position: absolute;
    top: 7px;
    /* inset by half a cell so the rail terminates at the outer node centres */
    left: calc(100% / 18);
    right: calc(100% / 18);
    height: 2px;
    background: #2a2a2e;
}
.strip-timeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 0 6px;
}
.strip-node {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 5px #2a2a2e;
    z-index: 1;
}
.strip-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fb923c;
    line-height: 1;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.strip-stage {
    font-size: 0.82rem;
    font-weight: 500;
    color: #e4e4e7;
    line-height: 1.3;
}

/* Tablet: 3×3 grid, no rail — rail only works horizontally */
@media (max-width: 900px) {
    .strip-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 12px;
    }
    .strip-timeline::before {
        display: none;
    }
    .strip-timeline li {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
        padding: 0;
    }
    .strip-node {
        box-shadow: 0 0 0 3px #0a0a0a, 0 0 0 4px #2a2a2e;
        flex: 0 0 auto;
    }
    .strip-num { margin: 0; }
}

/* Mobile: single-column enumerated list of stages */
@media (max-width: 560px) {
    .strip-timeline {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .strip-label {
        text-align: left;
    }
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 22px;
}
.card h3 { margin-top: 0; }
.card-num {
    display: inline-block;
    font-size: 0.72rem;
    color: #ea580c;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-right: 8px;
}
.card p { margin-bottom: 0; color: #52525b; font-size: 0.97rem; }

.surface-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 26px;
}
.surface-badge {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    padding: 4px 10px; border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.surface-meta { color: #71717a; font-size: 0.88rem; margin: -4px 0 14px; }
.inline-link { font-weight: 600; }

.dark-card {
    background: #171717;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 24px;
}
.dark-card h3 { color: #ffffff; margin-top: 0; }
.dark-card p { color: #a1a1aa; margin-bottom: 0; font-size: 0.97rem; }

.feature-block {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 28px;
}
.feature-block h3 { margin-top: 0; margin-bottom: 1em; }
.feature-block ul { list-style: none; padding: 0; margin: 0; }
.feature-block li {
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid #f4f4f5;
    position: relative;
    color: #3f3f46;
    font-size: 0.97rem;
}
.feature-block li:last-child { border-bottom: 0; }
.feature-block li::before {
    content: "→";
    position: absolute;
    left: 0; top: 10px;
    color: #ea580c;
    font-weight: 700;
}
.feature-block li strong { color: #0a0a0a; }

.persona {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 22px;
}
.persona h3 { margin-top: 0; font-size: 1.05rem; }
.persona ul { list-style: none; padding: 0; margin: 0; }
.persona li {
    padding: 7px 0 7px 20px;
    position: relative;
    font-size: 0.93rem;
    color: #3f3f46;
}
.persona li::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: #ea580c;
    position: absolute; left: 4px; top: 15px;
}

/* Lifecycle */
.lifecycle {
    list-style: none; padding: 0; margin: 2em 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    overflow: hidden;
}
.lifecycle li {
    padding: 24px 22px;
    border-right: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
    position: relative;
}
.lifecycle li:nth-child(3n) { border-right: 0; }
.lifecycle li:nth-last-child(-n+3) { border-bottom: 0; }
.lifecycle h3 {
    font-size: 1.02rem;
    color: #ea580c;
    margin-top: 0; margin-bottom: 0.4em;
    font-weight: 700;
}
.lifecycle p { font-size: 0.93rem; color: #52525b; margin: 0; }
@media (max-width: 900px) {
    .lifecycle { grid-template-columns: repeat(2, 1fr); }
    .lifecycle li:nth-child(3n) { border-right: 1px solid #e4e4e7; }
    .lifecycle li:nth-child(2n) { border-right: 0; }
    .lifecycle li:nth-last-child(-n+3) { border-bottom: 1px solid #e4e4e7; }
    .lifecycle li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
    .lifecycle { grid-template-columns: 1fr; }
    .lifecycle li { border-right: 0 !important; border-bottom: 1px solid #e4e4e7 !important; }
    .lifecycle li:last-child { border-bottom: 0 !important; }
}

/* Phases */
.phases {
    list-style: none; padding: 0; margin: 2em 0 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.phases li {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 22px;
}
.phases h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #ea580c;
}
.phases p { font-size: 0.93rem; color: #52525b; margin: 0.4em 0 0; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }

/* Trust row */
.trust-row {
    list-style: none; padding: 0; margin: 2.4em 0 0;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.trust-row li {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #3f3f46;
    font-weight: 500;
}
.trust-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    background: #f4f4f5;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Pull quote */
.pull-quote {
    margin: 0;
    padding: 1.2em 0 0 20px;
    border-left: 3px solid #ea580c;
    font-size: 1.15rem;
    color: #0a0a0a;
}
.pull-quote p { margin-bottom: 1em; }
.pull-quote p:last-child { margin-bottom: 0; }

/* In-development status pill on surface cards */
.surface-status {
    display: inline-block;
    padding: 2px 10px;
    margin-left: 4px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 2px;
}

/* Soft aside for NDA / provenance note */
.meta-note {
    font-size: 0.88rem;
    color: #71717a;
    font-style: italic;
    border-top: 1px solid #e4e4e7;
    padding-top: 1em;
    margin-top: 1.5em;
}

/* Foundation-partner closing ask */
.founder-ask {
    margin-top: 2em;
    font-size: 1.02rem;
    color: #3f3f46;
    max-width: 56ch;
}

/* Contact form */
.contact-form {
    background: #171717;
    border: 1px solid #262626;
    border-radius: 16px;
    padding: 28px;
    margin: 2.4em 0 1.5em;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 0.82rem;
    color: #d4d4d8;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #ffffff;
    padding: 11px 14px;
    font-size: 0.98rem;
    font-family: inherit;
    transition: border-color 0.12s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #ea580c;
    outline: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #d4d4d8 50%), linear-gradient(135deg, #d4d4d8 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}
.cf-turnstile { margin: 16px 0; min-height: 65px; }
.submit-row { margin-top: 20px; }
.form-meta {
    font-size: 0.83rem; color: #71717a;
    margin-top: 14px; margin-bottom: 0;
    text-align: center;
}
.form-status {
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.4em;
}
.form-status.success { color: #34d399; font-weight: 600; }
.form-status.error { color: #f87171; font-weight: 600; }
.contact-fallback {
    color: #a1a1aa;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 1em;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #a1a1aa;
    padding: 60px 0 40px;
    border-top: 1px solid #171717;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .wordmark { filter: none; /* dark-variant SVG used directly */ }
.footer-tagline { color: #a1a1aa; font-size: 0.92rem; margin-top: 14px; max-width: 320px; }
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 560px) {
    .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-col h4 {
    color: #ffffff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: #a1a1aa;
    font-size: 0.93rem;
    padding: 4px 0;
}
.footer-col a:hover { color: #fb923c; }
.footer-legal {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #171717;
    font-size: 0.82rem;
    color: #71717a;
}
.footer-legal p { margin: 0 0 0.6em; }
.legal-line { max-width: 900px; }

/* Mobile topbar adjustments */
@media (max-width: 720px) {
    .topnav { display: none; }
    .topbar-inner { gap: 12px; }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
