/* =============================================================================
   Easy Storyboard — landing page
   Theme: ui-ux-pro-max "Generative Art Platform" (canvas neutral + creative pink).
   FLAT: solid colors only — no gradients, no glows.
   ========================================================================== */

:root {
    /* Theme tokens */
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-2: #F4F4F5;
    --ink: #09090B;
    --primary: #18181B;
    --secondary: #3F3F46;
    --accent: #EC4899;
    --accent-soft: #FDF2F8;
    --muted: #64748B;
    --border: #E4E4E7;
    --border-strong: #D4D4D8;

    --font-wide: 'Syncopate', 'Space Grotesk', sans-serif;
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

    --maxw: 1180px;
    --radius: 16px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(9, 9, 11, 0.05), 0 8px 24px rgba(9, 9, 11, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.grad-text { color: var(--accent); }

.skip-link { position: absolute; left: 8px; top: -48px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.975rem; line-height: 1;
    padding: 14px 24px; min-height: 46px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 17px 30px; min-height: 54px; font-size: 1.05rem; }
.btn-sm { padding: 11px 18px; min-height: 44px; font-size: 0.9rem; }

/* ------------------------------------------------------------------- Nav */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo-mark { flex-shrink: 0; }
.logo-word { font-family: var(--font-wide); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--muted); font-weight: 500; transition: color 0.18s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; border-radius: 8px; }

/* ------------------------------------------------------------------- Hero */
.hero { padding: 72px 0 32px; }
.hero-inner { text-align: center; }
.hero-copy { max-width: 860px; margin: 0 auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.82rem; font-weight: 600; color: var(--secondary);
    background: var(--surface); border: 1px solid var(--border);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 1.5rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: 1.3rem; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-trust { margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted); }

.inline-code {
    font-family: var(--font-mono); font-size: 0.88em;
    padding: 0.12em 0.42em; border-radius: 6px;
    background: var(--accent-soft); border: 1px solid #FBCFE8; color: #BE185D; white-space: nowrap;
}
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.text-link:hover { color: var(--accent); }

/* Hero video */
.hero-video { margin: 56px auto 0; max-width: 1080px; }
.video-frame {
    position: relative; border-radius: 20px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound-btn {
    position: absolute; left: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
    padding: 10px 16px; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: #fff; border: 0;
    transition: background 0.18s var(--ease);
}
.sound-btn:hover { background: var(--accent); }
.sound-btn svg { width: 18px; height: 18px; }
.video-caption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Source strip */
.source-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; margin-top: 48px; padding: 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.source-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.source-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; justify-content: center; }
.source-chips li { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: var(--secondary); background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 8px; }

/* --------------------------------------------------------------- Sections */
.section { padding: 104px 0; }
.section, #main { scroll-margin-top: 88px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-wide); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.ba-panel { position: relative; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; min-height: 280px; overflow: hidden; background: var(--surface); }
.ba-after { display: flex; align-items: center; justify-content: center; }
.ba-tag { position: absolute; top: 22px; left: 26px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ba-before .doc-lines { margin-top: 36px; }
.ba-tag-after { color: var(--accent); }
.doc-lines { display: flex; flex-direction: column; gap: 13px; }
.doc-lines .l { height: 9px; border-radius: 4px; background: var(--surface-2); }
.w-100 { width: 100%; } .w-95 { width: 95%; } .w-90 { width: 90%; } .w-85 { width: 85%; }
.w-80 { width: 80%; } .w-75 { width: 75%; } .w-70 { width: 70%; } .w-60 { width: 60%; }
.ba-arrow { display: grid; place-items: center; align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); }
.mini-scene { position: relative; width: 100%; max-width: 280px; aspect-ratio: 16/10; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.mini-core { width: 54px; height: 54px; border-radius: 14px; background: var(--ink); animation: pop 3s var(--ease) infinite; }
.mini-title { width: 56%; height: 11px; border-radius: 4px; background: var(--ink); }
.mini-cap { width: 40%; height: 8px; border-radius: 4px; background: var(--accent); }
.mini-play { position: absolute; bottom: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.step { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.step-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-wide); font-size: 1.8rem; font-weight: 700; color: var(--border); line-height: 1; }
.step-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Terminal */
.terminal { margin: 3rem auto 0; max-width: 860px; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #27272A; }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3F3F46; }
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: #A1A1AA; }
.terminal-body { margin: 0; padding: 22px 24px; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.8; color: #FAFAFA; overflow-x: auto; white-space: pre; }
.t-prompt { color: var(--accent); font-weight: 600; }
.t-dim { color: #A1A1AA; }
.t-ok { color: #F9A8D4; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.feature-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.feature-card:nth-child(3n+2) .feature-icon { background: var(--accent); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.feature-card p { color: var(--muted); font-size: 0.96rem; }

/* Styles showcase — each swatch in its style's own solid colors */
.style-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.style-swatch { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s var(--ease); }
.style-swatch:hover { transform: translateY(-4px); }
.style-swatch b { font-size: 2.4rem; line-height: 1; }
.style-swatch span { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.s-kurz { background: #1B2B5E; color: #FFD166; } .s-kurz span { color: #fff; }
.s-keynote { background: #000; color: #fff; }
.s-doc { background: #2A2118; color: #E8D5B0; } .s-doc b { font-family: Georgia, serif; }
.s-editorial { background: #F2EFE8; color: #E63946; } .s-editorial span { color: #111; }
.s-data { background: #F7F5F0; color: #1D3557; } .s-data b { font-family: Georgia, serif; }
.s-neon { background: #05060F; color: #01CDFE; border-color: #B967FF; } .s-neon b { font-family: var(--font-mono); } .s-neon span { color: #FF71CE; }
.s-pop { background: #FFD166; color: #7C3AED; } .s-pop span { color: #111; }

/* Character rigging */
.rig { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.rig-media .video-frame { aspect-ratio: 16 / 9; }
.rig-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.rig-list li { position: relative; padding-left: 26px; color: var(--muted); }
.rig-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.rig-list strong { color: var(--ink); font-family: var(--font-display); }
.rig-code pre { padding-right: 18px; font-size: 0.82rem; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.usecase-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 28px 30px; }
.usecase-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.usecase-card p { color: var(--muted); }

/* Install */
.install-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.install-step { min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.install-step h3 { font-size: 1.15rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 12px; }
.install-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; }
.install-step > p { color: var(--muted); margin-bottom: 0.6rem; }
.install-os { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted) !important; margin: 1rem 0 0.4rem !important; }
.install-note { font-size: 0.92rem; color: var(--muted); margin-top: 0.7rem; }
.code-block { position: relative; background: var(--ink); border-radius: var(--radius-sm); }
.code-block pre { margin: 0; padding: 14px 88px 14px 18px; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.7; color: #FAFAFA; overflow-x: auto; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: #FAFAFA; background: #27272A; border: 1px solid #3F3F46; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy-btn:hover { background: #3F3F46; }
.copy-btn.copied { color: #F9A8D4; border-color: var(--accent); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-item[open] { border-color: var(--ink); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-chevron::before, .faq-chevron::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--accent); border-radius: 1px; }
.faq-chevron::before { transform: translate(-50%, -50%); }
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s var(--ease); }
.faq-item[open] .faq-chevron::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* Final CTA */
.final-cta { padding: 40px 0 110px; }
.final-card { text-align: center; background: var(--ink); color: #fff; border-radius: 24px; padding: 72px 32px; }
.final-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.final-card > p { color: #A1A1AA; font-size: 1.15rem; margin-bottom: 2rem; }
.final-card .btn-primary { background: var(--accent); }
.final-card .btn-primary:hover { background: #fff; color: var(--ink); }
.final-card .btn-ghost { background: transparent; color: #fff; border-color: #3F3F46; }
.final-card .btn-ghost:hover { border-color: #fff; }
.final-card .hero-trust { color: #A1A1AA; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2.6fr; gap: 3rem; }
.footer-tagline { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 860px; margin-left: auto; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
    .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .rig { grid-template-columns: 1fr; gap: 2rem; }
    .style-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-cols { margin-left: 0; }
}
@media (max-width: 760px) {
    .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; transform: translateY(-130%); transition: transform 0.3s var(--ease); z-index: 999; }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: inline-flex; }
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .ba { grid-template-columns: 1fr; }
    .ba-arrow { transform: rotate(90deg); margin: -4px auto; }
    .feature-grid, .steps, .usecase-grid { grid-template-columns: 1fr; }
    .style-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 44px; }
    .hero-video { margin-top: 40px; }
    .terminal-body { font-size: 0.78rem; padding: 18px; }
    .install-step { padding: 22px 18px; }
    .sound-btn { left: 10px; bottom: 10px; padding: 8px 12px; font-size: 0.82rem; }
}
@media (max-width: 480px) { .logo-word { font-size: 0.68rem; letter-spacing: 0.02em; } .nav-actions .btn-sm { padding: 10px 14px; } }
@media (max-width: 400px) { .hero-cta .btn { width: 100%; } .logo-mark { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Guide pages */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.6rem 0 1rem; }
.page-hero .hero-sub { margin: 0 0 1.8rem; max-width: 52ch; }
.page-hero .hero-cta { justify-content: flex-start; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose { padding-top: 24px; padding-bottom: 72px; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 0.9rem; }
.prose p, .prose li { color: var(--secondary); font-size: 1.05rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.prose li strong { color: var(--ink); }
.prose .code-block { margin: 1rem 0 1.2rem; }
.prose-video { margin-top: 8px; }
.chapters { list-style: none; padding-left: 0 !important; }
.chapters li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.chapters .t { display: inline-block; min-width: 3.2rem; color: var(--accent); font-weight: 600; }
.acts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.98rem; }
.acts th, .acts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.acts th { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.acts td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.acts .inline-code { white-space: normal; }
@media (max-width: 980px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.rig > * { min-width: 0; }
.prose .inline-code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 920px) {
    .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; transform: translateY(-130%); transition: transform 0.3s var(--ease); z-index: 999; }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: inline-flex; }
}
