/* =========================================
   FORM DUCT — Coming soon (Blueprint)
   Teal heritage primary · warm stone neutrals
   amber accent · blueprint grid texture
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   Labels: JetBrains Mono
   ========================================= */

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

:root {
    /* Blueprint palette — mirrors the app's design tokens */
    --background: #f6f5f2;
    --foreground: #1c1917;
    --card: #ffffff;
    --surface-2: #faf9f6;
    --muted: #f4f2ee;
    --muted-foreground: #6b635c;
    --subtle: #9b918a;
    --border: #e7e2da;
    --border-strong: #d6cfc4;
    --hero-bg: #0f5a64;
    --hero-fg: #eaf6f6;
    --grid-color: rgba(18, 107, 120, 0.06);

    --primary-50: #e0eff0;
    --primary-100: #c4e0e3;
    --primary-400: #3fa3ad;
    --primary-500: #1d8693;
    --primary-600: #126b78;
    --primary-700: #0e5963;
    --primary-900: #123f47;

    --accent-100: #f8e8cd;
    --accent-300: #f0c178;
    --accent-400: #e3a23d;
    --accent-500: #d6831a;
    --accent-600: #b56a12;

    --success-100: #d6efe2;
    --success-400: #34b07c;
    --success-600: #1f8a5b;
    --success-700: #186f49;
    --danger-400: #db6552;

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 2px 4px rgba(28, 25, 23, 0.05), 0 4px 12px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 8px 28px rgba(28, 25, 23, 0.1);
    --shadow-xl: 0 12px 36px rgba(28, 25, 23, 0.12);

    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --gutter: clamp(20px, 4vw, 48px);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

::selection {
    background: var(--primary-100);
    color: var(--primary-700);
}

:focus-visible {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Brand wordmark accent — "Duct" rendered in heritage teal */
.accent { color: var(--primary-600); }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}

.hp-field {
    position: absolute; left: -9999px; top: -9999px;
    opacity: 0; height: 0; width: 0; overflow: hidden;
}

/* --- Background: blueprint grid + soft washes --- */
.blueprint-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.wash {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.wash-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.wash-1 {
    width: 700px; height: 700px;
    top: -300px; right: -200px;
    background: radial-gradient(circle, rgba(18, 107, 120, 0.12) 0%, transparent 65%);
    animation: drift-1 26s ease-in-out infinite;
}
.wash-2 {
    width: 540px; height: 540px;
    bottom: -200px; left: -150px;
    background: radial-gradient(circle, rgba(214, 131, 26, 0.1) 0%, transparent 65%);
    animation: drift-2 30s ease-in-out infinite;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 60px); }
}
@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(70px, -50px); }
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 12px; left: 12px; right: 12px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 10px 20px;
    max-width: 1240px;
    margin: 0 auto;
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--foreground);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--muted-foreground);
    transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--foreground); background: var(--muted); }
.nav-cta {
    background: var(--primary-600);
    color: #ffffff !important;
    font-weight: 600;
    margin-left: 6px;
}
.nav-cta:hover { background: var(--primary-700) !important; }

@media (max-width: 680px) {
    .nav-links li:not(:last-child) { display: none; }
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    padding: 130px var(--gutter) 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-grid {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--accent-300);
    border-radius: var(--radius);
    background: var(--accent-100);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-600);
    margin-bottom: 28px;
}
.pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-500);
    box-shadow: 0 0 8px var(--accent-400);
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Giant brand wordmark */
.hero-wordmark {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--foreground);
    margin-bottom: 22px;
    white-space: nowrap;
}
.hero-wordmark em {
    font-style: normal;
    color: var(--primary-600);
}
.hero-wordmark .dot { color: var(--accent-500); }

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--foreground);
    margin-bottom: 14px;
    letter-spacing: -0.015em;
    max-width: 540px;
}
.underline-accent {
    text-decoration: underline;
    text-decoration-color: var(--accent-500);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
}

.hero-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--muted-foreground);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-primary {
    background: var(--primary-600);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 26px;
    border-radius: var(--radius);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 8px 24px rgba(18, 107, 120, 0.25);
}
.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(18, 107, 120, 0.3);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--card);
    color: var(--foreground);
    font-weight: 500;
    transition: background 0.25s, border-color 0.25s;
}
.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--subtle);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--subtle);
}
.hero-note svg { color: var(--success-600); flex-shrink: 0; }
.note-sep {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
    margin: 0 2px;
}

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

