/* SmartOnboarding — Landing Page */
/* Playfair Display + DM Sans | Warm Slate + Amber */

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

:root {
    --amber: oklch(0.78 0.14 75);
    --amber-dim: oklch(0.65 0.12 75);
    --amber-glow: oklch(0.78 0.14 75 / 0.15);
    --amber-subtle: oklch(0.78 0.14 75 / 0.08);

    --bg: oklch(0.13 0.01 260);
    --bg-raised: oklch(0.16 0.01 260);
    --bg-card: oklch(0.18 0.012 260);

    --text-1: oklch(0.93 0.01 80);
    --text-2: oklch(0.72 0.01 260);
    --text-3: oklch(0.52 0.01 260);
    --text-4: oklch(0.38 0.01 260);

    --border: oklch(0.24 0.01 260);
    --border-subtle: oklch(0.20 0.01 260);

    --green: oklch(0.72 0.15 155);
    --red: oklch(0.65 0.15 25);
}

html {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body { overflow-x: hidden; }

::selection {
    background: oklch(0.78 0.14 75 / 0.25);
    color: var(--text-1);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: oklch(0.13 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    gap: 3px;
}

.logo-main {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.3px;
}

.logo-accent {
    color: var(--amber);
    font-weight: 500;
}

.logo-by {
    font-size: 0.62rem;
    color: var(--text-4);
    letter-spacing: 0.5px;
    font-weight: 400;
}

.logo-dx-d {
    font-weight: 800;
    color: #fff;
}

.logo-dx-x {
    font-weight: 300;
    background: linear-gradient(135deg, #0fffc8, #00d4aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    font-size: 0.88rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.2px;
}

.header-nav a:hover { color: var(--text-2); }

/* ============================================
   HERO
   ============================================ */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(120px, 15vw, 180px) clamp(20px, 4vw, 40px) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-1);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero h1 em {
    font-style: italic;
    color: var(--amber);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-3);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 36px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    background: var(--amber);
    color: oklch(0.15 0.01 260);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0.78 0.14 75 / 0.2);
}

/* Hero Conversation Animation */
.hero-conversation {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.conv-bubble {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(16px);
    animation: convFadeIn 0.6s ease forwards;
}

.conv-q {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-2);
    align-self: flex-start;
    max-width: 85%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.conv-indicator {
    display: block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--amber);
    margin-top: 7px;
    box-shadow: 0 0 8px var(--amber-glow);
}

.conv-a {
    background: oklch(0.78 0.14 75 / 0.06);
    border: 1px solid oklch(0.78 0.14 75 / 0.12);
    color: var(--text-1);
    align-self: flex-end;
    max-width: 80%;
}

.conv-q1 { animation-delay: 0.3s; }
.conv-a1 { animation-delay: 1.2s; }
.conv-q2 { animation-delay: 2.2s; }
.conv-a2 { animation-delay: 3.2s; }
.conv-q3 { animation-delay: 4.2s; }

.conv-extract {
    margin-top: 8px;
    padding: 16px 18px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    animation: convFadeIn 0.8s ease forwards;
    animation-delay: 5s;
}

.extract-header {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amber);
    margin-bottom: 12px;
}

