/* =============================================================================
   lp.css: shared stylesheet for the campaign landing pages (ai-builder-pt,
   lovable-pt, react-spring-boot-pt, clean-architecture-pt, plus the
   lovable-alternative / alternativa-lovable pair served without the extension).

   The design system is the SAME one authored inline in src/landing.html: same
   tokens, same nav, same buttons, same section rhythm. It lives in a separate
   file here because four pages share it, while the home page keeps its inline
   copy: that page is prerendered per language by scripts/build-lang-pages.mjs
   and is not touched by this file.

   Rule of thumb when the home changes: a token or a component that changes
   there has to change here too, or the campaign pages drift visually from the
   product site the visitor lands on next.
   ========================================================================== */

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

:root {
  /* ink / text */
  --ink:        #0b1220;
  --ink-2:      #3d4d63;
  --muted:      #64748b;
  --faint:      #94a3b8;

  /* surfaces */
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --bg-soft:    #eef3fb;
  --line:       #e7ecf4;
  --line-2:     #dfe6f0;

  /* brand */
  --brand:      #2563eb;
  --brand-700:  #1d4ed8;
  --brand-soft: #eef4ff;
  --indigo:     #635bff;
  --cyan:       #22d3ee;
  --green:      #0fa968;
  --green-soft: #e7f8ef;

  /* effects */
  --shadow-sm: 0 1px 2px rgba(13,27,49,.06), 0 1px 3px rgba(13,27,49,.04);
  --shadow-md: 0 6px 16px -8px rgba(13,27,49,.12), 0 14px 40px -18px rgba(13,27,49,.14);
  --shadow-lg: 0 14px 40px -16px rgba(13,27,49,.16), 0 30px 70px -30px rgba(37,99,235,.18);

  --grad-brand: linear-gradient(118deg, #2563eb 0%, #635bff 55%, #22d3ee 120%);

  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==================== UTILITY ==================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ==================== NAV ==================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13,27,49,.02), 0 8px 30px -22px rgba(13,27,49,.4);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 66px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: auto; width: 155px; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-nav-cta {
  padding: 9px 20px; background: var(--brand); color: #fff;
  border: none; border-radius: 10px; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all 0.22s; display: inline-block;
  box-shadow: 0 1px 2px rgba(37,99,235,.28), 0 8px 20px -10px rgba(37,99,235,.6);
}
.btn-nav-cta:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(37,99,235,.3), 0 12px 26px -10px rgba(37,99,235,.7); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; }

