/* Fley Automations – site styles. No external requests: fonts are local (assets/fonts). */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #061a33;
  --navy-2: #0a2547;
  --panel: #0c2a4d;
  --panel-2: #10335c;
  --line: rgba(181, 212, 244, 0.16);
  --text: #eaf2fc;
  --muted: #a9c4e4;
  --blue: #378add;
  --blue-600: #2a74c0;
  --blue-700: #185fa5;
  --blue-800: #0c447c;
  --blue-300: #85b7eb;
  --blue-200: #b5d4f4;
  --blue-50: #f3f8fd;
  --ink: #06203d;
  --ink-muted: #3b5675;
  --danger: #ffb4a8;
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --display: "Oswald", "Bahnschrift", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue-800); }

/* ---------------------------------------------------------------- moving background texture
   Two fixed layers behind all content (z-index -1, no pointer events). Only transform and
   opacity are animated, so phones can do it on the GPU. Stopped by prefers-reduced-motion. */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
}
body::before { /* fine dot grid that drifts diagonally; one tile per cycle = seamless loop */
  inset: -48px;
  background-image: radial-gradient(circle at 1px 1px, rgba(133, 183, 235, 0.16) 1px, transparent 1.6px);
  background-size: 24px 24px;
  animation: grid-drift 18s linear infinite;
}
body::after { /* soft brand-blue glows that slowly wander */
  inset: -20%;
  background:
    radial-gradient(38% 30% at 22% 30%, rgba(55, 138, 221, 0.16), transparent 70%),
    radial-gradient(34% 28% at 78% 64%, rgba(42, 116, 192, 0.14), transparent 70%),
    radial-gradient(30% 24% at 50% 100%, rgba(133, 183, 235, 0.08), transparent 70%);
  animation: glow-wander 40s ease-in-out infinite alternate;
}
@media (max-width: 700px) { body::after { animation: none; } }
@keyframes grid-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(24px, 24px, 0); } }
@keyframes glow-wander {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.05); }
  100% { transform: translate3d(-3%, 4%, 0) scale(1); }
}

/* ---------------------------------------------------------------- icons + mascot */
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
.mascot { margin: 0; }
.mascot-bob { display: block; animation: mascot-bob 5.5s ease-in-out infinite; will-change: transform; }
.mascot-flip { display: block; transform: scaleX(-1); }
.mascot-img {
  width: 100%; transform-origin: 50% 96%;
  animation: mascot-sway 7s ease-in-out infinite;
  filter: drop-shadow(0 28px 34px rgba(3, 22, 48, 0.45));
}
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mascot-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

