/* ============================================================================
   Cameo Image Studio — cameoimage.com

   Light editorial theme in the Google Antigravity idiom: a white page, one very
   large type scale, hairline rules instead of boxes, pill controls, and colour
   that appears only where it means something — the caret that types the
   headline, and the aurora behind a product shot.

   One stylesheet, no framework.
   ========================================================================== */

:root {
  /* ink */
  --ink:        #121317;   /* headlines, primary text          */
  --ink-2:      #5b5f66;   /* body copy, second headline line  */
  --ink-3:      #8a8f97;   /* captions, meta, disabled         */

  /* ground */
  --bg:         #ffffff;
  --bg-alt:     #fafafb;   /* whisper band, gives sections rhythm */
  --surface:    #f4f5f7;   /* chips, ghost buttons, inputs     */
  --surface-2:  #eceef1;
  --dark:       #0c0d10;   /* the AI band and the closing band */

  /* rules */
  --line:       #e3e5e9;
  --line-soft:  #eef0f3;

  /* the only four hues on the page */
  --g-blue:     #4285f4;
  --g-red:      #ea4335;
  --g-yellow:   #fbbc04;
  --g-green:    #34a853;

  --ok:         #1e8e3e;
  --warn:       #b06000;
  --danger:     #c5221f;

  --font: "Google Sans Flex", "Google Sans", "Noto Sans", -apple-system,
          BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP",
          "Malgun Gothic", "Microsoft YaHei", "Leelawadee UI", system-ui, sans-serif;
  --mono: "Google Sans Code", ui-monospace, "Cascadia Code", Consolas, monospace;

  --pill:     999px;
  --r-lg:     28px;
  --r:        20px;
  --r-sm:     12px;
  --maxw:     1320px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scripts that need a little more room to breathe. */
html[lang="th"] body { line-height: 1.85; }
html[lang="ja"] body,
html[lang="ko"] body,
html[lang="zh-Hans"] body { line-height: 1.78; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 450; letter-spacing: -0.012em; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 40px); }
.container.narrow { max-width: 900px; }

.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-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--pill); font-weight: 500;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 3px; border-radius: 4px; }

/* ─────────────────────────── header ─────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* The rule only appears once the page has moved — motion.js sets .stuck. */
.site-header.stuck { border-bottom-color: var(--line); }

.nav-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.brand-name { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }

.nav-menu { display: flex; gap: 2px; margin-left: 4px; }
/* nowrap + no shrinking: a bar that does not fit must OVERFLOW, because that is what
   app.js fitNav() measures. Let the links wrap or shrink and the overflow disappears —
   along with the only signal that the language needs the hamburger. */
.nav-menu a {
  color: var(--ink-2); font-size: 0.9rem; font-weight: 400;
  white-space: nowrap; flex: 0 0 auto;
  padding: 7px 12px; border-radius: var(--pill);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-menu a:hover { background: var(--surface); color: var(--ink); }

/* Set by fitNav() when the labels no longer fit — any language, any width. */
.site-header.compact .nav-menu {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; gap: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px clamp(20px, 4.5vw, 40px) 18px;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.35);
}
.site-header.compact .nav-menu.open { display: flex; }
.site-header.compact .nav-menu a { padding: 13px 4px; border-radius: 0; border-top: 1px solid var(--line-soft); }
.site-header.compact .nav-toggle { display: inline-flex; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--surface);
  color: var(--ink-2);
  border: 0;
  border-radius: var(--pill);
  padding: 8px 30px 8px 14px;
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  max-width: 168px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-select:hover { background-color: var(--surface-2); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface); color: var(--ink);
  border: 0; border-radius: var(--pill);
  font-size: 1rem; cursor: pointer;
}

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--pill);
  font-weight: 500; font-size: 0.94rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c2e34; }

.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: #2c2e34; }

.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 9px 16px; font-size: 0.87rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn[aria-disabled="true"], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.win-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-line1 { display: block; }
.btn-line2 { display: block; font-size: 0.76rem; font-weight: 400; opacity: 0.7; margin-top: 1px; }