/* ==================== HERO ==================== */
.hero {
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 520px at 82% -8%, rgba(99,91,255,.12), transparent 60%),
    radial-gradient(720px 520px at 6% 2%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(34,211,238,.06), transparent 60%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(13,27,49,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,49,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 480px at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 480px at 50% 30%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* Centered variant: no media column, so the bottom padding of the two-column
   hero would leave a hole between the CTA and the next section. */
.hero.hero-centered { padding: 84px 0 64px; }
.hero.hero-centered .container { grid-template-columns: 1fr; text-align: center; }
.hero.hero-centered .hero-sub, .hero.hero-centered h1 { margin-left: auto; margin-right: auto; }
.hero.hero-centered .hero-ctas { justify-content: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 100px; font-size: 0.8rem; color: var(--ink-2);
  font-weight: 500; margin-bottom: 26px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(15,169,104,.15); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 700; line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 22px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 1.16rem; color: var(--ink-2);
  max-width: 560px; line-height: 1.65;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-note { font-size: 0.86rem; color: var(--muted); margin-bottom: 44px; animation: fadeInUp 0.6s 0.34s ease both; }

.btn-primary {
  padding: 14px 30px; background: var(--brand); color: #fff;
  border: none; border-radius: 12px; font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 2px rgba(37,99,235,.3), 0 12px 28px -12px rgba(37,99,235,.65);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(37,99,235,.3), 0 18px 36px -12px rgba(37,99,235,.7); }

.btn-secondary {
  padding: 14px 28px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* The three stats sit in the LEFT column of the hero, next to the video, so
   they have roughly half the width the home page gives them. Without a basis
   the third one wrapped to a line of its own with a 44px hole above it. */
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; animation: fadeInUp 0.6s 0.4s ease both; }
.hero-stat { display: flex; flex-direction: column; flex: 1 1 150px; min-width: 140px; max-width: 230px; }
.hero-stat .num { font-size: 1.95rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.hero-stat .num.accent { color: var(--brand); }
.hero-stat .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-top: 3px; }

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

/* video frame reused from the home hero */
.hero-media { position: relative; animation: fadeInUp 0.8s 0.4s ease both; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.hero-gif-wrap, .hero-gif-wrap-mobile {
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-gif-wrap { width: 100%; max-width: 540px; aspect-ratio: 16 / 9; border-radius: 9px; position: relative; }
.hero-gif-wrap::after {
  content: ''; position: absolute; inset: -1px; border-radius: 10px; z-index: -1;
  background: linear-gradient(135deg, rgba(37,99,235,.35), transparent 45%, transparent 60%, rgba(99,91,255,.3));
}
.hero-gif-wrap-mobile { display: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; margin: 18px 0; }
.hero-demo-gif { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.hero-video-expand {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.82rem; font-weight: 500;
  padding: 7px 15px; border-radius: 100px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all 0.2s; font-family: inherit;
}
.hero-video-expand:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hero-video-expand svg { width: 15px; height: 15px; }

/* ==================== SECTION COMMON ==================== */
section { padding: 100px 0; }

.section-label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.13; margin-bottom: 18px; color: var(--ink);
}
.section-desc { font-size: 1.08rem; color: var(--ink-2); max-width: 660px; line-height: 1.65; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

.bg-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ==================== CARD GRIDS ==================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.card:hover { border-color: #d3def0; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--brand-soft);
  border: 1px solid #dbe6ff;
}
.card-icon svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--ink); }
.card p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.62; }

/* ==================== STEPS ==================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin-top: 48px; }
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--brand), var(--indigo), transparent);
  opacity: 0.35;
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; color: var(--brand);
  margin: 0 auto 18px; position: relative; z-index: 2;
  box-shadow: 0 6px 18px -8px rgba(37,99,235,.5);
}
.step-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.step-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.6; }

/* ==================== FLOW DIAGRAM ====================
   The "your idea -> 1,600+ models -> chosen model -> adaptation -> app" chain.
   Horizontal on desktop, vertical on a phone: the arrow rotates instead of the
   chain wrapping into an unreadable zig-zag. */
.flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.flow-node {
  flex: 1 1 150px; max-width: 210px;
  padding: 18px 16px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.flow-node strong { display: block; font-size: 0.95rem; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.flow-node span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.flow-node.accent { background: var(--brand-soft); border-color: #dbe6ff; }
.flow-node.final { background: var(--green-soft); border-color: #bfe9d4; }
.flow-node.final strong { color: #0a7f4f; }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 1.2rem; flex: 0 0 auto; padding: 0 2px;
}

/* two flows side by side (competitor comparison) */
.flow-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.flow-column {
  padding: 30px 26px 34px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.flow-column.highlight { border-color: var(--brand); box-shadow: var(--shadow-md); }
.flow-column h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.flow-column .flow-caption { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.flow-stack { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.flow-stack .flow-node { max-width: none; padding: 13px 14px; }
.flow-stack .flow-arrow { padding: 0; font-size: 1rem; }

/* ==================== SHOWCASE ==================== */
.showcase-frame {
  max-width: 1000px; margin: 56px auto 0;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.showcase-frame img { width: 100%; display: block; cursor: zoom-in; transition: filter 0.2s; }
.showcase-frame img:hover { filter: brightness(0.98); }
.showcase-caption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ==================== TERMINAL / CODE ISLAND ==================== */
.terminal {
  background: #0b1224;
  border: 1px solid #1c2740;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(11,18,36,.55), 0 8px 20px -12px rgba(37,99,235,.3);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: #0e1730;
  border-bottom: 1px solid #1c2740;
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { flex: 1; text-align: center; font-size: 0.76rem; color: #7e8aa6; font-weight: 500; }
.terminal-body { padding: 24px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.95; color: #c7d2e6; overflow-x: auto; }
.terminal-body .dim { color: #6b7896; }
.terminal-body .hl { color: #4ade80; }
.terminal-body .blue { color: #7dd3fc; }
.terminal-body .cmt { color: #6b7896; font-style: italic; }

/* two-column: text + island */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-grid h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; color: var(--ink); }
.split-grid > div > p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; margin-bottom: 18px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.94rem; color: var(--ink-2); line-height: 1.55; }
.check-list .check { color: var(--green); font-weight: 800; line-height: 1.4; }

/* ==================== CHAT MOCK ====================
   Illustration of the requirements conversation, not a screenshot: the visitor
   has to see what "the AI asks like a systems analyst" means before reading a
   paragraph about it. Same tokens as the rest, so it reads as product. */
.chat-mock {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.chat-mock-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; color: var(--ink-2);
}
.chat-mock-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(15,169,104,.15); }
.chat-mock-body { padding: 22px; display: flex; flex-direction: column; gap: 13px; }
.chat-msg {
  max-width: 88%; padding: 12px 16px;
  border-radius: 16px; font-size: 0.9rem; line-height: 1.55;
}
.chat-msg .who {
  display: block; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.09em; font-weight: 700; margin-bottom: 5px; opacity: 0.7;
}
.chat-msg.user {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-msg.ai {
  align-self: flex-start; background: var(--bg-soft); color: var(--ink-2);
  border: 1px solid var(--line); border-bottom-left-radius: 6px;
}
.chat-mock-foot {
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: var(--bg-alt); font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.chat-mock-foot strong { color: var(--ink); font-weight: 700; }

/* ==================== PROOF ROW ====================
   Measured numbers from a real generated project. Concrete beats adjectives:
   "a complete application" means nothing until it has a file count next to it. */
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.proof-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.proof-num { display: block; font-size: 2.1rem; font-weight: 700; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.proof-label { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.proof-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 16px; }

/* ==================== TECH STRIP ====================
   The stack list under a technical hero: proof of quality, never the promise
   itself, so it sits below the CTA and not inside the headline. */
.tech-strip {
  display: flex; flex-wrap: wrap; gap: 9px;
  justify-content: center; max-width: 900px; margin: 0 auto;
}
.tech-strip .chip { background: #fff; box-shadow: var(--shadow-sm); }
.tech-strip-label {
  text-align: center; font-size: 0.8rem; color: var(--muted);
  margin-bottom: 16px; font-weight: 500;
}

/* ==================== BADGES / CHIPS ==================== */
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  padding: 7px 14px; font-size: 0.78rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 100px; color: var(--ink-2); letter-spacing: 0.01em;
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.cmp-tools { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
.cmp-tools thead { background: var(--bg-alt); }
.cmp-tools th[scope="col"] {
  padding: 15px 18px; text-align: left; vertical-align: bottom;
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.01em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.cmp-tools tbody th[scope="row"] {
  padding: 15px 18px; text-align: left; vertical-align: top;
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
  border-top: 1px solid var(--line); min-width: 150px;
}
.cmp-tools td {
  padding: 15px 18px; vertical-align: top; color: var(--ink-2);
  line-height: 1.5; border-top: 1px solid var(--line); min-width: 200px;
}
.cmp-tools tbody tr:hover th[scope="row"], .cmp-tools tbody tr:hover td { background: rgba(37,99,235,.04); }
.cmp-tools .col-self { background: rgba(37,99,235,.06); color: var(--ink); }
.cmp-tools tbody tr:hover .col-self { background: rgba(37,99,235,.09); }
.cmp-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--brand); border-radius: 999px; vertical-align: middle;
}
/* Feature checkmarks inside the comparison table. The absence mark is muted on
   purpose: the page argues with the row label, not with a loud red cross. */
.cmp-yes { color: var(--green); font-weight: 800; margin-right: 4px; }
.cmp-no { color: var(--faint); font-weight: 700; }
.cmp-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.cmp-note a { color: var(--brand); text-decoration: none; }
.cmp-note a:hover { text-decoration: underline; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; padding: 20px 0;
  background: none; border: none; color: var(--ink);
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--brand); }
.faq-arrow { font-size: 1.3rem; transition: transform 0.3s; color: var(--faint); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--brand); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-size: 0.94rem; color: var(--ink-2); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 460px; padding-bottom: 20px; }

/* ==================== FINAL CTA ==================== */
.final-cta { padding: 96px 0; text-align: center; position: relative; }
.final-cta .cta-band {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(125deg, #1d4ed8 0%, #4338ca 50%, #5b21b6 110%);
  border-radius: 28px;
  padding: 72px 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(37,99,235,.6);
}
.final-cta .cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(500px 300px at 5% 120%, rgba(99,91,255,.4), transparent 60%);
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; color: #fff; position: relative; }
.final-cta p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 34px; max-width: 540px; margin-left: auto; margin-right: auto; position: relative; }
.final-cta .btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  padding: 15px 34px; background: #fff; color: var(--brand-700);
  border-radius: 12px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
}
.final-cta .btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); }

/* ==================== FOOTER ==================== */
footer { padding: 48px 0 36px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-size: 0.86rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(11, 18, 36, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; cursor: zoom-out;
  animation: lbFadeIn 0.25s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 14px; box-shadow: 0 30px 90px -20px rgba(11,18,36,.6);
  animation: lbZoomIn 0.3s ease; cursor: default;
}
.video-lightbox-video {
  width: 94vw; max-width: 1600px; max-height: 88vh;
  border-radius: 14px; box-shadow: 0 30px 90px -20px rgba(11,18,36,.6);
  animation: lbZoomIn 0.3s ease; cursor: default; background: #000;
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.3rem; line-height: 1;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: var(--shadow-md);
}
.lightbox-close:hover { transform: scale(1.05); }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* ==================== SCROLL REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1020px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 920px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 12px 28px 22px; gap: 0; list-style: none; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; }
  .mobile-menu-btn { display: block; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .split-grid, .flow-columns { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; gap: 8px; }
  .hero-media { display: none; }
  .hero-gif-wrap-mobile { display: block; }
  /* The chain reads top to bottom on a narrow screen: the arrows rotate so the
     direction stays obvious instead of pointing sideways into a line break. */
  .flow { flex-direction: column; align-items: stretch; }
  .flow-node { max-width: none; }
  .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: 1rem; }

  .hero { padding: 76px 0 52px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 18px; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-note { margin-bottom: 32px; }
  .hero-stats { gap: 22px; }
  .hero-stat .num { font-size: 1.7rem; }
  .hero-gif-wrap-mobile { margin: 14px 0 4px; }

  .card-grid { gap: 14px; }
  .card { padding: 24px; }
  .proof-row { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .proof-item { padding: 18px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .showcase-frame { margin-top: 36px; border-radius: 14px; }
  .terminal-body { padding: 18px; font-size: 0.72rem; line-height: 1.85; }
  .split-grid { gap: 28px; }

  .final-cta { padding: 64px 0; }
  .final-cta .cta-band { padding: 48px 22px; border-radius: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-right .btn-nav-cta { display: none; }
  .cmp-tools th, .cmp-tools td { padding: 12px 13px; }
}