.extract-field {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.extract-field:last-of-type { border-bottom: none; }

.extract-key {
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}

.extract-val {
    font-size: 0.85rem;
    color: var(--text-1);
}

.extract-conf {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: oklch(0.72 0.15 155 / 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.extract-conf-low {
    color: var(--text-4);
    background: oklch(0.3 0 0 / 0.3);
}

@keyframes convFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

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

/* ============================================
   SECTION EYEBROW (shared)
   ============================================ */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--amber);
    margin-bottom: 16px;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
}

.features-inner > .section-eyebrow {
    text-align: center;
    margin-bottom: 64px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row-right { direction: rtl; }
.feature-row-right > * { direction: ltr; }

.feature-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.feature-text p {
    font-size: 1rem;
    color: var(--text-3);
    line-height: 1.8;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Feature 1: Decision Tree Animation --- */
.tree-anim {
    width: 280px;
    height: 200px;
}

.tree-svg {
    width: 100%;
    height: 100%;
}

.tree-branch {
    stroke: var(--border);
    stroke-width: 1.5;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    transition: stroke-dashoffset 0.8s ease;
}

.reveal.visible .tree-branch { stroke-dashoffset: 0; }
.reveal.visible .branch-1 { transition-delay: 0.1s; }
.reveal.visible .branch-2 { transition-delay: 0.2s; }
.reveal.visible .branch-3 { transition-delay: 0.5s; }
.reveal.visible .branch-4 { transition-delay: 0.6s; }
.reveal.visible .branch-5 { transition-delay: 0.7s; }
.reveal.visible .branch-6 { transition-delay: 0.8s; }

.tree-node {
    fill: var(--bg-card);
    stroke: var(--border);
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reveal.visible .tree-node { opacity: 1; }
.tree-root {
    fill: var(--amber);
    stroke: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.05s;
}
.reveal.visible .tree-root { opacity: 1; }

.tree-signal {
    fill: var(--amber);
    opacity: 0;
    filter: drop-shadow(0 0 6px oklch(0.78 0.14 75 / 0.5));
}
.reveal.visible .tree-signal { opacity: 1; transition: opacity 0.3s ease 1s; }

.tree-path-active {
    stroke: var(--amber);
    stroke-width: 2;
    opacity: 0;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

.reveal.visible .tree-path-active {
    opacity: 0.4;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease 0.3s, opacity 0.5s ease 0.3s;
}

.reveal.visible .path-seg-2 {
    transition-delay: 0.7s;
}

/* --- Feature 2: Profile Filling Animation --- */
.profile-anim {
    width: 300px;
}

.profile-card-anim {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-field-anim {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible .profile-field-anim { opacity: 1; transform: translateX(0); }
.reveal.visible .pf-1 { transition-delay: 0.2s; }
.reveal.visible .pf-2 { transition-delay: 0.4s; }
.reveal.visible .pf-3 { transition-delay: 0.6s; }
.reveal.visible .pf-4 { transition-delay: 0.8s; }
.reveal.visible .pf-5 { transition-delay: 1.0s; }

.pf-label {
    font-size: 0.78rem;
    color: var(--text-4);
    font-weight: 500;
}

.pf-value {
    font-size: 0.85rem;
    color: var(--text-1);
}

.pf-empty {
    display: block;
    height: 10px;
    background: var(--border-subtle);
    border-radius: 3px;
    width: 60%;
}

.pf-filling { color: var(--amber-dim); }

.pf-bar {
    display: block;
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.pf-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--amber);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .pf-bar-fill {
    width: var(--fill);
    transition-delay: 1.2s;
}

.profile-completeness {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
}

.reveal.visible .profile-completeness { opacity: 1; }

.pc-label {
    font-size: 0.75rem;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--amber);
}

/* --- Feature 3: Morphing Question Types --- */
.morph-anim {
    width: 300px;
}

.morph-stage {
    position: relative;
    height: 180px;
}

.morph-question {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mq-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amber);
}

.mq-text {
    font-size: 0.95rem;
    color: var(--text-1);
    font-weight: 500;
}

.mq-input {
    margin-top: auto;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.mq-cursor {
    color: var(--amber);
    animation: cursorBlink 1s infinite;
    font-weight: 300;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.mq-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.mq-opt {
    font-size: 0.85rem;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-3);
    transition: border-color 0.3s, color 0.3s;
}

.mq-opt-active {
    border-color: var(--amber);
    color: var(--amber);
    background: var(--amber-subtle);
}

.mq-scale-bar {
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: auto;
}

.mq-scale-dot {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber-glow);
}

.mq-scale-label-l,
.mq-scale-label-r {
    position: absolute;
    top: 12px;
    font-size: 0.72rem;
    color: var(--text-4);
}

.mq-scale-label-l { left: 0; }
.mq-scale-label-r { right: 0; }

/* Morph-Cycle: Open → Choice → Scale → Open ... */
.mq-open { animation: morphCycle 9s infinite; }
.mq-choice { animation: morphCycle 9s infinite 3s; }
.mq-scale { animation: morphCycle 9s infinite 6s; }

@keyframes morphCycle {
    0% { opacity: 0; transform: translateY(8px); }
    5% { opacity: 1; transform: translateY(0); }
    28% { opacity: 1; transform: translateY(0); }
    33% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 0; transform: translateY(-8px); }
}

/* ============================================
   DEMO
   ============================================ */
.demo-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
}

.demo-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.demo-window {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 280px;
    min-height: 400px;
}

.demo-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.demo-dots span:first-child { background: oklch(0.65 0.15 25 / 0.6); }
.demo-dots span:nth-child(2) { background: oklch(0.78 0.14 75 / 0.6); }
.demo-dots span:last-child { background: oklch(0.72 0.15 155 / 0.6); }

.demo-url-bar {
    font-size: 0.78rem;
    color: var(--text-4);
    font-family: 'DM Sans', monospace;
}

.demo-progress-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-progress-bar {
    width: 80px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.demo-progress-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: var(--amber);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.demo-progress-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber);
    min-width: 28px;
}

.demo-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Demo — Sub + Input */
.demo-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-3);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.demo-input-row {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-raised);
    transition: border-color 0.25s ease;
}