/* ─────────────────────────── hero ─────────────────────────── */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border-radius: var(--pill); padding: 7px 16px;
  font-size: 0.82rem; color: var(--ink-2);
  margin: 0 0 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 200deg, var(--g-blue), var(--g-green), var(--g-yellow), var(--g-red), var(--g-blue));
}

.hero-title {
  font-size: clamp(2.45rem, 6.2vw, 4.9rem);
  line-height: 1.07;
  margin: 0 0 26px;
  max-width: 18ch;
}
.hero-title .accent { color: var(--ink-2); display: block; }

.hero-sub {
  max-width: 62ch; margin: 0 0 34px;
  font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--ink-2);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-note { max-width: 66ch; margin: 0; font-size: 0.86rem; color: var(--ink-3); }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 24px 4px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat b {
  display: block; font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 450; letter-spacing: -0.02em; line-height: 1.1;
}
.stat span { display: block; font-size: 0.84rem; color: var(--ink-3); margin-top: 8px; }

/* The product shot, lit from behind. */
.hero-visual { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.hero-visual::before {
  content: ''; position: absolute; inset: 2% 3% 6%;
  background:
    radial-gradient(42% 62% at 16% 28%, rgba(66, 133, 244, 0.55), transparent 70%),
    radial-gradient(38% 58% at 80% 20%, rgba(234, 67, 53, 0.38), transparent 70%),
    radial-gradient(46% 62% at 64% 86%, rgba(251, 188, 4, 0.42), transparent 70%),
    radial-gradient(42% 58% at 26% 84%, rgba(52, 168, 83, 0.40), transparent 70%);
  filter: blur(54px);
  border-radius: 50%;
}
.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -50px rgba(16, 22, 40, 0.5);
}

/* The hero shot is one landscape capture of the editor - catalogue on the left, graph on
   the right. Cropping it cut nodes off, so the frame carries the screenshot's own ratio. */
.hero-visual .frame { aspect-ratio: 1564 / 1026; }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ─────────────────────────── marquee ─────────────────────────── */

