/* ─────────────────────────────────────────────────────────────────────────
   Magic Note — "Liquid Mac" stylesheet.
   Animated aurora mesh background, frosted-glass surfaces with rim-lights,
   floating glass nav pill, Bricolage Grotesque + Hanken Grotesk typography.
   ───────────────────────────────────────────────────────────────────────── */

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

:root {
  /* Ground & glass tokens ------------------------------------------------- */
  --bg:         #0a0820;
  --bg-deep:    #050314;
  --surface:    rgba(255, 255, 255, 0.05);
  --surface2:   rgba(255, 255, 255, 0.08);
  --border:     rgba(255, 255, 255, 0.10);
  --rim:        rgba(255, 255, 255, 0.18);
  --rule:       rgba(255, 255, 255, 0.10);

  /* Text on glass --------------------------------------------------------- */
  --text:       rgba(255, 255, 255, 0.96);
  --text2:      rgba(255, 255, 255, 0.72);
  --text3:      rgba(255, 255, 255, 0.48);

  /* Accent — coral-rose, distinct from "AI purple" ---------------------- */
  --accent:        #ff7a8a;
  --accent-warm:   #ffb87a;
  --accent-cool:   #a78bfa;
  --accent-hover:  #ff5a72;
  --accent-tint:   rgba(255, 122, 138, 0.16);
  --accent-edge:   rgba(255, 122, 138, 0.45);

  /* CTA gradient — used on primary buttons */
  --grad-cta:   linear-gradient(135deg, #ff7a8a 0%, #ff9c6b 45%, #a78bfa 100%);

  --success:    #5eead4;
  --danger:     #ff6b7a;
  --warning:    #ffb74a;

  --radius:     20px;
  --radius-sm:  12px;
  --radius-pill: 999px;

  /* Type ----------------------------------------------------------------- */
  --display: "Bricolage Grotesque", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", "IBM Plex Mono", ui-monospace, monospace;

  --grid-max: 1440px;
}

html { font-size: 16px; background: var(--bg-deep); overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11", "kern", "liga";
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
  padding-top: 72px; /* clearance under the floating nav pill */
}

/* ── Aurora mesh background (the signature) ───────────────────────────── */
body::before {
  /* Big slowly-drifting blobs of color that compose the mesh */
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(46% 38% at 18% 22%, rgba(167, 139, 250, 0.55) 0%, transparent 65%),
    radial-gradient(42% 36% at 82% 30%, rgba(255, 122, 138, 0.50) 0%, transparent 60%),
    radial-gradient(50% 40% at 30% 88%, rgba(94, 234, 212, 0.32) 0%, transparent 65%),
    radial-gradient(40% 36% at 90% 84%, rgba(255, 184, 122, 0.36) 0%, transparent 65%),
    radial-gradient(60% 50% at 50% 50%, rgba(80, 60, 180, 0.20) 0%, transparent 70%);
  filter: blur(20px) saturate(120%);
  animation: aurora 38s ease-in-out infinite alternate;
}

body::after {
  /* fine grain so the gradients don't read as plastic */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px),
    radial-gradient(rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1);    filter: blur(20px) saturate(120%) hue-rotate(0deg); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); filter: blur(28px) saturate(140%) hue-rotate(8deg); }
  100% { transform: translate3d(3%, -2%, 0) scale(1);   filter: blur(20px) saturate(130%) hue-rotate(-6deg); }
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 200ms;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #1a0410; }

/* Global heading defaults */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600, "opsz" 24, "GRAD" 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
}

/* ── Floating glass nav pill ──────────────────────────────────────────── */
body > nav {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 14px 10px 18px;
  background: rgba(12, 9, 28, 0.78);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 14px 40px -8px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35);
  will-change: transform;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 700, "opsz" 24, "GRAD" 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 4px 4px 4px 0;
}
.nav-logo:hover { color: var(--text); }
.nav-logo span {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variation-settings: "wdth" 95, "wght" 700, "opsz" 24, "GRAD" -200;
}
.nav-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 var(--rim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text2);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 180ms, color 180ms;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .btn { padding: 8px 16px; font-size: 12.5px; }