.demo-input-row:focus-within {
    border-color: var(--amber-dim);
}

.demo-input-row input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-1);
    outline: none;
    min-width: 0;
}

.demo-input-row input::placeholder {
    color: var(--text-4);
}

.demo-input-row button {
    padding: 14px 24px;
    background: var(--amber);
    color: var(--bg);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.demo-input-row button:hover {
    opacity: 0.9;
}

.demo-input-row button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.demo-url-status {
    font-size: 0.85rem;
    color: var(--text-3);
    min-height: 20px;
    margin-bottom: 28px;
}

.demo-url-status:empty {
    display: none;
}

.demo-url-status.loading {
    color: var(--amber-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-url-status.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid var(--amber-dim);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.demo-url-status.error {
    color: var(--red);
}

/* Demo Placeholder */
.demo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 300px;
    color: var(--text-4);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.demo-placeholder:hover { color: var(--amber); }

.demo-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.demo-play-icon svg { width: 20px; height: 20px; }
.demo-placeholder:hover .demo-play-icon { transform: scale(1.08); }

@media (max-width: 600px) {
    .demo-input-row {
        flex-direction: column;
        border-radius: 10px;
    }
    .demo-input-row button {
        border-top: 1px solid var(--border-subtle);
    }
}

.demo-extract-panel {
    padding: 24px 20px;
    border-left: 1px solid var(--border-subtle);
    background: var(--bg-card);
    overflow-y: auto;
    max-height: 360px;
}

.demo-extract-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amber);
    margin-bottom: 16px;
}

.demo-extract-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Demo message bubbles */
.demo-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: demoMsgIn 0.4s ease both;
}

.demo-msg-q {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-2);
    align-self: flex-start;
    max-width: 85%;
}

.demo-msg-a {
    background: var(--amber-subtle);
    border: 1px solid oklch(0.78 0.14 75 / 0.12);
    color: var(--text-1);
    align-self: flex-end;
    max-width: 80%;
}

.demo-msg-typing {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    align-self: flex-start;
}

.demo-msg-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-4);
    animation: typingDot 1.4s infinite;
}

.demo-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes demoMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Demo extracted field */
.demo-field {
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    animation: demoMsgIn 0.4s ease both;
}

.demo-field-key {
    font-size: 0.72rem;
    color: var(--text-4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-field-val {
    font-size: 0.85rem;
    color: var(--text-1);
    margin-top: 2px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
    text-align: center;
}

.how-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 64px;
    letter-spacing: -0.3px;
}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    text-align: left;
}

.step { padding: 0 16px; }

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 16px;
    line-height: 1;
}

.step h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.92rem;
    color: var(--text-3);
    line-height: 1.7;
}

.step-connector {
    width: 80px;
    padding-top: 20px;
    display: flex;
    align-items: flex-start;
}

.step-connector svg {
    width: 100%;
    height: 4px;
}

