/* Creative Suite — marketing page. Dark, tool-grade, herdr-calibre. */

:root {
  --bg: #0B0C0E;
  --panel: #121419;
  --panel-2: #171A1F;
  --raised: #1D2127;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #F5F6F7;
  --text-mid: #A6ABB4;
  --text-dim: #8A8F98;
  --photo: #2F80ED;
  --lab: #F2994A;
  --motion: #9B51E0;
  --components: #0B84F3;
  --vector: #EB5757;
  --pad: #27AE60;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(47, 128, 237, 0.32); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { color: var(--text); font-weight: 500; letter-spacing: -0.025em; }
h3 { font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--text-dim); }
h1 {
  font-size: clamp(46px, 7.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.028em; }
.lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 58ch; color: var(--text-mid); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-mid); margin-left: 8px; }
.nav-links a { transition: color 0.18s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-right .ghost { color: var(--text-mid); }
.nav-right .ghost:hover { color: var(--text); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: #0B0C0E;
  font-weight: 600; font-size: 14.5px;
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255, 255, 255, 0.14); }
.pill-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 500; font-size: 14.5px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.pill-ghost:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.04); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
/* herdr-style: copy left, the product bleeding off the right edge */
.hero-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-top { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(44px, 5vw, 68px); }
.link-arrow { color: var(--text-mid); font-size: 14.5px; transition: color 0.18s var(--ease); }
.link-arrow:hover { color: var(--text); }
.stats { display: flex; gap: 40px; margin-top: 18px; }
.stats dt { color: var(--text); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.stats dd { font-size: 12.5px; color: var(--text-dim); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-os { font-family: var(--mono); font-size: 12.5px; color: var(--text-mid); letter-spacing: 0.01em; }
.hero-window { margin-right: min(0px, calc((1120px - 100vw) / 2)); }
.hero-frame {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.hero-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.hero-caption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 6px 0; font-size: 13.5px; color: var(--text-dim); flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 108px 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 44px; }
.section-head p { max-width: 62ch; font-size: clamp(16.5px, 1.5vw, 18.5px); }

/* prompt chips */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 900px; }
.chip {
  display: block;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-mid);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 13px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
  cursor: default;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.03); }
.chip .p { color: var(--text-dim); }
.chip .p::before { content: "❯ "; color: var(--text-dim); }

.anim-frame {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0D0E11;
}
.anim-frame iframe { display: block; width: 100%; aspect-ratio: 21 / 9; border: 0; }
.anim-note { margin-top: 14px; font-size: 14px; color: var(--text-dim); }

