:root {
  --bg: #040a05;
  --panel: #071009;
  --line: #173420;
  --green: #40f878;
  --red: #e5484d;
  --text: #c9d6cc;
  --muted: #7e9184;
  --white: #f2fff4;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 20px 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 10, 5, 0.95) 0%, rgba(7, 18, 10, 0.92) 55%, var(--bg) 100%),
    repeating-linear-gradient(90deg, rgba(64, 248, 120, 0.035) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(64, 248, 120, 0.03) 0 1px, transparent 1px 44px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 18px) 2px 20px;
}

.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.brand em {
  color: var(--green);
  font-style: normal;
  font-weight: 500;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(64, 248, 120, 0.08);
  border: 1px solid rgba(64, 248, 120, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(64, 248, 120, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.hero-copy {
  padding: 8px 0 24px;
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--white);
}

.sub {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--green);
  color: #041007;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(64, 248, 120, 0.35), 0 12px 32px rgba(64, 248, 120, 0.22);
}

.cta:active {
  transform: translateY(1px);
}

.hint {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #020602;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.window-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #233;
}

.window-bar .dot:nth-child(1) { background: #e5484d; }
.window-bar .dot:nth-child(2) { background: #e5a94d; }
.window-bar .dot:nth-child(3) { background: #40f878; }

.window-bar b {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.preview img {
  width: 100%;
  height: auto;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}

.demo {
  display: grid;
  gap: 22px;
  padding: 44px 0 8px;
}

.cloudflare-video {
  position: relative;
  padding-top: 61.25776397515528%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #020602;
}

.cloudflare-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-copy h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.3;
  color: var(--white);
}

.demo-copy > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.demo-copy ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.demo-copy li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.demo-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(64, 248, 120, 0.55);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin: 34px auto 48px;
}

.stats-band > div {
  padding: 16px 8px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats-band > div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--green);
  font-weight: 700;
}

.stats-band span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.features {
  padding: 0 0 56px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2,
.closing h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--white);
}

.section-head > p:last-child,
.closing > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.feature {
  margin-bottom: 38px;
}

.feature-copy {
  padding: 0 2px 14px;
}

.feature-copy .tag {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

.feature-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--white);
}

.feature-copy p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #020602;
  aspect-ratio: 4 / 3;
}

.shot.tall {
  aspect-ratio: 4 / 5;
}

.shot.wide {
  aspect-ratio: 21 / 10;
}

.shot.stats {
  aspect-ratio: 2 / 1;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.tall img {
  object-position: center top;
}

.shot.stats img {
  object-position: center 62%;
}

.closing {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  text-align: center;
}

.closing .cta {
  margin: 22px 0 16px;
  width: 100%;
}

.closing small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px);
  background: rgba(4, 10, 5, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.sticky-cta .cta {
  width: 100%;
  min-height: 48px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 3, 0.82);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 340px;
  padding: 28px 22px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(64, 248, 120, 0.4);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(64, 248, 120, 0.08);
}

.modal-panel .eyebrow {
  margin-bottom: 8px;
}

.modal-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--white);
}

.modal-note {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.modal-close {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #041007;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .hero {
    padding: 0 32px 40px;
  }

  .topbar {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .preview {
    max-width: 780px;
  }

  main {
    max-width: 780px;
  }

  .demo {
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 68px 0 10px;
  }

  .demo-copy h2 {
    font-size: 30px;
  }

  .stats-band {
    margin-top: 26px;
  }

  .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    padding-bottom: 80px;
  }

  .section-head {
    grid-column: 1 / -1;
  }

  .feature {
    margin-bottom: 0;
  }

  .closing {
    padding: 70px 0 60px;
  }

  .closing .cta {
    width: auto;
    min-width: 280px;
  }

  .sticky-cta {
    display: none;
  }

  footer {
    padding: 24px 32px;
  }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 64px;
    align-items: center;
    min-height: 94vh;
    padding: 96px 44px 72px;
  }

  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 44px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: 58px;
  }

  .sub {
    font-size: 18px;
  }

  .preview {
    max-width: none;
  }

  main {
    max-width: 1180px;
  }

  .stats-band strong {
    font-size: 26px;
  }

  .stats-band span {
    font-size: 13px;
  }

  .stats-band > div {
    padding: 26px 14px 22px;
  }

  footer {
    max-width: 1180px;
  }
}

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

  .live i {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
