/* =============================================================================
   Lontiq Landing Page – Editorial Design + Interactive Graph
   ============================================================================= */

:root {
    /* Light / paper tokens */
    --ink: #1e1b4b;
    --ink-light: #2b2b66;
    --paper: #f7f6f5;
    --paper-dark: #ece8e0;
    --paper-warm: #e5e0d6;
    --surface: #ffffff;
    --accent: #373780;
    --accent-hover: #373780;
    --accent-light: #6666b3;
    --accent-bright: #9393cc;
    --accent-wash: rgba(74, 74, 153, 0.06);
    --accent-wash-strong: rgba(74, 74, 153, 0.1);
    --accent-glow: rgba(74, 74, 153, 0.2);
    --muted: #6b6560;
    --muted-light: #948e87;
    --border: #d8d3cb;
    --border-accent: rgba(74, 74, 153, 0.15);
    --white: #ffffff;

    /* Dark section tokens (KG + How It Works) */
    --dark-bg: #0a091d;
    --dark-surface: #0f0d26;
    --dark-elevated: #161438;
    --dark-border: #2b2b66;
    --dark-text: #e6edf3;
    --dark-text-muted: #9393cc;
    --dark-text-dim: #6666b3;

    /* Indigo scale (for graph) */
    --indigo-300: #9393cc;
    --indigo-400: #6666b3;
    --indigo-500: #4a4a99;
    --indigo-600: #373780;
    --indigo-700: #2b2b66;
    --indigo-800: #1e1b4b;
    --indigo-950: #0f0d26;

    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Instrument Sans', -apple-system, sans-serif;

    --border-radius: 10px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}





/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: center;
    background: rgba(245, 245, 245, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--accent-wash);
}

.nav-chevron {
    font-size: 0.55rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(30, 27, 75, 0.12), 0 4px 12px rgba(30, 27, 75, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-dropdown-item:hover {
    background: var(--accent-wash);
    color: var(--accent);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--ink);
    font-size: 1.2rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.logo-icon {
    width: 22px;
    height: 22px;
}

.nav-cta {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}


/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto 1fr;
    align-items: center;
    gap: 0 3rem;
    padding: 8rem 2.5rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero>.hero-eyebrow {
    grid-column: 1;
}

.hero>h1 {
    grid-column: 1;
}

.hero>.hero-content {
    grid-column: 1;
}

.hero>.hero-demo {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.35s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-body {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.65s forwards;
}

.built-with {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.8s forwards;
}

.built-with>span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-light);
    letter-spacing: 0.02em;
}

.built-with-sep {
    font-size: 0.7rem;
    color: var(--border);
}

.built-with-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.built-with-logo {
    height: 20px;
    width: 20px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.3s, filter 0.3s;
}

.built-with-brand:hover .built-with-logo {
    opacity: 0.8;
    filter: grayscale(50%);
}

.built-with-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-light);
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.built-with-brand:hover .built-with-name {
    color: var(--muted);
}