/* ---------------------------------------------------------------- nav (pill) */
.nav-wrap {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  background: rgba(6, 26, 51, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}
.nav-logo {
  font: 700 1.15rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none;
  margin-right: 4px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
}
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none;
  font-size: 0.875rem; font-weight: 500; color: var(--blue-200);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-cta {
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.875rem;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-50); }
@media (min-width: 640px) { .nav-links { display: flex; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 0.95rem;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue .btn-arrow { background: #fff; color: var(--blue-700); }
.btn-blue:hover { background: var(--blue-800); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.link-underline {
  color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; display: inline-flex; align-items: center; min-height: 44px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 1100px);
  padding: calc(84px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 40px max(var(--gutter), env(safe-area-inset-left));
  background:
    radial-gradient(90% 70% at 55% 38%, rgba(55, 138, 221, 0.55), transparent 70%),
    radial-gradient(130% 100% at 50% 30%, var(--blue-600) 0%, var(--blue-700) 55%, var(--blue-800) 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero::after { /* soft studs pattern, very faint */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07;
  background-image: radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-head { display: contents; }
.hero-name {
  position: relative; z-index: 1; width: 100%; min-width: 0;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  color: #fff; line-height: 0.84; letter-spacing: -0.005em;
  margin: 0;
}
.hero-name .line { display: block; width: max-content; white-space: nowrap; }
.hero-name .l1 { font-size: 50vw; }
.hero-name .l2 { font-size: 16.6vw; margin-top: 0.06em; }
.hero-name .ch { display: inline-block; }
.hero-bottom { position: relative; z-index: 2; order: 2; padding-top: 24px; min-width: 0; }
.hero-copy { max-width: 34rem; }
.hero-lead { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 650; line-height: 1.15; color: #fff; margin-bottom: 14px; }
.hero-sub { color: #e2efff; font-size: 1rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 22px; }
.hero-avatar { order: 3; margin: 0; align-self: center; width: min(80vw, 400px, 52svh); }

/* keep this media query in sync with HERO_SIDE in home.js */
@media (min-width: 700px), (orientation: landscape) and (min-width: 560px) {
  /* the avatar stands on the word AUTOMATIONS, right of FLEY */
  .hero-head { display: block; position: relative; }
  .hero-name .l1 { font-size: min(40vh, 30vw); }
  .hero-bottom { margin-top: auto; }
  .hero-avatar {
    position: absolute; right: 2%; top: calc(var(--l1, min(40vh, 30vw)) * -0.42);
    height: calc(var(--l1, min(40vh, 30vw)) * 1.3); width: auto; margin: 0; z-index: 2;
  }
  .hero-avatar .mascot-bob, .hero-avatar .mascot-img { height: 100%; width: auto; }
}
/* portrait tablets: no tall empty gap between the name and the text */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero-bottom { margin-top: clamp(40px, 6vh, 90px); }
}

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-300);
  margin-bottom: 18px;
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.h-display {
  overflow-wrap: anywhere;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 6rem); line-height: 0.92; letter-spacing: 0.005em;
}
.lede { color: var(--muted); max-width: 40rem; font-size: 1.08rem; }
.h-display + .lede { margin-top: 20px; }

/* statement with word-by-word reveal */
.statement p {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.1rem); line-height: 1.18; font-weight: 600;
  letter-spacing: -0.01em; max-width: 22em; margin: 0; color: #fff;
}
.statement .w { transition: opacity 0.25s linear; }
.statement .w.dim { opacity: 0.22; }
.avatar-chip {
  display: inline-block; vertical-align: -0.14em; width: 1.9em; height: 0.95em; margin: 0 0.12em;
  border-radius: 999px; background: var(--blue-700) url("../avatar-head.svg") center / contain no-repeat;
  border: 2px solid var(--blue-300);
}

/* stats */
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 5vw, 56px); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; max-width: 760px; }
.stat:nth-child(2) { justify-self: end; text-align: right; }
.stat:nth-child(3) { margin-left: clamp(0px, 8vw, 120px); }
.stat-num {
  display: block; font-family: var(--display); font-weight: 700; color: var(--blue);
  font-size: clamp(5rem, 3rem + 13vw, 13rem); line-height: 0.85; font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--blue-200);
  border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; white-space: nowrap;
}
.stats .tags { margin-top: clamp(36px, 6vw, 64px); }

/* graph */
.graph-box {
  --graph-c1: #378add; --graph-c2: #7cc4ff; --graph-c3: #4fd1c5;
  --graph-c4: #f6c453; --graph-c5: #f78fb3; --graph-c6: #b5a8ff;
  --graph-edge: #b5d4f4;
  position: relative; height: min(72vh, 680px); margin-top: 36px;
  /* Roblox-style panel: thick light rim and a solid bottom edge */
  border-radius: 26px; overflow: hidden; border: 3px solid rgba(156, 210, 255, 0.55);
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(55, 138, 221, 0.16), transparent 70%),
    radial-gradient(90% 80% at 50% 50%, #0b2342, #050f1f);
  box-shadow: 0 8px 0 #03101f, 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 120px rgba(0, 0, 0, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) { .graph-box { height: min(70vh, 112vw); border-radius: 20px; } }
@media (orientation: landscape) and (max-height: 560px) { .graph-box { height: max(300px, 82vh); } }
.graph-tip {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: rgba(6, 26, 51, 0.92); border: 1px solid var(--line); color: #fff;
  font-size: 0.85rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: opacity 0.15s;
}
.graph-tip.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 18px 0 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.dot-1 { background: #378add; } .dot-2 { background: #7cc4ff; } .dot-3 { background: #4fd1c5; }
.dot-4 { background: #f6c453; } .dot-5 { background: #f78fb3; } .dot-6 { background: #b5a8ff; }
.note { color: var(--muted); font-size: 0.9rem; }

/* explainer video: Roblox-style panel like the graph box */
.video-fig { margin: 36px 0 0; }
.video-frame {
  border-radius: 26px; overflow: hidden; border: 3px solid rgba(156, 210, 255, 0.55); background: #050f1f;
  box-shadow: 0 8px 0 #03101f, 0 30px 80px rgba(0, 0, 0, 0.45);
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #050f1f; }
.video-fig figcaption { margin-top: 14px; }
@media (max-width: 640px) { .video-frame { border-radius: 18px; border-width: 2px; } }

/* how it works */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step); display: block; font: 700 2.6rem/1 var(--display); color: var(--blue); margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* inside: cards with tags */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: var(--blue-200); background: rgba(55, 138, 221, 0.14); border: 1px solid rgba(133, 183, 235, 0.25);
}
.card-icon svg { width: 24px; height: 24px; }
.need-grid { list-style: none; padding: 0; margin: 40px 0 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .need-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.need-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.need-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.need-card p { color: var(--muted); margin: 0; }
.need-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; }
.need-icon svg { width: 32px; height: 32px; }
.need-obsidian { background: linear-gradient(135deg, #7c5cd6, #3f2b8a); }
.need-blender { background: linear-gradient(135deg, #f0883e, #b85512); }
.need-studio { background: linear-gradient(135deg, var(--blue), var(--blue-800)); }
.need-ai { background: linear-gradient(135deg, #4fd1c5, #1f7f86); }
.free {
  font: 700 0.68rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #9ff0c8;
  border: 1px solid rgba(159, 240, 200, 0.45); border-radius: 999px; padding: 4px 7px;
}
.card p { color: var(--muted); margin: 0; }
.card .big { font: 700 clamp(2rem, 1.2rem + 4vw, 3.4rem)/0.95 var(--display); color: var(--blue); overflow-wrap: anywhere; }
.card-wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* preview tiles */
.tiles { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { margin: 0; }
/* preview tiles: Roblox-style panels like the graph box; the renders are transparent and sit on the blue glow */
.tile-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  border: 3px solid rgba(156, 210, 255, 0.55);
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(74, 159, 240, 0.55), transparent 75%),
    radial-gradient(90% 90% at 50% 50%, #1a5aa8, #0b2342);
  box-shadow: 0 6px 0 #03101f, 0 20px 50px rgba(0, 0, 0, 0.4);
}
.tile-frame img { width: 100%; height: 100%; object-fit: contain; }
.tile-wide { grid-column: 1 / -1; }
.tile-wide .tile-frame { aspect-ratio: 16 / 9; }
.tile-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #050f1f; }
/* media protection: an invisible layer over the preview videos takes the clicks (no "save video as"),
   images and videos cannot be dragged or long-pressed out. With reduced motion the videos show controls instead. */
.tile-frame.protect::after { content: ""; position: absolute; inset: 0; z-index: 1; }
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
/* the preview videos also play with reduced motion (owner's wish), so the protection layer stays */
.tile-frame.blur img { filter: blur(6px); transform: scale(1.06); }
.tile-empty {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px;
  color: var(--blue-200); font-weight: 600;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 3px, transparent 4px) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--blue-800), var(--panel));
}
.tile.is-empty .tile-empty { display: grid; }
.tile.is-empty img { display: none; }
.tile figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* vouches */
.vouch-empty {
  margin-top: 36px; border: 1px dashed rgba(181, 212, 244, 0.35); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px); color: var(--muted); max-width: 46rem;
}
.vouch-empty strong { color: #fff; display: block; font-size: 1.15rem; margin-bottom: 6px; }

/* buy */
.buy { background: linear-gradient(180deg, var(--navy), var(--navy-2)); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
@media (max-width: 979px) { .buy-card, .buy-side { max-width: 680px; } }
@media (min-width: 980px) { .buy-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.buy-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(55, 138, 221, 0.22), transparent 60%),
    linear-gradient(180deg, #0f3462, #0a2547);
  color: var(--text); border: 1px solid rgba(133, 183, 235, 0.32); border-radius: 28px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.buy-card a { color: var(--blue-200); font-weight: 600; }
.buy-card a:hover { color: #fff; }
.buy-title { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: #fff; margin: 0; }
.buy-sub { display: block; font: 500 0.85rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--blue-300); margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; flex-wrap: wrap; }
.price-amount { font: 700 clamp(3.6rem, 2.8rem + 3vw, 5rem)/0.9 var(--display); color: #fff; }
.price-note { font-size: 0.95rem; color: var(--blue-200); margin: 0 0 6px; }
.launch {
  display: inline-block; background: #ffe9a8; color: #4a3500; font-weight: 700; font-size: 0.92rem;
  border-radius: 10px; padding: 6px 10px; margin: 6px 0 4px;
}
.key-facts { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; gap: 12px; }
.key-facts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 1rem; color: #fff; }
.key-facts .ico {
  width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--blue-200);
  background: rgba(55, 138, 221, 0.16); border: 1px solid rgba(133, 183, 235, 0.25);
}
.full-details { margin: 14px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.full-details summary {
  cursor: pointer; list-style: none; padding: 14px 30px 14px 0; position: relative; min-height: 48px;
  font-weight: 600; font-size: 0.95rem; color: var(--blue-200);
}
.full-details summary::-webkit-details-marker { display: none; }
.full-details summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.4rem/1 var(--sans); transition: transform 0.2s;
}
.full-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--blue-50); }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.facts li::before { content: "✓"; color: var(--blue-300); font-weight: 800; }
.facts b { color: #fff; }
.consent { border: 0; padding: 18px 0 0; margin: 14px 0 0; display: grid; gap: 14px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; cursor: pointer; color: var(--blue-50); }
.check { padding: 10px 0; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.req { color: #ffb4a8; font-weight: 700; }
.form-error { color: #ffb4a8; font-weight: 600; min-height: 1.4em; margin: 4px 0 0; }
.buy-card .btn { width: 100%; justify-content: space-between; margin-top: 8px; font-size: 1.05rem; }
.buy-card .small { color: var(--blue-300); }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.pay-note .ico { margin-top: 1px; }
.small { font-size: 0.85rem; color: var(--muted); }
.buy-side { position: relative; }
.buy-side h3 { font-size: 1.15rem; margin: 0 0 10px; }
.buy-mascot { width: min(46vw, 230px); margin: 0 auto 8px; }
@media (min-width: 980px) { .buy-mascot { width: 270px; margin: -40px 0 6px -36px; } }
.buy-side ul { margin: 0 0 26px; padding-left: 1.1em; color: var(--muted); }
.buy-side li { margin-bottom: 6px; }
.buy-side li b { color: var(--text); }
/* inline links inside sentences: bigger touch area without changing the layout */
.buy-side li a, .check a, .faq-list .answer a, .facts a, .page .note a { padding: 0.7em 0; }

/* faq */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-weight: 650; font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 400 1.8rem/1 var(--sans); color: var(--blue-300); transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { color: var(--muted); padding: 0 0 22px; max-width: 46rem; }

/* about */
.about-grid { display: grid; gap: 28px; align-items: center; margin-top: 30px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 280px 1fr; } }
.about-img {
  border-radius: 28px; background: radial-gradient(circle at 50% 60%, var(--blue-600), var(--blue-800));
  padding: 0 18px 10px; max-width: 280px; border: 1px solid var(--line); overflow: hidden;
}
.about-text p { font-size: 1.15rem; color: var(--blue-50); max-width: 40rem; }
.about-text .h-display { margin-bottom: 22px; }

/* final call to action */
.cta {
  background: radial-gradient(120% 120% at 50% 0%, var(--blue-600), var(--blue-800));
  text-align: center; padding: clamp(80px, 12vw, 160px) var(--gutter); overflow: hidden;
}
.cta-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(4.2rem, 1rem + 15vw, 15rem); line-height: 0.84; margin: 0 0 40px;
}
.cta-title span { display: block; }
.cta-mascot { width: clamp(150px, 20vw, 250px); margin: -40px auto -6px; }

/* footer */
.footer { background: #04122a; color: var(--muted); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; padding: 0; margin: 0 0 18px; }
.footer-links a { color: var(--blue-200); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer p { margin: 0 0 8px; max-width: 60rem; }
.footer-brand { font: 700 1.4rem/1 var(--display); color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- sub pages */
.page { padding: calc(110px + env(safe-area-inset-top)) 0 80px; min-height: 70vh; overflow-wrap: break-word; hyphens: auto; }
.page .field input, .page .field textarea { color-scheme: light; }
.page h1 { font: 700 clamp(2.6rem, 1.6rem + 4vw, 4.6rem)/0.95 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.page h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.page h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.page p, .page li { color: var(--blue-50); max-width: 46rem; }
.page ul, .page ol { padding-left: 1.2em; }
.page .dl-steps, .page .downloads { padding-left: 0; }
.page code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.placeholder {
  background: rgba(255, 210, 90, 0.14); border: 1px dashed #f6c453; color: #ffe7a6;
  border-radius: 8px; padding: 1px 6px;
}
.replace-box {
  border: 2px dashed #f6c453; border-radius: 16px; padding: 16px 18px; margin: 18px 0 26px;
  color: #ffe7a6; background: rgba(246, 196, 83, 0.08); max-width: 46rem;
}
.replace-box strong { color: #fff3cf; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); max-width: 46rem; margin: 22px 0; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { color: var(--muted); font-size: 0.88rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid transparent;
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field input, .field textarea, .prompt-text { font-size: max(16px, 1em); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-weight: 600; }
.status.ok { color: #9ff0c8; }
.status.err { color: var(--danger); }
.downloads { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.downloads a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  text-decoration: none;
}
.downloads a:hover { border-color: var(--blue); }
.downloads .size { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.model-form { white-space: pre-line; font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem; color: var(--blue-50); }
.lic h2 { font-size: 1.25rem; }

.btn-small { padding: 6px 6px 6px 16px; font-size: 0.92rem; min-height: 44px; }
.btn-small .btn-arrow { width: 30px; height: 30px; }
.preview-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 46rem;
  background: rgba(246, 196, 83, 0.1); border: 1px dashed #f6c453; border-radius: 16px; padding: 12px 16px; color: #ffe7a6;
}
.dl-success { max-width: 52rem; margin-top: 10px; outline: none; }
.demo-banner {
  background: rgba(246, 196, 83, 0.12); border: 1px dashed #f6c453; color: #ffe7a6;
  border-radius: 14px; padding: 10px 14px; font-weight: 600;
}
.dl-version { color: var(--blue-300); font-size: 0.9em; font-weight: 500; }
.dl-steps { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; gap: 12px; counter-reset: none; }
@media (min-width: 760px) { .dl-steps { grid-template-columns: repeat(3, 1fr); } }
.dl-steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px; max-width: none;
}
.dl-steps h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.dl-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.dl-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font: 700 1.5rem/1 var(--display); color: #061a33; background: var(--blue-300);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.dl-subtitle { margin-top: 30px !important; }
.downloads { counter-reset: dl; }
.downloads li { counter-increment: dl; max-width: none; }
.downloads a { min-height: 56px; }
.downloads .dl-name { display: flex; gap: 10px; align-items: baseline; }
.downloads .dl-name::before { content: counter(dl) "."; color: var(--blue-300); font-weight: 700; }
.prompt-box {
  margin: 30px 0 20px; padding: clamp(18px, 3vw, 26px); border-radius: 24px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(55, 138, 221, 0.2), transparent 60%), linear-gradient(180deg, #0f3462, #0a2547);
  border: 1px solid rgba(133, 183, 235, 0.32); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.prompt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prompt-head h3 { margin: 0 !important; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.copy-btn { padding: 10px 20px; min-height: 52px; font-size: 1.05rem; }
.copy-btn .ico { width: 22px; height: 22px; }
.prompt-text {
  display: block; width: 100%; min-height: 260px; max-height: 60vh; resize: vertical;
  font: 0.86rem/1.5 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; color: var(--blue-50);
  background: #04122a; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color-scheme: dark;
}
.prompt-text:focus { outline: 3px solid var(--blue); outline-offset: 2px; }

.page-lead { font-size: 1.15rem; color: var(--blue-50); max-width: 40rem; }
.panel-title { margin-top: 0 !important; }
.token-state { max-width: 46rem; margin: 10px 0 20px; }
.state-box {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; max-width: 46rem; margin: 22px 0;
  padding: clamp(18px, 3vw, 26px); border-radius: 22px; border: 1px solid rgba(133, 183, 235, 0.32);
  background: radial-gradient(120% 80% at 0% 0%, rgba(55, 138, 221, 0.2), transparent 60%), linear-gradient(180deg, #0f3462, #0a2547);
}
.state-box > * { margin: 0; }
.ready-box { display: block; }
.ready-box p { margin: 0 0 12px; }
.state-title { font-weight: 700; font-size: 1.2rem; color: #fff; }
.btn-xl { font-size: 1.2rem; padding: 12px 12px 12px 26px; min-height: 60px; }
.btn-xl .btn-arrow { width: 40px; height: 40px; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 4px solid rgba(181, 212, 244, 0.25); border-top-color: var(--blue-300);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.steps-title { margin-top: 36px !important; }

/* ---------------------------------------------------------------- animations */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].from-top { transform: translateY(-28px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero-name .ch { opacity: 0; }
.js .hero-name.is-play .ch { opacity: 1; animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.js .hero-avatar { animation: float-in 1.1s var(--ease) 0.35s both; }
@keyframes rise { from { transform: translateY(0.6em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float-in { from { transform: translateY(40px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-name .ch { opacity: 1; }
  body::before, body::after { animation: none; }
  .statement .w.dim { opacity: 1; }
}
