/* Same palette as the app (src/renderer/styles.css), on a deeper canvas. */
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #111317;
  --panel: #16191f;
  --panel-2: #1d2128;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e9ecf1;
  --muted: #9aa3b0;
  --faint: #6b7380;
  --accent: #7c6cff;
  --accent-2: #9b8fff;
  --teal: #4fd1c5;
  --ok: #3ccf8e;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 16, 0.72); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--muted); font-size: 15px; }
.top-nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #8b7dff, var(--accent)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 30px rgba(124, 108, 255, 0.35); transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 40px rgba(124, 108, 255, 0.5); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-2); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* Glow: slow drifting colour blobs behind the hero and the final call to action */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.glow span:nth-child(1) { width: 620px; height: 420px; left: 50%; top: -160px; margin-left: -460px; background: #6a5cff; }
.glow span:nth-child(2) { width: 520px; height: 380px; left: 50%; top: -60px; margin-left: 40px; background: #2fb8ab; opacity: 0.35; animation-duration: 22s; }
.glow span:nth-child(3) { width: 380px; height: 300px; left: 50%; top: 320px; margin-left: -190px; background: #7c6cff; opacity: 0.25; animation-duration: 26s; }
.glow.small span:nth-child(1) { top: 0; }
.glow.small span:nth-child(2) { top: 40px; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* Hero */
.hero { position: relative; padding: 96px 0 40px; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, transparent 40%, var(--bg) 75%); pointer-events: none; }
.hero > .wrap, .hero .facts { position: relative; z-index: 1; }
.hero-inner { text-align: center; max-width: 1020px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 750; }
.grad { background: linear-gradient(90deg, #b3a9ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); margin: 24px auto 0; max-width: 720px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fine { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* Hero scene: real pieces of the app layered in depth. site.js adds .in (entrance), and sets
   --mx/--my from the pointer for a little parallax. The AI dialog's step lines are revealed one
   at a time by sliding .cover (filled with the dialog's own background) down over them. */
.hero-stage { --mx: 0; --my: 0; position: relative; aspect-ratio: 1120 / 640; max-width: 1120px; margin: 72px auto 0; }
.hero-stage::before { content: ""; position: absolute; left: 30%; top: 25%; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(124, 108, 255, 0.35), transparent); filter: blur(30px); pointer-events: none; }
.layer { position: absolute; translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px); transition: translate 0.4s ease-out; }
.layer img { width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.35); }
.l-case { left: 0; top: 6%; width: 56%; z-index: 1; }
.l-case img { filter: brightness(0.82) saturate(0.9); }
.l-ai { left: 34%; top: 32%; width: 66%; z-index: 2; }
.l-ai img { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124, 108, 255, 0.35), 0 0 60px rgba(124, 108, 255, 0.25); }
.l-results { right: 0; top: 0; width: 42%; z-index: 3; }
.l-run { left: 3%; top: 87%; width: 29.6%; z-index: 3; }
.l-results img, .l-run img { border-radius: 10px; }
.cover { display: none; position: absolute; left: 1.5%; right: 0.5%; top: 35.7%; bottom: 1.2%; background: rgb(28, 32, 38); }
.js .cover { display: block; }
.js .hero-stage .layer { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.9s var(--ease) var(--delay), transform 1.1s var(--ease) var(--delay), translate 0.4s ease-out; }
.js .hero-stage.in .layer { opacity: 1; transform: none; }
.hero-stage.in .cover { animation: type-lines 10s 1.4s infinite; }
.hero-stage.in .l-results img { animation: bob 6s ease-in-out 1.5s infinite alternate; }
.hero-stage.in .l-run img { animation: bob 7s ease-in-out 2s infinite alternate-reverse; }
@keyframes type-lines {
  0% { top: 35.7%; animation-timing-function: steps(15, end); }
  45% { top: 98.8%; }
  92% { top: 98.8%; opacity: 1; }
  96% { top: 98.8%; opacity: 0; }
  97% { top: 35.7%; opacity: 0; }
  100% { top: 35.7%; opacity: 1; }
}
@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.facts { list-style: none; margin: 64px auto 0; padding: 0; width: min(1120px, calc(100% - 32px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 1120px; }
.facts li { background: var(--bg); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.facts b { font-weight: 650; }
.facts span { color: var(--faint); font-size: 14px; }

/* Sections */
.section { position: relative; padding: 120px 0; scroll-margin-top: 62px; }
h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 720; text-align: center; }
.head { text-align: center; max-width: 780px; margin: 0 auto; }
.kicker { display: inline-block; color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.sub { color: var(--muted); text-align: center; max-width: 640px; margin: 16px auto 0; font-size: 17px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(60, 207, 142, 0.12); }

/* Scroll story: steps on the left, a pinned screenshot on the right that changes per step */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; margin-top: 40px; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.step.active { opacity: 1; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.04em; margin-bottom: 14px; }
.step h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 17px; }
.step p b { color: var(--text); }
.step-shot { display: none; }
.story-visual { position: sticky; top: calc(50vh - 250px); height: fit-content; align-self: start; margin-top: 18vh; }
.frame { position: relative; aspect-ratio: 1500 / 938; border-radius: 16px; border: 1px solid var(--border-2); background: var(--panel); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 108, 255, 0.14); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.02); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.frame img.on { opacity: 1; transform: none; }
.progress { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px; justify-content: center; }
.progress li { width: 28px; height: 4px; border-radius: 2px; background: var(--border-2); transition: background 0.3s, width 0.3s; }
.progress li.on { width: 44px; background: linear-gradient(90deg, var(--accent), var(--teal)); }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; color: inherit; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
a.tile:hover { text-decoration: none; border-color: rgba(124, 108, 255, 0.45); transform: translateY(-3px); }
.tile-text { padding: 24px 24px 18px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile-media { flex: 1; display: flex; overflow: hidden; border-top: 1px solid var(--border); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease); }
a.tile:hover img { transform: scale(1.03); }
.t-wide { grid-column: span 4; }
.t-list { grid-column: span 6; padding: 26px 28px; }
.t-list ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; color: var(--muted); font-size: 15px; }
.t-list li { padding-left: 18px; position: relative; }
.t-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.t-list b { color: var(--text); font-weight: 600; }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); margin-top: 12px; transition: border-color 0.2s; }
details:first-of-type { margin-top: 40px; }
details[open] { border-color: var(--border-2); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 22px 20px; }

/* Final call to action */
.final { position: relative; padding: 140px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.final h2 { max-width: 760px; }

.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Fade-up as sections enter (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .story-visual { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .step-shot { display: block; margin-top: 24px; border-radius: 14px; border: 1px solid var(--border-2); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: span 1; }
  .t-wide, .t-list { grid-column: span 2; }
  .t-list ul { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .top-inner { justify-content: space-between; }
  .hero { padding: 64px 0 24px; }
  .hero-stage { margin-top: 48px; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hero-stage .layer { position: relative; left: auto; right: auto; top: auto; translate: none; }
  .l-case, .l-results { display: none; }
  .l-ai { width: 100%; }
  .l-run { width: 86%; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile, .t-wide, .t-list { grid-column: span 1; }
  .t-list ul { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .facts li { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow span { animation: none; }
  .js .hero-stage .layer { opacity: 1; transform: none; transition: none; }
  .cover, .js .cover { display: none; }
  .hero-stage.in .l-results img, .hero-stage.in .l-run img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame img, .step, .btn, .tile, .tile img { transition: none; }
}