/* split rows */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split h2 { margin-bottom: 18px; font-size: clamp(30px, 3.9vw, 46px); }
.split .body p + p { margin-top: 14px; }
.split .aside-note { margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.fact {
  margin-top: 26px; display: flex; flex-direction: column; gap: 10px;
}
.fact div { display: flex; gap: 10px; font-size: 15.5px; color: var(--text-mid); align-items: baseline; }
.fact b { color: var(--text); font-weight: 600; white-space: nowrap; }

/* screenshot frame */
.shot {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2E3238; }
.shot-bar span { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-left: 6px; }
.shot img { width: 100%; }
.shot-cap { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.shot-pair { display: grid; gap: 22px; }

/* terminal / code block */
.term {
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text-mid);
  overflow-x: auto;
}
.term { display: flex; flex-direction: column; gap: 2px; }
.term span { display: block; white-space: pre-wrap; }
.term .cmd { color: var(--text); }
.term .dim { color: var(--text-dim); }
.term .ok { color: var(--pad); }
.term .accent { color: #7FA8F0; display: inline; }

/* workflow strip — a real sequence */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.flow article { background: var(--panel); padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 10px; }
.flow .n { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }
.flow h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.flow p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* app cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.app:hover { border-color: var(--line-2); transform: translateY(-2px); }
.app::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--a); opacity: 0.85;
}
.app .row { display: flex; align-items: center; gap: 12px; }
.app img { width: 40px; height: 40px; border-radius: 10px; }
.app h3 { font-size: 17px; letter-spacing: -0.01em; }
.app .tag { font-size: 14px; color: var(--text-mid); }
.app .meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; align-items: center; }
.app .meta span { border: 1px solid var(--line-2); color: var(--text-mid); border-radius: 999px; padding: 3px 10px; }
.app .meta .in { color: var(--pad); border-color: rgba(39, 174, 96, 0.35); }
.app .meta .pb { display: inline-flex; align-items: center; gap: 7px; padding-right: 12px; }
.app .meta .pb img { width: 15px; height: 15px; border-radius: 4px; }
.apps-note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* harness rows */
.harness { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.harness > div {
  display: grid; grid-template-columns: 200px 1fr 220px; gap: 20px; align-items: center;
  padding: 18px 22px; background: var(--panel);
}
.harness > div + div { border-top: 1px solid var(--line); }
.harness b { color: var(--text); font-weight: 600; font-size: 15.5px; }
.harness span { font-size: 14.5px; color: var(--text-mid); }
.harness .how { font-family: var(--mono); font-size: 11.5px; color: var(--text-mid); }

/* install */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.dl b { color: var(--text); font-size: 16.5px; font-weight: 700; }
.dl p { font-size: 14px; color: var(--text-dim); }
.dl code { font-family: var(--mono); font-size: 12.5px; color: var(--text-mid); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; width: fit-content; }

/* faq */
#faq .section { padding-bottom: 56px; }
#faq details:last-child .a { padding-bottom: 6px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--text); font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: color 0.16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; color: var(--text-dim); font-size: 20px;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 24px; max-width: 72ch; font-size: 15.5px; }

/* footer cta */
.cta {
  border-top: 1px solid var(--line);
  padding: 120px 0 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.cta img { width: 64px; height: 64px; margin-bottom: 6px; }
.cta h2 { max-width: 16ch; }
.cta .pill { font-size: 15px; padding: 11px 24px; }
.cta .term { margin-top: 10px; text-align: left; }

footer { border-top: 1px solid var(--line); padding: 56px 0 60px; font-size: 13.5px; color: var(--text-dim); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot > div { display: flex; flex-direction: column; gap: 8px; }
.foot-brand .brand { margin-bottom: 6px; }
.foot h4 { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.foot a:not(.brand):hover { color: var(--text); }
.fine { margin-top: 44px; font-size: 12.5px; }

/* ---------- README column: sticky TOC + one document ---------- */
.readme { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.toc-file { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc nav { display: flex; flex-direction: column; gap: 9px; }
.toc a { font-size: 13.5px; color: var(--text-dim); display: flex; gap: 12px; transition: color 0.16s var(--ease); }
.toc a span { font-family: var(--mono); font-size: 11px; padding-top: 2px; opacity: 0.7; }
.toc a:hover, .toc a.on { color: var(--text); }
.toc a.on span { color: var(--lab); opacity: 1; }
.docs { display: flex; flex-direction: column; gap: 112px; max-width: 760px; }
.doc { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 16px; }
.doc > h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 4px; }
.doc .hash { font-family: var(--mono); font-weight: 400; color: var(--text-dim); opacity: 0.55; margin-right: 0.4em; font-size: 0.7em; vertical-align: 0.12em; }
.doc figure { margin-top: 12px; }
.doc .term { margin-top: 8px; }
.doc .aside-note { font-size: 14px; color: var(--text-dim); }
.doc .apps { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.doc .harness { margin-top: 12px; }
.doc .harness > div { grid-template-columns: 130px 1fr 190px; }

/* one-line install with copy */
.install-line { display: flex; align-items: center; gap: 12px; max-width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 10px 10px 18px; margin-top: 8px; }
.install-line code { font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; overflow-x: auto; }
.install-line code::before { content: "$ "; color: var(--text-dim); }
.copy-btn { flex: none; font: 500 12.5px var(--font); color: var(--text); background: var(--raised); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 12px; cursor: pointer; }
.copy-btn:hover { border-color: rgba(255, 255, 255, 0.26); }
code.copy { cursor: copy; }
code.copy.copied { color: var(--pad); border-color: rgba(39, 174, 96, 0.4); }

:focus-visible { outline: 2px solid #7FA8F0; outline-offset: 3px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 34px; }
  .flow { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .harness > div { grid-template-columns: 1fr; gap: 6px; }
  .install-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-grid, .readme { grid-template-columns: 1fr; }
  .hero-window { margin-right: 0; }
  .toc { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .apps, .doc .apps { grid-template-columns: 1fr; }
  .doc .harness > div { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .app, .chip { transition: none; }
}

/* ---------- before → after player (.evo) ---------- */
.evo-stage { position: relative; aspect-ratio: 1480 / 920; overflow: hidden; background: var(--panel-2); }
.evo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.evo-stage img.under { opacity: 1; }
.evo-stage img.on { opacity: 1; z-index: 1; animation: evo-wipe 1.1s var(--ease) both; }
.evo-stage .scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 2; opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 18px 4px rgba(127, 168, 240, 0.7); }
.evo-stage .scan.go { animation: evo-scan 1.1s var(--ease) both; }
@keyframes evo-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes evo-scan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.evo-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 12px; }
.evo-steps button { position: relative; text-align: left; font: 13.5px/1.45 var(--font); color: var(--text-dim);
  background: none; border: 0; border-top: 2px solid var(--line-2); padding: 10px 2px 0; cursor: pointer; display: flex; gap: 9px; }
.evo-steps button b { font: 500 11px var(--mono); padding-top: 2px; }
.evo-steps button::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--text); }
.evo-steps button.done::before { width: 100%; }
.evo-steps button.on { color: var(--text); }
.evo-steps button.on::before { animation: evo-fill 4.2s linear both; }
.evo-steps button:hover { color: var(--text-mid); }
@keyframes evo-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .evo-stage img.on, .evo-steps button.on::before { animation: none; }
  .evo-steps button.on::before { width: 100%; }
}