/* --- 3D app frame --- */
.hero-visual {
    perspective: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.frame-stage {
    --rx: -6deg;
    --ry: 10deg;
    position: relative;
    width: min(500px, 100%);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
}

.app-frame {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 30px 80px rgba(18, 107, 120, 0.18);
    transform-style: preserve-3d;
    overflow: hidden;
}

.frame-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(18, 107, 120, 0.06) 45%, transparent 60%);
    animation: frame-shine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes frame-shine {
    0%, 100% { transform: translateX(-50%); opacity: 0; }
    50% { transform: translateX(50%); opacity: 1; }
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 42px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    padding: 0 16px;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.dot-danger { background: rgba(219, 101, 82, 0.8); }
.dot-accent { background: rgba(227, 162, 61, 0.8); }
.dot-success { background: rgba(52, 176, 124, 0.8); }
.frame-url {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--subtle);
}

.frame-body { padding: 20px; }

.frame-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.frame-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground);
}
.frame-sub {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--subtle);
}
.badge-synced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--success-100);
    color: var(--success-700);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success-400);
    animation: blink 2s ease-in-out infinite;
}

.frame-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.stat {
    border: 1px solid var(--border);
    background: var(--muted);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground);
}
.stat-label {
    margin-top: 2px;
    font-size: 11px;
    color: var(--subtle);
}

.frame-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 120px;
    border: 1px solid var(--border);
    background: var(--muted);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.frame-chart span {
    flex: 1;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
    background: rgba(18, 107, 120, 0.9);
    transform-origin: bottom;
    animation: bar-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.frame-chart span:nth-child(2)  { animation-delay: 0.05s; }
.frame-chart span:nth-child(3)  { animation-delay: 0.1s; }
.frame-chart span:nth-child(4)  { animation-delay: 0.15s; }
.frame-chart span:nth-child(5)  { animation-delay: 0.2s; }
.frame-chart span:nth-child(6)  { animation-delay: 0.25s; }
.frame-chart span:nth-child(7)  { animation-delay: 0.3s; }
.frame-chart span:nth-child(8)  { animation-delay: 0.35s; }
.frame-chart span:nth-child(9)  { animation-delay: 0.4s; }
.frame-chart span:nth-child(10) { animation-delay: 0.45s; }
.frame-chart span:nth-child(11) { animation-delay: 0.5s; }
.frame-chart span:nth-child(12) { animation-delay: 0.55s; }
.frame-chart .bar-accent { background: var(--accent-500); }
@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.frame-shadow {
    position: absolute;
    inset: auto 10% -30px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(18, 107, 120, 0.28), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/* --- Sections --- */
.section {
    padding: clamp(48px, 6vw, 80px) 0;
    position: relative;
    z-index: 2;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--primary-600);
    margin-bottom: 16px;
    padding: 4px 14px;
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    background: var(--primary-50);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--foreground);
    margin-bottom: 18px;
}
.section-title em {
    font-style: normal;
    color: var(--primary-600);
    text-decoration: underline;
    text-decoration-color: var(--accent-400);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}
.section-deck {
    font-size: 1.02rem;
    color: var(--muted-foreground);
    max-width: 580px;
    margin: 0 auto;
}

/* --- Problem --- */
.section-problem {
    background: linear-gradient(180deg, transparent, rgba(214, 131, 26, 0.04), transparent);
}
.problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.problem-card {
    padding: 40px 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-300);
    box-shadow: var(--shadow-md);
}
.problem-ico {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-100);
    border: 1px solid var(--accent-300);
    color: var(--accent-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.problem-ico svg { width: 26px; height: 26px; }
.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--foreground);
    margin-bottom: 12px;
}
.problem-card p {
    font-size: 0.92rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}
@media (max-width: 820px) { .problems { grid-template-columns: 1fr; } }

/* --- Features --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    padding: 28px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.feature-ico {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-ico svg { width: 23px; height: 23px; }

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--foreground);
    letter-spacing: -0.01em;
}
.feature p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.55;
}

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* --- Demo Section --- */
.section-demo {
    background: linear-gradient(180deg, transparent, rgba(18, 107, 120, 0.05), transparent);
}

.demo-stage {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.demo-phone {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 17.5;
    max-width: 340px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2b2f35, #15171a);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 40px 80px rgba(18, 107, 120, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.demo-phone::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 6px;
    background: #0d0e10;
    border-radius: 10px;
    z-index: 3;
}

.demo-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #faf9f6, #f4f2ee);
    border-radius: 32px;
    overflow: hidden;
    padding: 36px 20px 20px;
    display: flex;
    flex-direction: column;
}

.demo-step {
    position: absolute;
    inset: 36px 20px 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}
.demo-step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.demo-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.demo-intro-icon {
    width: 56px; height: 56px;
    color: var(--primary-600);
    margin-bottom: 4px;
}
.demo-intro h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--foreground);
}
.demo-venue {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.demo-header { margin-bottom: 18px; }
.demo-step-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--accent-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}
.demo-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-bottom: 12px;
}
.answer-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    font-size: 0.78rem;
}
.answer-option input { accent-color: var(--primary-600); }
.answer-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}
.answer-option > div {
    display: flex;
    flex-direction: column;
}
.answer-option strong {
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.88rem;
}
.answer-option span {
    font-size: 0.7rem;
    color: var(--subtle);
}
.answer-tag {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.66rem !important;
    color: var(--primary-600) !important;
    white-space: nowrap;
}