/* ---- HERO DEMO (browser mockup) ---- */
.hero-demo {
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.demo-browser {
    background: var(--dark-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow:
        0 20px 60px rgba(30, 27, 75, 0.18),
        0 8px 24px rgba(30, 27, 75, 0.10),
        0 0 0 1px rgba(102, 102, 179, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.demo-browser:hover {
    box-shadow:
        0 24px 70px rgba(30, 27, 75, 0.24),
        0 12px 30px rgba(30, 27, 75, 0.14),
        0 0 0 1px rgba(102, 102, 179, 0.15),
        0 0 40px rgba(74, 74, 153, 0.08);
    transform: translateY(-3px);
}

.demo-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: var(--dark-surface);
    border-bottom: 1px solid var(--dark-border);
}

.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.demo-dot:nth-child(1) {
    background: #ff5f57;
}

.demo-dot:nth-child(2) {
    background: #febc2e;
}

.demo-dot:nth-child(3) {
    background: #28c840;
}

.demo-browser-url {
    margin-left: 10px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--dark-text-dim);
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 14px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.demo-gif {
    display: block;
    width: 100%;
    height: auto;
}

.btn-primary {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
}


/* ---- THE PROBLEM ---- */
.problem {
    padding: 6rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.problem-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 2rem;
}

.problem p {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.problem p .fade {
    color: var(--muted-light);
}


/* ---- API & INTEGRATIONS SECTION ---- */
.api-section {
    padding: 6rem 2.5rem;
    background: linear-gradient(160deg, #0f0d26 0%, #161438 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.api-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(102, 102, 179, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.api-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.api-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
}

.api-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
}

.api-section h2 em {
    font-style: italic;
    color: var(--accent-bright);
}

.api-body {
    color: var(--dark-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.api-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dark-border);
    border-radius: 100px;
    color: var(--dark-text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.api-feature:hover {
    border-color: var(--indigo-500);
    background: rgba(255, 255, 255, 0.07);
}

.api-feature i {
    color: var(--accent-bright);
    font-size: 0.85rem;
}

.api-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.api-section .btn-ghost {
    color: var(--dark-text-muted);
    border-bottom-color: var(--dark-border);
}

.api-section .btn-ghost:hover {
    color: var(--accent-bright);
    border-bottom-color: var(--accent-bright);
}


/* ---- DARK BAND ---- */
.dark-band {
    background: var(--dark-bg);
}


/* ---- KNOWLEDGE GRAPH SECTION ---- */
.kg-section {
    padding: 6rem 2.5rem;
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
    max-width: none;
}

.kg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(102, 102, 179, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.kg-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.kg-text h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
}

.kg-text h2 em {
    font-style: italic;
    color: var(--accent-bright);
}

.kg-text p {
    color: var(--dark-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.kg-text p strong {
    color: var(--dark-text);
    font-weight: 600;
}


/* ---- HOW IT WORKS (dark, with screenshots) ---- */
.how-section {
    padding: 7rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--dark-border);
}

.how-section>h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 500px;
    color: var(--white);
    text-align: left;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--indigo-500);
    transform: translateY(-2px);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: white;
    border: 4px solid var(--dark-bg);
}

.step-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0 1.25rem;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--white);
}

.step-card p {
    color: var(--dark-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ---- DIFFERENTIATORS ---- */
.diff-section {
    padding: 5rem 2.5rem 7rem;
    background: var(--paper-dark);
}

.diff-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.diff-inner>h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 3.5rem;
    max-width: 550px;
    color: var(--ink);
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.diff-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.diff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 27, 75, 0.06);
    border-color: var(--accent-bright);
}

.diff-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.diff-card h3 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.diff-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.comparison {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comp-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
}

.comp-label {
    width: 100px;
    font-weight: 600;
    color: var(--muted-light);
    flex-shrink: 0;
}

.comp-bar {
    flex: 1;
    height: 6px;
    background: var(--paper-dark);
    border-radius: 3px;
    overflow: hidden;
}

.comp-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.comp-bar-fill.theirs {
    background: var(--muted-light);
}

.comp-bar-fill.ours {
    background: var(--accent);
}


/* ---- AUDIENCE ---- */
.audience-section {
    padding: 5rem 2.5rem;
    background: var(--paper);
}

.audience-inner {
    max-width: 900px;
    margin: 0 auto;
}

.audience-inner h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--ink);
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.audience-tag {
    padding: 0.6rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 0.2s, background 0.2s;
}

.audience-tag:hover {
    border-color: var(--accent);
    background: rgba(74, 74, 153, 0.04);
}


/* ---- FOUNDER ---- */
.founder-section {
    padding: 6rem 2.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.founder-section .label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 2rem;
}

.founder-section blockquote {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.founder-section .founder-note {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.founder-section .founder-highlight {
    color: var(--ink);
    font-weight: 500;
}


/* ---- TRUST BADGES ---- */
.trust-section {
    padding: 3rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.trust-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1 1 250px;
    max-width: 300px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.trust-badge:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.trust-badge i {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.trust-badge span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 500;
}

/* ---- CTA / FORM ---- */
.cta-section {
    padding: 7rem 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--ink);
}

.cta-section h2 em {
    font-style: italic;
    color: var(--accent);
}

.cta-section>p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.form-wrapper {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.honeypot {
    display: none;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.form-feedback {
    border-radius: 6px;
    font-size: 0.9rem;
}



/* ---- ACTIVE NAV LINK ---- */
.nav-link-active {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* ---- DOCS PAGE ---- */
.docs-page {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.docs-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2.5rem 6rem;
}

.docs-page-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.docs-article h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.docs-article h2 {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.docs-article p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.docs-article p strong {
    color: var(--ink);
    font-weight: 600;
}

.docs-article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.docs-article ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.docs-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.docs-article ul li strong {
    color: var(--ink);
    font-weight: 600;
}


/* ---- FOOTER ---- */
footer {
    padding: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-light);
    border-top: 1px solid var(--border);
}


/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---- SUBTLE GRAIN ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    z-index: 9999;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 968px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-cta {
        font-size: 0.78rem;
        padding: 0.55rem 1.1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(245, 245, 245, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        gap: 0;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-hamburger {
        display: block;
        order: -1;
        margin-right: auto;
        margin-left: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1rem;
        opacity: 1;
        visibility: visible;
        min-width: auto;
    }

    .nav-dropdown-trigger {
        pointer-events: none;
    }

    .nav-chevron {
        display: none;
    }

    .api-section {
        padding: 4rem 1.5rem;
    }

    .api-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo-icon {
        width: 18px;
        height: 18px;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 6.5rem 1.5rem 3.5rem;
        min-height: auto;
        gap: 2rem;
    }

    .hero>.hero-eyebrow {
        order: 1;
    }

    .hero>h1 {
        order: 2;
    }

    .hero>.hero-demo {
        order: 3;
        grid-column: 1;
        grid-row: auto;
        max-width: 480px;
    }

    .hero>.hero-content {
        order: 4;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    .hero-body {
        font-size: 1.05rem;
    }

    .demo-browser-bar {
        padding: 10px 12px;
        gap: 5px;
    }

    .demo-dot {
        width: 8px;
        height: 8px;
    }

    .demo-browser-url {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .problem {
        padding: 4rem 1.5rem;
    }

    .problem p {
        font-size: clamp(1.15rem, 4vw, 1.4rem);
    }

    .kg-section {
        padding: 4rem 1.5rem;
    }




    .how-section {
        padding: 4rem 1.5rem;
    }

    .how-section>h2 {
        margin-bottom: 2.5rem;
    }

    .diff-section {
        padding: 4rem 1.5rem 5rem;
    }

    .diff-grid {
        grid-template-columns: 1fr;
    }

    .diff-card:first-child {
        grid-template-columns: 1fr;
    }

    .audience-section {
        padding: 4rem 1.5rem;
    }

    .audience-tags {
        gap: 0.5rem;
    }

    .audience-tag {
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }

    .founder-section {
        padding: 4rem 1.5rem;
    }

    .founder-section blockquote {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .cta-section {
        padding: 5rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trust-section {
        padding: 2rem 1.5rem;
    }

    .trust-badges {
        gap: 0.75rem;
    }

    .trust-badge {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0.85rem 1rem;
        gap: 0.6rem;
    }

    .trust-badge i {
        font-size: 1rem;
    }

    .trust-badge span {
        font-size: 0.8rem;
    }

    .trust-label {
        margin-bottom: 1rem;
    }

    /* Docs page mobile */
    .docs-article {
        padding: 2.5rem 1.5rem 4rem;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    .btn-primary {
        font-size: 0.88rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-cta-row {
        gap: 1rem;
    }
}