@media (max-width: 720px) {
  body > nav { gap: 12px; padding: 8px 8px 8px 14px; top: 12px; right: 12px; max-width: calc(100vw - 24px); }
  .nav-logo { font-size: 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 160ms, filter 160ms;
  text-decoration: none;
  position: relative;
}

.btn-primary {
  background: var(--grad-cta);
  color: #1a0410;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 24px -6px rgba(255, 122, 138, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 32px -6px rgba(255, 122, 138, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.3);
  color: #1a0410;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 var(--rim);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--rim);
  transform: translateY(-1px);
  color: var(--text);
}

.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-danger { background: var(--danger); color: #210506; border: none; }

/* ── Generic glass card ──────────────────────────────────────────────── */
.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text2);
}
input[type="text"], input[type="email"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  backdrop-filter: blur(16px);
}
input:focus {
  border-color: var(--accent-edge);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.form-hint { font-family: var(--mono); font-size: 11.5px; color: var(--text3); letter-spacing: 0.02em; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.alert-success { background: rgba(94, 234, 212, 0.08); border-color: rgba(94, 234, 212, 0.30); color: #a7f3d0; }
.alert-error   { background: rgba(255, 107, 122, 0.08); border-color: rgba(255, 107, 122, 0.32); color: #ffb7c0; }
.alert-info    { background: var(--accent-tint); border-color: var(--accent-edge); color: #ffd2da; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 24px 100px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600, "opsz" 96, "GRAD" 0;
  font-size: clamp(36px, 10vw, 112px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.98;
  margin-bottom: 32px;
  animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 span {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: rise 800ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  font-variation-settings: "wdth" 92, "wght" 600, "opsz" 96, "GRAD" -100;
}
.hero p {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 44px;
  letter-spacing: -0.005em;
  animation: rise 800ms 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-buttons {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  animation: rise 800ms 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-download-note {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: var(--text3);
  margin-top: 14px; margin-bottom: 0;
}
.hero-download-note a {
  color: var(--text2);
  background-size: 100% 1px;
  background-image: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18));
  padding-bottom: 2px;
}
.hero-download-note a:hover {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
}
.lead-api-note {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--text3);
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lead-api-note a {
  color: var(--text);
  background-image: none;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.lead-api-note a:hover { color: var(--accent); }
.lead-api-note a .arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
  color: var(--accent);
}
.lead-api-note a:hover .arrow { transform: translateX(3px); }

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

/* ── Sections ──────────────────────────────────────────────────────────── */
section { padding: 32px 0; position: relative; }

.section-title {
  text-align: center;
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 48, "GRAD" 0;
  font-size: clamp(28px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 22px;
}

/* override the inline `style="background:var(--surface)"` bands on certain
   sections — we don't want banded backgrounds in Liquid Mac, just glass cards */
section[style*="surface"] {
  background: transparent !important;
}

/* ── Lead story — title + intro, big shot, then continuation ──────────── */
.lead-story {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 32px;
}
.lead-story-head {
  max-width: 820px;
  text-align: center;
}
.lead-story-head h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600, "opsz" 96;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.lead-story-head p {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--text2);
  line-height: 1.6;
  letter-spacing: -0.005em;
  max-width: 720px;
  margin: 0 auto;
}
.lead-story-img {
  width: 100%;
  max-width: 1180px;
  aspect-ratio: 16 / 10;
}
.lead-story-tight .lead-story-img { max-width: 940px; }
.lead-story-tail {
  max-width: 980px;
  width: 100%;
}
.lead-story-tail .prompt-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  border-top: 1px solid var(--border);
  margin-top: 0;
  margin-bottom: 22px;
}
.lead-story-tail .prompt-presets li:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 18px; }
.lead-story-tail .prompt-presets li:nth-last-child(2) { border-bottom: none; }
.lead-story-tail .prompt-presets li:last-child { border-bottom: none; }
.lead-footnote {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.6;
  letter-spacing: -0.005em;
  text-align: center;
}
.lead-footnote em { color: var(--text2); font-style: italic; font-weight: 500; }
@media (max-width: 720px) {
  .lead-story-tail .prompt-presets { grid-template-columns: 1fr; }
  .lead-story-tail .prompt-presets li:nth-child(odd) { border-right: none; padding-right: 0; }
}
.lead-story-foot {
  max-width: 820px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.lead-story-foot p {
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--text2);
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.lead-story-foot .story-bullets {
  padding: 0;
}
@media (max-width: 820px) {
  .lead-story { gap: 28px; padding: 0 20px; }
  .lead-story-head h2 { font-size: clamp(28px, 7vw, 40px); }
  .lead-story-head p { font-size: 16px; }
  .lead-story-foot { grid-template-columns: 1fr; gap: 24px; }
  .lead-story-img { aspect-ratio: 4 / 3; }
}

/* ── Feature story (narrow text, wide image) ──────────────────────────── */
.feature-story {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 32px;
}
.feature-story-flip { grid-template-columns: 1fr minmax(260px, 400px); }

.feature-story-img img,
.feature-story-img > img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  display: block;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 320ms;
}
.feature-story-img img:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 40px 90px -20px rgba(255, 122, 138, 0.35),
    0 0 0 1px var(--rim);
}

.feature-story-text h2,
.feature-h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 48, "GRAD" 0;
  font-size: clamp(26px, 4.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--text);
}
.feature-story-text p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}
.feature-story-text code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--accent);
  letter-spacing: 0;
}