.gps-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--card);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--muted-foreground);
}
.gps-chip svg { color: var(--primary-600); flex-shrink: 0; }

.demo-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-600);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.demo-btn:hover { transform: translateY(-1px); background: var(--primary-700); }
.demo-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--muted-foreground);
}
.demo-btn-ghost:hover { color: var(--foreground); background: var(--muted); }

.offline-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
}
.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius);
    background: var(--accent-100);
    border: 1px solid var(--accent-300);
    color: var(--accent-600);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.offline-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.offline-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--subtle);
}
.offline-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-600);
}
.offline-value small {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    font-weight: 400;
    margin-left: 4px;
}
.offline-lock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted-foreground);
}
.offline-lock svg { color: var(--success-600); }
.offline-processing {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--accent-600);
    font-weight: 500;
}
.offline-pulse {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-500);
    animation: offline-pulse 1s ease-in-out infinite;
}
@keyframes offline-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.3); }
}

.demo-success {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}
.success-check {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-400), var(--success-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-check svg { width: 28px; height: 28px; }
@keyframes check-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: var(--shadow-sm);
}
.mini-ico {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-ico svg { width: 22px; height: 22px; }
.mini-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
    flex: 1;
}
.mini-info strong { font-size: 0.74rem; color: var(--foreground); line-height: 1.35; }
.mini-info span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--primary-600);
}
.demo-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.demo-side { max-width: 440px; }
.demo-progress {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.progress-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.progress-step.active {
    background: var(--card);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.progress-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--subtle);
    transition: all 0.3s;
}
.progress-step.active .progress-dot {
    background: var(--primary-600);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(18, 107, 120, 0.35);
}
.progress-step strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--foreground);
    display: block;
    margin-bottom: 4px;
}
.progress-step p {
    font-size: 0.86rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

@media (max-width: 820px) {
    .demo-stage { grid-template-columns: 1fr; }
    .demo-side { margin: 0 auto; }
}

/* --- Use cases --- */
.usecases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.usecase {
    padding: 26px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s;
}
.usecase:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}
.usecase-ico {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.usecase-ico svg { width: 21px; height: 21px; }
.usecase h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 10px;
}
.usecase p {
    font-size: 0.88rem;
    color: var(--muted-foreground);
    line-height: 1.55;
}

@media (max-width: 980px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }

/* --- Sign up --- */
.section-signup {
    padding-bottom: 72px;
}
.signup-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 44px;
    background: var(--hero-bg);
    border: 1px solid var(--primary-700);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.signup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(234, 246, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 246, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.signup-card::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(214, 131, 26, 0.25), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.signup-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.signup-deck {
    color: rgba(234, 246, 246, 0.78);
    margin-bottom: 28px;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
}

.signup-form { position: relative; z-index: 1; }
.signup-row {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--primary-700);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}
.signup-row:focus-within {
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
}

.signup-row input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 16px;
}
.signup-row input[type="email"]::placeholder { color: var(--subtle); }

.signup-row button {
    background: var(--accent-500);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.signup-row button:hover { background: var(--accent-600); }
.signup-row button:disabled { opacity: 0.6; cursor: wait; }

.btn-loader {
    width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn-loader[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.form-message.success {
    background: rgba(52, 176, 124, 0.15);
    border: 1px solid rgba(52, 176, 124, 0.4);
    color: #a7e6c8;
}
.form-message.error {
    background: rgba(240, 193, 120, 0.12);
    border: 1px solid rgba(240, 193, 120, 0.4);
    color: var(--accent-300);
}

.signup-privacy {
    font-size: 0.8rem;
    color: rgba(234, 246, 246, 0.55);
    position: relative;
    z-index: 1;
}

@media (max-width: 540px) {
    .signup-card { padding: 44px 24px; }
    .signup-row { flex-direction: column; }
    .signup-row button { width: 100%; justify-content: center; }
}

/* --- Footer --- */
.footer {
    padding: 40px var(--gutter) 60px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    position: relative;
    z-index: 2;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-brand .footer-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--foreground);
}
.footer-brand p {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    line-height: 1.5;
}
.footer-contact { text-align: right; }
.footer-contact a {
    color: var(--foreground);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    transition: color 0.25s;
}
.footer-contact a:hover { color: var(--primary-600); }
.footer-contact p {
    font-size: 0.82rem;
    color: var(--subtle);
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; }
    .footer-contact { text-align: left; }
}