.step-connector line {
    stroke: var(--amber);
    stroke-width: 1;
    stroke-dasharray: 6 6;
    opacity: 0.3;
}

/* ============================================
   VS COMPARISON
   ============================================ */
.vs-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
}

.vs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 40px;
}

.vs-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vs-col-header {
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.vs-col-old .vs-col-header {
    background: var(--bg-raised);
    color: var(--text-3);
}

.vs-col-new .vs-col-header {
    background: oklch(0.78 0.14 75 / 0.08);
    color: var(--amber);
}

.vs-row {
    padding: 14px 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.vs-col-old .vs-row {
    background: var(--bg-raised);
    color: var(--text-4);
}

.vs-col-new .vs-row {
    background: var(--bg-card);
    color: var(--text-2);
}

/* ============================================
   USE CASES
   ============================================ */
.use-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
}

.use-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 48px;
    letter-spacing: -0.3px;
    max-width: 500px;
}

.use-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.use-case {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-raised);
    transition: border-color 0.4s, transform 0.3s;
}

.use-case:hover {
    border-color: oklch(0.78 0.14 75 / 0.2);
    transform: translateY(-3px);
}

.use-icon {
    width: 40px;
    height: 40px;
    color: var(--amber);
    margin-bottom: 16px;
}

.use-icon svg { width: 100%; height: 100%; }

.use-case h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.use-case p {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.7;
}

/* ============================================
   INTEGRATION
   ============================================ */
.integration-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px clamp(20px, 4vw, 40px);
}

.integration-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    max-width: 640px;
}

.code-topbar {
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-raised);
}

.code-lang {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-4);
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'DM Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-2);
}

.code-kw { color: oklch(0.72 0.12 300); }
.code-mod { color: var(--text-1); }
.code-cls { color: var(--amber); }
.code-fn { color: oklch(0.75 0.12 200); }
.code-str { color: var(--green); }
.code-cmt { color: var(--text-4); font-style: italic; }

.integration-hint {
    margin-top: 24px;
    max-width: 640px;
}

.integration-hint p {
    font-size: 0.92rem;
    color: var(--text-3);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 80px clamp(20px, 4vw, 40px) 100px;
    text-align: center;
}

.cta-inner {
    max-width: 540px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-inner p {
    font-size: 1.05rem;
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 40px;
    background: var(--amber);
    color: oklch(0.15 0.01 260);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0.78 0.14 75 / 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px clamp(20px, 4vw, 40px);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-4);
}

.footer-logo .logo-accent { color: oklch(0.78 0.14 75 / 0.5); font-weight: 500; }

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-4);
}

.footer-dx {
    letter-spacing: 0.5px;
}

.footer-dx-d {
    font-weight: 800;
    color: var(--text-2);
}

.footer-dx-x {
    font-weight: 300;
    background: linear-gradient(135deg, #0fffc8, #00d4aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-right {
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-row,
    .feature-row-right {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-row-right { direction: ltr; }

    .feature-visual {
        order: -1;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .step-connector { display: none; }
    .step { padding: 0; }

    .vs-table {
        grid-template-columns: 1fr;
    }

    .vs-col { display: flex; flex-direction: column; }

    .demo-window {
        grid-template-columns: 1fr;
    }

    .demo-extract-panel {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .use-cases { grid-template-columns: 1fr; }

    .header-nav { gap: 20px; }
    .header-nav a { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .header-nav { display: none; }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .feature-text h2,
    .demo-heading,
    .how-heading,
    .use-heading,
    .integration-heading {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .hero-cta, .cta-btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    .tree-anim { width: 220px; height: 160px; }
    .profile-anim { width: 260px; }
    .morph-anim { width: 260px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .conv-bubble, .conv-extract {
        opacity: 1;
        transform: none;
    }

    .tree-branch { stroke-dashoffset: 0; }
    .tree-node, .tree-signal { opacity: 1; }
    .tree-path-active { opacity: 0.4; stroke-dashoffset: 0; }
    .profile-field-anim { opacity: 1; transform: none; }
    .pf-bar-fill { width: var(--fill); }
    .profile-completeness { opacity: 1; }
}