.story-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--text2);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.story-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-cta);
  flex-shrink: 0;
  margin-top: 9px;
  box-shadow: 0 0 12px rgba(255, 122, 138, 0.6);
}
.story-bullets li strong { color: var(--text); font-weight: 600; }

/* Steal these prompts — clean two-tier preset rows */
.prompt-presets {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
}
.prompt-presets li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
  transition: background 200ms;
}
.prompt-presets li:hover {
  background: rgba(255, 255, 255, 0.025);
}
.preset-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 24;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text);
  line-height: 1.2;
}
.preset-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* Pro tag (small pill) */
.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--accent-tint);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Research claims (3 centered statements) ──────────────────────────── */
.research-claims {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.research-claims li {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text2);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-align: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}
.research-claims li:last-child { border-bottom: none; }
.research-claims li::before {
  content: "✦";
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-size: 12px;
  vertical-align: 2px;
}
@media (max-width: 600px) {
  .research-claims li { font-size: 15.5px; padding: 14px 4px; }
}

/* ── Ingest flow ──────────────────────────────────────────────────────── */
.ingest-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: var(--grid-max); margin: 0 auto;
  padding: 0 16px;
}
.ingest-flow .shot { aspect-ratio: 4 / 3; }
.ingest-step { min-width: 0; }
.ingest-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 18px;
}
.ingest-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: #1a0410;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 14px -2px rgba(255, 122, 138, 0.5);
}
.ingest-arrow {
  align-self: center;
  font-size: 0; /* hide unicode arrow; we replace with custom dash */
  width: 36px;
  height: 28px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  padding: 0;
}
.ingest-arrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--rim) 0%, var(--accent-edge) 100%);
}
.ingest-arrow::after {
  content: "";
  width: 6px; height: 6px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
  margin-left: -4px;
}

/* ── Screenshots (unified) ────────────────────────────────────────────── */
.shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 24px 60px -20px rgba(0, 0, 0, 0.55);
  display: block;
  cursor: zoom-in;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 320ms;
}
.shot:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 32px 70px -20px rgba(255, 122, 138, 0.30);
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 24px;
}
.shot-pair .shot { aspect-ratio: 16 / 10; }
@media (max-width: 720px) {
  .shot-pair { grid-template-columns: 1fr; padding: 0 20px; gap: 24px; }
  .shot-pair .shot { aspect-ratio: 4 / 3; }
}

/* Map flow — natural-language prompt above, two result shots below */
.map-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 32px;
}
.map-flow .map-prompt-shot {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 10;
}
.map-flow .shot-pair {
  width: 100%;
  padding: 0;
}
.map-flow-arrow {
  font-family: var(--display);
  font-variation-settings: "wght" 500;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  opacity: 0.7;
  background: var(--accent-tint);
  border: 1px solid var(--accent-edge);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px -2px rgba(255, 122, 138, 0.4);
}
@media (max-width: 720px) {
  .map-flow { padding: 0 20px; gap: 18px; }
  .map-flow .map-prompt-shot { aspect-ratio: 4 / 3; }
}

