:root {
  --bg: #05060f;
  --surface: #0c0e1f;
  --line: #1d2140;
  --text: #e7e9f5;
  --muted: #9aa0bf;
  --violet: #8a7fd6;
  --blue: #cfe3ff;
  --gold: #f4a340;
  --gold-soft: #ffd58a;
  --radius: 14px;
  --max: 1080px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; height: auto; }

/* Header and footer */
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: Sora, sans-serif;
  font-weight: 500;
}
.site-header nav, .site-footer nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--text); }
.site-header .nav-cta { color: var(--gold-soft); }
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 6, 15, 0.92) 0%, rgba(5, 6, 15, 0.55) 55%, rgba(5, 6, 15, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url('/img/neural-field.jpg') center / cover no-repeat;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-copy {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
}
.hero-copy > * { max-width: 580px; }
.eyebrow {
  color: var(--violet);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede { color: #c9cce0; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.link { color: var(--muted); text-decoration: none; }

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a0f02;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(244, 163, 64, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
a.button:hover { color: #1a0f02; transform: translateY(-1px); box-shadow: 0 0 44px rgba(244, 163, 64, 0.55); }
.button-soon {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid rgba(244, 163, 64, 0.5);
  box-shadow: none;
  cursor: default;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.steps p, .feature p { color: var(--muted); margin: 0; }
.step-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--blue);
  box-shadow: 0 0 16px 4px rgba(207, 227, 255, 0.45);
}
.step-dot-gold { background: var(--gold); box-shadow: 0 0 16px 4px rgba(244, 163, 64, 0.5); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split p { color: #c9cce0; }

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature { border-top: 1px solid var(--line); padding-top: 22px; }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }

.get { text-align: center; padding-top: 110px; }
.get p { color: var(--muted); margin-bottom: 28px; }

/* Text pages */
.prose { max-width: 720px; padding-top: 130px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p { color: #c9cce0; }
.muted { color: var(--muted) !important; }
.not-found { min-height: 60vh; }

/* Create page */
.create { max-width: 860px; padding-top: 130px; }
.create .lede { margin-bottom: 36px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.panel h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  color: var(--blue);
  font-size: 0.95rem;
  flex: none;
}
.create label { display: block; color: var(--muted); font-size: 0.9rem; margin: 16px 0 6px; }
.create input:not([type='file']), .create textarea, .create select {
  width: 100%;
  background: #070817;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
}
.create input[type='file'] { color: var(--muted); font: inherit; font-size: 0.9rem; max-width: 100%; }
.create textarea { resize: vertical; min-height: 120px; }
.create input:focus, .create textarea:focus, .create select:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
.create .invalid { border-color: #e0707a !important; }
.create .row { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: end; }
.create button.button { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.create button.button:disabled { opacity: 0.6; cursor: progress; }
.button-quiet {
  background: transparent !important;
  color: var(--blue) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--text); }
.status { min-height: 1.6em; margin: 16px 0 0; color: var(--muted); }
.status-ok { color: #9fe0b5; }
.status-error { color: #f09aa1; }
.status-busy { color: var(--gold-soft); }
.small { font-size: 0.9rem; }
.group { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 22px 0 0; min-width: 0; }
.group-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: end; }
.group-head label { margin-top: 0; }
.group-head .count { font-size: 0.9rem; padding-bottom: 12px; }
.group-head .link-button { padding-bottom: 12px; }
.questions { list-style: none; counter-reset: question; padding: 0; margin: 8px 0 18px; }
.question { counter-increment: question; border-top: 1px solid var(--line); padding: 6px 0 14px; position: relative; }
.question > label::before { content: counter(question) '. '; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.answers label { margin-top: 8px; }
.answers label:first-child { color: var(--gold-soft); }
.question .remove-question { margin-top: 10px; }
.problem { color: #f09aa1; font-size: 0.9rem; margin: 8px 0 0; }
.send-row { display: flex; gap: 14px; max-width: 360px; }
.send-row input { text-transform: uppercase; letter-spacing: 0.2em; font-size: 1.2rem !important; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 820px) {
  .create .row, .answers, .group-head { grid-template-columns: 1fr; }
  .group-head .count, .group-head .link-button { padding-bottom: 0; }
  .panel { padding: 20px 16px; }
  .steps, .features, .split, .gallery { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .hero {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 15, 0.7) 60%, rgba(5, 6, 15, 0.5) 100%),
      url('/img/neural-field.jpg') center / cover no-repeat;
  }
  .site-header nav a:not(.nav-cta) { display: none; }
}

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