.marquee {
  overflow: hidden;
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* The animation waits for motion.js to duplicate the chips — half a track is what
   the -50% loop needs, and a single copy would visibly jump. */
.marquee-track { display: flex; gap: 10px; width: max-content; }
.marquee-track.looping { animation: marquee-slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-slide { to { transform: translateX(-50%); } }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 20px;
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.88rem; white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; background: var(--ink-3); }
.chip:nth-child(4n+1) i { background: var(--g-blue); }
.chip:nth-child(4n+2) i { background: var(--g-red); }
.chip:nth-child(4n+3) i { background: var(--g-yellow); }
.chip:nth-child(4n+4) i { background: var(--g-green); }

/* ─────────────────────────── sections ─────────────────────────── */

.section { padding: clamp(64px, 8.5vw, 116px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Two white sections in a row need a rule between them; a whisper band brings its own. */
.section:not(.alt) + .section:not(.alt) { border-top: 1px solid var(--line); }

.section-head { max-width: 46ch; margin: 0 0 clamp(44px, 5vw, 72px); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  line-height: 1.1; margin: 0 0 16px;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.02rem; }
.section-head .contact-direct { margin-top: 14px; font-size: 0.95rem; color: var(--ink-3); }
.contact-direct a { color: var(--ink); font-weight: 500; }

/* ─────────────────────── the AI agent, on black ─────────────────────── */

.agent { background: var(--dark); color: #fff; padding: clamp(72px, 9vw, 132px) 0; position: relative; overflow: hidden; }
.agent::before {
  content: ''; position: absolute; left: 50%; top: -30%;
  width: 130%; aspect-ratio: 1.6; transform: translateX(-50%);
  background:
    radial-gradient(38% 50% at 30% 50%, rgba(66, 133, 244, 0.30), transparent 70%),
    radial-gradient(34% 46% at 68% 44%, rgba(52, 168, 83, 0.20), transparent 70%);
  filter: blur(46px);
}
.agent .container { position: relative; }
.agent .section-head h2 { color: #fff; }
.agent .section-head p { color: rgba(255, 255, 255, 0.62); }
.agent .eyebrow { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.82); }
.agent .tag { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.78); }
.agent .pillar { border-top-color: rgba(255, 255, 255, 0.12); }
.agent .pillar h3 { color: #fff; }
.agent .pillar p { color: rgba(255, 255, 255, 0.66); }
.agent .checks li { color: rgba(255, 255, 255, 0.72); border-top-color: rgba(255, 255, 255, 0.09); }
.agent .checks li::before { background: rgba(255, 255, 255, 0.45); }
.agent .pillar-shot img,
.agent .pillar-shot video { border-color: rgba(255, 255, 255, 0.12); background: #15161b; }
.agent .pillar-shot::before {
  background:
    radial-gradient(48% 62% at 22% 30%, rgba(66, 133, 244, 0.5), transparent 72%),
    radial-gradient(44% 58% at 78% 74%, rgba(52, 168, 83, 0.34), transparent 72%);
}
.agent code { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ─────────────────────────── pillars ─────────────────────────── */

.pillar {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: clamp(44px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.pillar:first-of-type { border-top: 0; padding-top: 0; }
/* Mirrored, the shot has to keep the wide column — otherwise the prose spreads to
   sixteen words a line and the screenshot shrinks to a thumbnail. */
.pillar.reverse { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
.pillar.reverse .pillar-text { order: 2; }

.tag {
  display: inline-block;
  background: var(--surface); color: var(--ink-2);
  border-radius: var(--pill); padding: 5px 14px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.pillar h3 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.14; margin: 0 0 16px; }
.pillar p { color: var(--ink-2); margin: 0 0 22px; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative; padding: 11px 0 11px 22px;
  font-size: 0.93rem; color: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 1.42em;
  width: 8px; height: 1px; background: var(--ink-3);
}

.pillar-shot { position: relative; }
.pillar-shot::before {
  content: ''; position: absolute; inset: 6% 6% 10%;
  background:
    radial-gradient(48% 62% at 22% 30%, rgba(66, 133, 244, 0.34), transparent 72%),
    radial-gradient(44% 58% at 78% 74%, rgba(251, 188, 4, 0.30), transparent 72%);
  filter: blur(46px);
  border-radius: 50%;
}
.pillar-shot img,
.pillar-shot video {
  position: relative; display: block; width: 100%; height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 34px 70px -46px rgba(16, 22, 40, 0.45);
}
/* The mock-ups are composed as squares and every crop cut something off the bottom,
   so beside a column of prose they run at their own proportions. Only the hero, which
   needs a wide shot, takes the scissors to one. */

/* The network designer is two screens - MLP and CNN - and one without the other only
   tells half the sentence in the prose beside it, so the slot stacks them. */
.pillar-shot.stack { display: grid; gap: clamp(12px, 1.6vw, 18px); }

/* ─────────────────────────── recordings ─────────────────────────── */

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: clamp(20px, 3vw, 34px); }
.clip { margin: 0; }
.clip .frame { background: #0c0d10; padding: 0; }
.clip video,
.clip img { display: block; width: 100%; height: auto; background: #0c0d10; }
.clip figcaption { margin-top: 18px; font-size: 0.93rem; color: var(--ink-2); max-width: 54ch; }
.clip figcaption b {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-weight: 500; font-size: 0.82rem;
  color: var(--ink);
}

/* ─────────────────────────── support matrix ─────────────────────────── */

.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.matrix-card h3 {
  font-size: 0.78rem; margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 0.09em; font-weight: 500; color: var(--ink-3);
}
.matrix-card ul { list-style: none; padding: 0; margin: 0; }
.matrix-card li {
  padding: 13px 0; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink);
}

/* ─────────────────────────── download ─────────────────────────── */

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
/* One installer, one card - centred instead of stranded in the left column. */
.dl-grid.single { grid-template-columns: minmax(0, 720px); }
/* Three embedded targets in one row. Same card body as the two library cards above, so
   only the column count changes - and the gap tightens, because three cards of the same
   copy length in the width of two need the extra pixels inside the card, not between. */
.dl-grid.triple { grid-template-columns: repeat(3, 1fr); gap: 20px; }

#download .notice, #embedded .notice { margin-top: 24px; }

/* The library block sits under the installer, in the same section: a rule and a smaller
   heading, so it reads as a second offering rather than a second page. */
.lib-head {
  margin: clamp(56px, 6vw, 88px) 0 28px;
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.lib-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin: 0 0 12px; }
.lib-head p { color: var(--ink-2); margin: 0; max-width: 62ch; }

.dl-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.dl-card.featured { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -50px rgba(16, 22, 40, 0.5); }

.dl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.dl-card-head h3 { font-size: 1.28rem; margin: 0; }

.badge {
  background: var(--ink); color: #fff;
  border-radius: var(--pill); padding: 4px 13px;
  font-size: 0.76rem; font-weight: 500; font-family: var(--mono);
  white-space: nowrap;
}
.badge.alt { background: var(--surface-2); color: var(--ink-2); }
.dl-card.featured .badge.alt { background: var(--surface); }

.dl-card > p { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 24px; }

.dl-meta { display: flex; gap: 38px; flex-wrap: wrap; margin: 0 0 26px; }
.dl-meta div { margin: 0; }
.dl-meta dt { font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.dl-meta dd { margin: 0; font-size: 1.06rem; font-weight: 500; font-family: var(--mono); }

.hash-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.76rem; color: var(--ink-3);
}
.hash-row code {
  flex: 1 1 240px; min-width: 0; background: none; padding: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.74rem; color: var(--ink-2);
}
.copy-btn {
  background: var(--surface-2); color: var(--ink-2);
  border: 0; border-radius: var(--pill);
  padding: 6px 14px; font-size: 0.76rem; font-family: inherit; cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.copy-btn:hover { background: var(--ink); color: #fff; }

.hash-hint { font-size: 0.79rem; color: var(--ink-3); margin: 12px 0 0; }

/* Single-module downloads, folded under each library card. */
.mod-list { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mod-list summary {
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
}
.mod-list summary::-webkit-details-marker { display: none; }
.mod-list summary::before { content: '+'; font-family: var(--mono); color: var(--ink-3); width: 1em; text-align: center; }
.mod-list[open] summary::before { content: '\2212'; }
.mod-list summary:hover { color: var(--ink); }
.mod-hint { font-size: 0.79rem; color: var(--ink-3); margin: 10px 0 6px; }
.mod-items { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.mod-items li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  padding: 7px 0; border-top: 1px solid var(--line-soft);
}
.mod-items a { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); }
.mod-items a:hover { text-decoration: underline; }
.mod-size { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.mod-deps { flex-basis: 100%; font-size: 0.74rem; color: var(--ink-3); }

.notice {
  border-radius: var(--r);
  padding: 18px 22px;
  font-size: 0.91rem;
  background: var(--surface);
  color: var(--ink-2);
}
.section.alt .notice { background: #fff; border: 1px solid var(--line); }
.notice b { color: var(--ink); font-weight: 500; }
.notice.warn { background: #fff8e8; color: #6d4b09; border: 0; }
.notice.warn b { color: var(--warn); }
.notice.ok { background: #e9f6ed; color: #1a5c2e; border: 0; }
.notice.ok b { color: var(--ok); }
.notice.err { background: #fdecea; color: #8c1d18; border: 0; }
.notice.err b { color: var(--danger); }
.notice code { white-space: normal; word-break: break-all; background: rgba(0, 0, 0, 0.05); }

/* ─────────────────────────── form ─────────────────────────── */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.span2 { grid-column: 1 / -1; }

.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; font-family: inherit; font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus {
  border-color: var(--ink); outline: none;
  box-shadow: 0 0 0 3px rgba(18, 19, 23, 0.07);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field small { font-size: 0.79rem; color: var(--ink-3); }

.form-foot { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.privacy { font-size: 0.79rem; color: var(--ink-3); margin: 0; flex: 1 1 260px; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* A download whose URL is not published yet must not look like a live link. */
.btn.is-pending { background: var(--surface-2); color: var(--ink-3); cursor: default; }
.btn.is-pending:hover { background: var(--surface-2); }

#key-result { margin-top: 24px; }

/* ─────────────────────────── tables ─────────────────────────── */

.table-wrap { overflow-x: auto; }

.specs { width: 100%; border-collapse: collapse; min-width: 660px; }
.specs th, .specs td { padding: 18px 24px 18px 0; text-align: left; font-size: 0.94rem; border-top: 1px solid var(--line); vertical-align: top; }
.specs thead th {
  border-top: 0; border-bottom: 1px solid var(--ink); padding-bottom: 12px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 500; color: var(--ink-3);
}
.specs tbody th { font-weight: 450; color: var(--ink); width: 230px; }
.specs td { color: var(--ink-2); }

/* ─────────────────────────── faq ─────────────────────────── */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 22px 0; cursor: pointer; font-weight: 450; font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--ink-3); font-size: 1.5rem; font-weight: 300; flex-shrink: 0; line-height: 1;
  transition: color 0.2s ease;
}
.faq details[open] summary::after { content: '\2212'; color: var(--ink); }
.faq summary:hover { color: var(--ink-2); }
.faq p { margin: 0; padding: 0 0 24px; color: var(--ink-2); font-size: 0.96rem; max-width: 74ch; }

/* ─────────────────────────── closing band ─────────────────────────── */

.cta { padding: 0 0 clamp(64px, 8vw, 110px); }
.cta-inner {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--dark);
  color: #fff;
  padding: clamp(56px, 8vw, 108px) clamp(28px, 5vw, 76px);
  text-align: center;
}
/* A quiet starfield, drawn rather than downloaded. */
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 24%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 72% 16%, rgba(140, 175, 255, 0.6), transparent),
    radial-gradient(1px 1px at 41% 68%, rgba(255, 255, 255, 0.42), transparent),
    radial-gradient(1.4px 1.4px at 86% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(160, 190, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 58% 88%, rgba(255, 255, 255, 0.35), transparent);
  background-size: 240px 200px;
}
.cta-inner::after {
  content: ''; position: absolute; left: 50%; top: 118%;
  width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(66, 133, 244, 0.42), transparent 58%);
  filter: blur(28px);
}
.cta-body { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; color: #fff; }
.cta p { margin: 0 auto 34px; max-width: 54ch; color: rgba(255, 255, 255, 0.66); font-size: 1.02rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #e9eaee; }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ─────────────────────────── footer ─────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 64px) 0 28px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-note { color: var(--ink-3); font-size: 0.89rem; margin: 14px 0 0; max-width: 42ch; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--ink-2); font-size: 0.9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--ink-3);
}
.footer-credits {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin: 12px 0 0; color: var(--ink-3);
}
.footer-credits strong { color: var(--ink-2); font-weight: 500; }
.footer-credits a { color: var(--ink-2); }
.footer-credits a:hover { color: var(--ink); }

/* ─────────────────────────── motion ─────────────────────────── */

/* Scoped to .js so a page with scripting off never hides its own content. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0ms),
              transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0ms);
}

/* The headline types itself in, one character at a time, behind a caret that
   carries the only four colours on the page.

   The caret is an ::after on whichever character was revealed last, never an element
   in the flow: an inline box that moved through the line would re-wrap the words it
   passed, and the whole headline would twitch on every frame. */
.typing .w { display: inline-block; white-space: pre; }
.typing .ch { opacity: 0; position: relative; }
.typing .ch.on { opacity: 1; }
.typing .ch.cursor::after {
  content: ''; position: absolute;
  right: -0.1em; top: 0.1em; bottom: 0.12em;
  width: 0.055em; border-radius: 2px;
  background: linear-gradient(180deg, var(--g-blue), var(--g-red) 34%, var(--g-yellow) 67%, var(--g-green));
  transition: opacity 0.45s ease;
}
.typing.typed .ch.cursor::after { opacity: 0; }

/* ─────────────────────────── responsive ─────────────────────────── */

@media (max-width: 1000px) {
  .pillar, .pillar.reverse { grid-template-columns: 1fr; gap: 32px; }
  .pillar.reverse .pillar-text { order: 0; }
  .matrix { grid-template-columns: 1fr; gap: 34px; }
  .dl-grid, .dl-grid.triple { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .stat { border-top: 1px solid var(--line); padding: 22px 20px 18px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 940px) {
  .nav-menu {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px clamp(20px, 4.5vw, 40px) 18px;
    box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 4px; border-radius: 0; border-top: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 620px) {
  .form { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-title { max-width: none; }
  .brand-name { display: none; }
  .lang-select { max-width: 132px; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .typing .ch { opacity: 1; }
  .typing .ch.cursor::after { display: none; }
}
