@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-subset.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #08080A;
  --ink: #FFFFFF;
  --accent: #D97757;
  --accent2: #F0A07A;
  --on-accent: #0B0B0C;
  --muted: #C4C6CA;
  --muted-dark: #9A9CA0;
  --panel: #26262A;
  --panel-border: rgba(255, 255, 255, 0.40);
  --radius: 28px;
  --gutter: 20px;
  --max: 1120px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(217, 119, 87, 0.24), rgba(217, 119, 87, 0.06) 55%, transparent 80%),
    linear-gradient(180deg, #141415 0, var(--ground) 900px, #040405 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--accent2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter) 36px;
  text-align: center;
}
.hero::before {
  /* the soft cone of light from above */
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 0;
  width: min(760px, 100%); height: 520px;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 154deg, rgba(217, 119, 87, 0.16) 172deg, rgba(240, 160, 122, 0.20) 180deg, rgba(217, 119, 87, 0.16) 188deg, transparent 206deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
}
.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted-dark);
}
.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(44px, 15.5vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.g {
  display: inline-block;
  padding: 0.04em 0.02em 0.1em;
  background-image: linear-gradient(180deg, #FFFFFF 22%, #D9DADC 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.g-accent {
  background-image: linear-gradient(180deg, #F0A07A 22%, #D97757 78%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 28px rgba(217, 119, 87, 0.32));
}
.subtitle {
  margin: 10px auto 0;
  max-width: 22em;
  font-weight: 600;
  font-size: clamp(19px, 5.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: balance;
}
.tool { color: var(--ink); white-space: nowrap; }
.mark {
  display: inline-block;
  width: 0.95em; height: 0.95em;
  margin-right: 0.22em;
  vertical-align: -0.11em;
}
.lede {
  margin: 18px auto 24px;
  max-width: 30em;
  color: var(--muted);
  font-size: 17px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 700 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(217, 119, 87, 0.28);
}
.btn-primary:hover { background: var(--accent2); color: var(--on-accent); }
.btn-wide { display: flex; width: 100%; margin-top: 14px; }
.btn .ico { width: 20px; height: 20px; }

/* Sections */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 36px 0 20px; }
h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 7.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-lede { margin: 0 0 20px; color: var(--muted); }

/* Clips */
.grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
.grid figure { margin: 0; }
.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #141415;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
@supports not (aspect-ratio: 9 / 16) {
  .frame { height: 0; padding-top: 177.78%; }
}
.frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #141415;
}
.grid figcaption {
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-right: 4px;
}

/* Prompt */
.prompt { scroll-margin-top: 12px; }
.prompt:focus { outline: none; }
.picker { margin-bottom: 18px; }
.picker-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-dark);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: #1A1A1D;
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--accent2); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.chip-own { border-style: dashed; }
.chip-own[aria-pressed="true"] { border-style: solid; }
.own { margin-top: 14px; }
.own[hidden] { display: none; }
.own label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.own input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  background: #141415;
  color: var(--ink);
  font: 500 16px/1.3 var(--sans);
}
.own input::placeholder { color: #8E9094; }
.own input:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 14px; }

.card {
  background: var(--panel);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(217, 119, 87, 0.10), 0 0 40px rgba(217, 119, 87, 0.08);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 13px;
}
.card-head .ico { width: 18px; height: 18px; flex: none; color: var(--accent); }
.file { color: var(--ink); }
.meta {
  flex: 1; min-width: 0;
  color: var(--muted-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
  flex: none;
}
.copy .ico { color: var(--on-accent); width: 16px; height: 16px; }
.copy:hover { background: var(--accent2); }
.prompt-text {
  margin: 0;
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #EDEEEF;
  tab-size: 2;
}
.slot {
  background: rgba(217, 119, 87, 0.18);
  color: var(--accent2);
  border-radius: 4px;
  padding: 1px 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.slot.empty { color: #B0B2B6; font-style: normal; }
.status { min-height: 1.5em; margin: 10px 0 0; text-align: center; color: var(--accent2); font-weight: 600; }
.note {
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(38, 38, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 16px;
}
.note p { margin: 0; }
.note strong { color: var(--ink); }

/* Steps */
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 66px;
  background: rgba(38, 38, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 17px;
}
.step-list h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.step-list p { margin: 0 0 8px; color: var(--muted); }
.step-list p:last-child { margin-bottom: 0; }
.tip { font-size: 15px; }
.tip-k {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(240, 160, 122, 0.6);
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 12px;
  vertical-align: 1px;
}
kbd {
  font-family: var(--mono);
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #1A1A1D;
  color: var(--ink);
  white-space: nowrap;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  font-weight: 700;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 26px; font-weight: 600;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
.foot {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted-dark);
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot p { margin: 0; }

/* Larger screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 72px; padding-bottom: 48px; }
  .lede { font-size: 19px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
  .prompt, .steps, .faq { max-width: 820px; margin: 0 auto; }
  section { padding-top: 56px; }
  .prompt-text { font-size: 14.5px; padding: 22px 28px 28px; }
  .btn-wide { display: none; }
  .status { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