/* Hero shot (legacy class, kept) */
.hero-shot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 40px 90px -20px rgba(0, 0, 0, 0.6);
  display: block;
  cursor: zoom-in;
  transition: transform 320ms, box-shadow 320ms;
}
.hero-shot:hover { transform: translateY(-4px); }

/* ── Vision grid (4 glass tiles) ──────────────────────────────────────── */
#vision { padding: 24px 24px 96px; }
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.vision-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 24px 60px -24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 280ms;
}
.vision-item::before {
  /* subtle inner glow that intensifies on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 0% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
  opacity: 0.5;
  transition: opacity 280ms;
  pointer-events: none;
}
.vision-item:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 32px 70px -20px rgba(167, 139, 250, 0.30);
}
.vision-item:hover::before { opacity: 1; }
.vision-icon { font-size: 24px; margin-bottom: 14px; position: relative; }
.vision-item h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 24;
  font-size: 21px;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
}
.vision-item p {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.6;
  letter-spacing: -0.005em;
  position: relative;
}
.vision-item p em { color: var(--text); font-style: normal; font-weight: 600; }
@media (max-width: 640px) { .vision-grid { grid-template-columns: 1fr; } }

/* ── Pro vs Lite compare ──────────────────────────────────────────────── */
#compare { padding: 72px 24px 96px; }
.compare-subtitle {
  text-align: center;
  font-family: var(--sans);
  color: var(--text2);
  font-size: 17px;
  margin-top: 4px;
  margin-bottom: 48px;
  letter-spacing: -0.005em;
}
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto 48px;
}
.compare-col {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 24px 60px -24px rgba(0, 0, 0, 0.55);
  transition: transform 240ms, box-shadow 240ms;
}
.compare-col:hover { transform: translateY(-2px); }
.compare-col-pro {
  border-color: var(--accent-edge);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 0 0 1px var(--accent-edge),
    0 24px 60px -20px rgba(255, 122, 138, 0.25);
  position: relative;
  overflow: hidden;
}
.compare-col-pro::before {
  /* warm halo on the Pro card */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 40% at 100% 0%, rgba(255, 122, 138, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.compare-header {
  padding: 32px 30px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.compare-col-pro .compare-header { border-bottom-color: var(--accent-edge); }

.compare-edition {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.pro-edition {
  color: var(--text);
  background: var(--accent-tint);
  border-color: var(--accent-edge);
}
.compare-header h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 24;
  font-size: 22px;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
  color: var(--text);
}
.compare-header p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.compare-price {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 700, "opsz" 96;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1;
}
.compare-col-pro .compare-price {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.compare-price span {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text2);
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-text-fill-color: var(--text2);
}
.compare-features {
  list-style: none;
  padding: 16px 30px 24px;
}
.compare-features li {
  padding: 9px 0 9px 28px;
  font-family: var(--sans);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.compare-features li:last-child { border-bottom: none; }
.compare-features li::before {
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--sans);
}
.compare-features li.have { color: var(--text2); }
.compare-features li.have::before { content: "✓"; background: rgba(94, 234, 212, 0.18); color: #5eead4; }
.compare-features li.missing { color: var(--text3); }
.compare-features li.missing::before { content: "—"; background: rgba(255, 255, 255, 0.05); color: var(--text3); }
.compare-features li.pro-feature { color: var(--text); }
.compare-features li.pro-feature::before {
  content: "";
  background: var(--grad-cta);
  width: 18px; height: 18px;
  box-shadow: 0 0 10px rgba(255, 122, 138, 0.5);
}

.compare-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 800px;
  margin: 0 auto 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 0 var(--rim);
}
.callout-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.compare-callout strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.018em; }
.compare-callout span { font-family: var(--sans); font-size: 14.5px; color: var(--text2); line-height: 1.55; letter-spacing: -0.005em; }

@media (max-width: 640px) { .compare-wrap { grid-template-columns: 1fr; } }

/* ── API costs — single outer glass card, soft tier rows ──────────────── */
#api-costs { padding: 24px 24px 96px; }
.api-costs-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 56px 40px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 30px 80px -30px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}
.api-costs-wrap::before {
  /* warm aurora wash so the card has depth */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(167, 139, 250, 0.10) 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 122, 138, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.api-costs-wrap > * { position: relative; }

.api-costs-header { text-align: center; margin-bottom: 36px; }
.api-costs-header h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 48;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.api-costs-header p {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.api-costs-header strong { color: var(--text); font-weight: 600; }

.api-cost-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.api-tier {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 22px;
  box-shadow: none;
  position: relative;
}
.api-tier:last-child { border-right: none; }
.api-tier-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.api-tier-price {
  /* low-key — same family as body, regular weight, just a touch larger */
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.api-tier-price span {
  font-weight: 400;
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 0;
}
.api-tier-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.api-tier-desc strong { color: var(--text); font-weight: 600; }
.api-tier-examples {
  list-style: none;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border);
}
.api-tier-examples li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text3);
  padding: 3px 0 3px 14px;
  position: relative;
  letter-spacing: -0.005em;
}
.api-tier-examples li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.api-costs-footnote {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text3);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.api-costs-footnote strong { color: var(--text2); font-weight: 500; }

@media (max-width: 760px) {
  .api-costs-wrap { padding: 40px 24px 28px; }
  .api-cost-tiers { grid-template-columns: 1fr; }
  .api-tier { border-right: none; border-bottom: 1px solid var(--border); }
  .api-tier:last-child { border-bottom: none; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  position: relative;
  text-align: center;
  padding: 56px 24px 72px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text3);
  letter-spacing: -0.005em;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  background: rgba(10, 8, 32, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
footer a { color: var(--text2); }
footer a:hover { color: var(--accent); }
footer p { padding: 4px 0; }

/* ── Center-card (login/activate) ─────────────────────────────────────── */
.center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 32px 24px 64px;
}
.center-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 40px 100px -30px rgba(0, 0, 0, 0.65);
  position: relative;
}
.center-card::before {
  /* subtle aurora glow above the card */
  content: "";
  position: absolute;
  inset: -60px -40px auto -40px;
  height: 200px;
  background: radial-gradient(50% 100% at 50% 0%, var(--accent-tint), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.center-card h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 32;
  font-size: 30px;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 8px;
  text-align: center;
}
.center-card .subtitle {
  font-family: var(--sans);
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.005em;
}

/* ── Dashboard ────────────────────────────────────────────────────────── */
.dashboard-wrap { max-width: 680px; margin: 32px auto 64px; padding: 0 24px; }
.dashboard-wrap h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600, "opsz" 48;
  font-size: 40px;
  letter-spacing: -0.032em;
  margin-bottom: 32px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.badge-pro     { background: var(--accent-tint); color: var(--text); border-color: var(--accent-edge); }
.badge-trial   { background: rgba(255, 184, 122, 0.14); color: #ffd1a3; border-color: rgba(255, 184, 122, 0.36); }
.badge-expired { background: rgba(255, 107, 122, 0.12); color: #ffb7c0; border-color: rgba(255, 107, 122, 0.36); }
.key-display {
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 10px 0 18px;
  word-break: break-all;
  backdrop-filter: blur(16px);
}
.machines-count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

/* ── Pricing (legacy) ─────────────────────────────────────────────────── */
.pricing { max-width: 460px; margin: 0 auto 80px; padding: 0 24px; text-align: center; }
.pricing-card {
  background: var(--surface2);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 0 var(--rim),
    0 24px 60px -20px rgba(255, 122, 138, 0.25);
}
.price {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 700, "opsz" 96;
  font-size: 60px;
  letter-spacing: -0.04em;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-period { font-family: var(--sans); font-size: 16px; color: var(--text2); font-weight: 400; }
.price-note { font-family: var(--sans); font-size: 13px; color: var(--text3); margin: 8px 0 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.005em;
}
.price-features li:last-child { border-bottom: none; }

/* ── Feature grid (legacy) ────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 0 var(--rim);
}
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.018em;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text2); }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 28px; padding: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-pill); width: fit-content; }
.tab-btn {
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text2);
  border-radius: var(--radius-pill);
  transition: all 200ms;
  letter-spacing: -0.005em;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--grad-cta); color: #1a0410; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Mobile breakpoints ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .ingest-flow { grid-template-columns: 1fr; gap: 32px; }
  .ingest-arrow { display: none; }
  .feature-story, .feature-story-flip { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
  .feature-story-flip .feature-story-text { order: -1; }
}
@media (max-width: 600px) {
  .hero { padding: 32px 16px 60px; }
  .hero h1 {
    font-size: clamp(22px, 7.2vw, 44px);
    letter-spacing: -0.04em;
    font-variation-settings: "wdth" 85, "wght" 600, "opsz" 96, "GRAD" 0;
    text-wrap: balance;
  }
  .hero p { font-size: 16px; }
  .section-title { font-size: clamp(22px, 6vw, 36px); padding: 0 8px; text-wrap: balance; }
  .feature-story-text h2, .feature-h2 { font-size: clamp(22px, 6vw, 32px); text-wrap: balance; }
  .api-costs-header h2 { font-size: clamp(22px, 6vw, 32px); text-wrap: balance; }
  .pricing-card { padding: 28px; }
  .center-card { padding: 32px 24px; }
  .dashboard-wrap h1 { font-size: 30px; }
  .compare-price { font-size: 38px; }
  .api-tier-price { font-size: 32px; }
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 20, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.lb-inner img {
  max-width: 84vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--rim);
  border: 1px solid var(--border);
  display: block;
}
.lb-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 180ms, transform 180ms;
  backdrop-filter: blur(20px);
}
.lb-btn:hover { background: var(--surface); transform: translateY(-1px); }
.lb-close {
  position: absolute;
  top: -56px; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(20px);
}
.lb-close:hover { background: var(--surface); }
.lb-counter {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
  letter-spacing: -0.005em;
}

/* ── Gallery (legacy) ─────────────────────────────────────────────────── */
#screenshots { padding: 0 24px 64px; }
.gallery-wrap { max-width: 960px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 240ms, box-shadow 240ms;
  display: block;
  box-shadow: inset 0 1px 0 0 var(--rim), 0 16px 40px -16px rgba(0, 0, 0, 0.4);
}
.gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 var(--rim), 0 20px 50px -16px rgba(255, 122, 138, 0.3);
}
.gallery-grid img:first-child { grid-column: span 2; height: 260px; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:first-child { grid-column: span 2; height: 180px; }
  .gallery-grid img { height: 140px; }
}

/* ── User Guide ───────────────────────────────────────────────────────── */
.guide-wrap {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 96px;
  gap: 60px;
  align-items: flex-start;
}
.guide-nav {
  position: sticky;
  top: 100px;
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 0 var(--rim);
}
.guide-nav-title {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
  padding-left: 8px;
}
.guide-nav a {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text2);
  padding: 7px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: background 160ms, color 160ms;
  letter-spacing: -0.005em;
}
.guide-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-pro {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-body { flex: 1; min-width: 0; }
.guide-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.guide-header h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600, "opsz" 96;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.038em;
  line-height: 1;
  margin-bottom: 12px;
}
.guide-header p {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text2);
  letter-spacing: -0.005em;
}

.guide-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.guide-section:last-child { border-bottom: none; }
.guide-section h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600, "opsz" 32;
  font-size: 28px;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.guide-section h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}
.guide-section p {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
.guide-section ul, .guide-section ol { padding-left: 22px; margin-bottom: 14px; }
.guide-section li {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--text2);
  padding: 3px 0;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.guide-section code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--accent);
}
.guide-section em { color: var(--text2); font-style: italic; }
.guide-section strong { color: var(--text); font-weight: 600; }

.guide-pro-section {
  background: var(--accent-tint);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin: 12px -4px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.guide-pro-section + .guide-pro-section { margin-top: -1px; }
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.guide-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.005em;
}
.guide-table td {
  padding: 12px 16px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

kbd {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .guide-wrap { flex-direction: column; padding: 24px 20px 64px; gap: 24px; }
  .guide-nav { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .guide-nav-title { display: none; }
  .guide-pro-section { margin: 12px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .hero h1, .hero h1 span, .hero p, .hero-buttons { animation: none; }
}
