:root {
  color-scheme: dark;
  --bg: #020907;
  --surface: #07150f;
  --surface-2: #0b2117;
  --line: rgba(112, 255, 180, 0.2);
  --line-strong: rgba(112, 255, 180, 0.42);
  --text: #f4fff8;
  --muted: #a8bdb0;
  --green: #18ed82;
  --yellow: #ffd45b;
  --blue: #59a8ff;
  --radius: 8px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.is-modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(24, 237, 130, 0.72);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 80;
  translate: 0 -160%;
  border-radius: 6px;
  padding: 10px 14px;
  color: #001a0c;
  background: var(--green);
  font-weight: 850;
}
.skip-link:focus { translate: 0; }

.shell { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; }
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 9, 7, 0.84);
  backdrop-filter: blur(18px);
}
.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand img { display: block; width: 106px; height: 30px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 0.9rem; font-weight: 750; }
.nav-links a:hover { color: var(--text); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(8, 31, 21, 0.82);
  font-weight: 850;
}
.button:hover { border-color: var(--green); background: rgba(15, 64, 39, 0.92); }
.button-primary { border-color: var(--green); color: #001a0c; background: var(--green); }
.button-primary:hover { background: #64ffad; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 0.84rem; }

.hero {
  min-height: min(780px, 94svh);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(1, 8, 6, 0.32) 0%, rgba(1, 8, 6, 0.48) 56%, var(--bg) 100%),
    url("/assets/stadium-night.png");
  background-image:
    linear-gradient(180deg, rgba(1, 8, 6, 0.32) 0%, rgba(1, 8, 6, 0.48) 56%, var(--bg) 100%),
    image-set(
      url("/assets/stadium-night.webp") type("image/webp"),
      url("/assets/stadium-night.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 52%, rgba(24, 237, 130, 0.18), transparent 38%);
}
.hero-content { padding: 128px 0 82px; text-align: center; }
.hero-wordmark {
  width: min(540px, 76vw);
  height: auto;
  filter: drop-shadow(0 16px 42px rgba(0, 0, 0, 0.58));
}
.hero h1 {
  max-width: 900px;
  margin: 30px auto 0;
  font-size: clamp(2.35rem, 6.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-content > p:not(.hero-note) {
  max-width: 690px;
  margin: 22px auto 0;
  color: #c8d8cf;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.55;
}
.hero-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-note { margin: 24px 0 0; color: var(--green); font-size: 0.84rem; font-weight: 800; }

.section { padding: 88px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.section-alt { background: #04100b; }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 36px; }
.section-heading.compact-heading { display: block; }
.how-heading { display: grid; grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 72px); }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
h2 { max-width: 760px; margin: 0; font-size: clamp(1.9rem, 4vw, 3.35rem); line-height: 1.05; }
.section-intro { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }

.how-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
.demo-player { width: min(100%, 360px); margin: 0 auto; }
.demo-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 432 / 854;
  border-radius: 14px;
  background: #010604;
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 8px rgba(0, 0, 0, 0.32);
}
.demo-video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.demo-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #010604; }
.step-stories {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.step-story {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.step-story-copy { width: 100%; }
.step-number { color: var(--green); font-size: 0.78rem; font-weight: 900; }
.step-story h3 { margin: 9px 0 0; font-size: clamp(1.24rem, 2.4vw, 1.72rem); text-wrap: balance; }
.step-story p { max-width: 470px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; text-wrap: pretty; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.feature { min-width: 0; overflow: hidden; background: var(--surface); }
.feature-image { display: block; width: 100%; aspect-ratio: 5 / 3; border-bottom: 1px solid var(--line); object-fit: cover; }
.feature-copy { padding: 20px 22px 22px; }
.feature strong { display: block; }
.feature span { display: block; margin-top: 5px; color: var(--muted); font-size: 0.88rem; }

.feedback-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.feed-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}
.filter:hover,
.filter.is-active { border-color: var(--green); color: var(--green); background: rgba(24, 237, 130, 0.09); }
.feed { display: grid; gap: 10px; }
.post {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(9, 27, 19, 0.98), rgba(5, 17, 12, 0.98));
}
.post.is-local { border-color: var(--line-strong); }
.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 16px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-weight: 900;
}
.vote:hover,
.vote.is-voted { color: var(--green); background: rgba(24, 237, 130, 0.08); }
.vote-arrow { font-size: 1rem; }
.post-body { padding: 16px 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.75rem; }
.avatar { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #002012; background: var(--green); font-weight: 950; }
.tag,
.status { border-radius: 999px; padding: 4px 8px; font-size: 0.67rem; font-weight: 900; text-transform: uppercase; }
.tag { border: 1px solid var(--line); color: var(--muted); }
.status-reviewing { color: var(--yellow); background: rgba(255, 212, 91, 0.1); }
.status-shipped { color: var(--green); background: rgba(24, 237, 130, 0.1); }
.status-planned { color: var(--blue); background: rgba(89, 168, 255, 0.11); }
.post h3 { margin: 11px 0 0; font-size: 1.05rem; }
.post p { margin: 7px 0 0; color: var(--muted); line-height: 1.48; }
.post-foot { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 0.76rem; font-weight: 750; }

.feedback-side { position: sticky; top: 86px; display: grid; gap: 12px; }
.side-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.side-panel h3 { margin: 0; font-size: 1rem; }
.side-panel p { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.prompt-list { display: grid; gap: 8px; margin-top: 14px; }
.prompt {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  font-size: 0.82rem;
}
.prompt:hover { border-color: var(--green); }
.status-key { display: grid; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 0.8rem; }

.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); }
details[open] summary::after { content: "-"; }
details p { max-width: 760px; margin: -8px 0 22px; color: var(--muted); line-height: 1.6; }

.final-cta { padding: 82px 0; text-align: center; background: linear-gradient(180deg, #04100b, #071c12); }
.final-cta h2 { margin-inline: auto; }
.final-cta p:not(.eyebrow) { max-width: 560px; margin: 15px auto 0; color: var(--muted); }
.final-cta .hero-actions { margin-top: 24px; }
footer { padding: 28px 0; color: var(--muted); font-size: 0.8rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}
.modal-card { width: min(520px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; background: #06140e; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h2 { font-size: 1.4rem; }
.modal-copy { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.icon-button { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; }
.form { display: grid; gap: 13px; margin-top: 18px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
input,
textarea,
select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; color: var(--text); background: #0a1d14; }
textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0; border: 1px solid var(--green); border-radius: 999px; padding: 11px 16px; color: #001a0c; background: var(--green); font-weight: 900; white-space: nowrap; }

@media (max-width: 800px) {
  .nav-links a:not(.button) { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 108px; }
  .section-heading { display: block; }
  .how-heading { display: block; }
  .section-intro { margin-top: 16px; }
  .how-showcase { grid-template-columns: 1fr; align-items: start; }
  .demo-player { width: min(100%, 340px); }
  .step-stories { grid-template-rows: none; }
  .step-story { min-height: 150px; padding: 26px 0; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 20px, var(--content)); }
  .section { padding: 62px 0; }
  .hero { min-height: 690px; }
  .hero-wordmark { width: 82vw; }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions .button { width: 100%; }
  .how-showcase { gap: 38px; }
  .demo-player { width: min(100%, 320px); }
  .step-story { min-height: 138px; padding: 22px 0; }
  .step-story h3 { font-size: 1.24rem; }
  .feature-strip,
  .feedback-side { grid-template-columns: 1fr; }
  .feed-toolbar { align-items: flex-start; flex-direction: column; }
  .post { grid-template-columns: 46px minmax(0, 1fr); }
  .post-body { padding: 14px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}

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