:root {
  --bg: #0e0d0c;
  --bg-elevated: #171513;
  --bg-raised: #1c1916;
  --border: #2a2724;
  --text-primary: #f2ede8;
  --text-secondary: #a8a29b;
  --ember: #f97316;
  --ember-hover: #fb923c;
  --ember-deep: #c2410c;
  --font-mono: ui-monospace, "SF Mono", Menlo, "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--ember);
  text-decoration: none;
}

a:hover {
  color: var(--ember-hover);
  text-decoration: underline;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--ember);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--ember);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

main.landing {
  max-width: 1040px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero img.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  background: var(--ember);
  color: #100c08;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
}

.button:hover {
  background: var(--ember-hover);
  text-decoration: none;
  color: #100c08;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.button.secondary:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.button.disabled {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: default;
}

/* ---------- eyebrow / mono labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  flex-shrink: 0;
}

/* ---------- device frame ---------- */

.device-frame {
  display: inline-block;
  position: relative;
  padding: 12px 12px 20px;
  line-height: 0;
  background: linear-gradient(160deg, #2b2723, #131110);
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 18px;
  background: #000;
  border-radius: 12px;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ---------- landing hero ---------- */

.hero-section {
  padding: 56px 0 24px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1 1 380px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  margin: 14px 0 16px;
}

.hero-copy .tagline {
  margin-bottom: 0;
  max-width: 46ch;
}

.hero-visual {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 40%, rgba(249, 115, 22, 0.25), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.hero-visual .device-frame {
  width: min(300px, 100%);
}

/* ---------- closing CTA ---------- */

.closing-cta {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.closing-cta .eyebrow {
  justify-content: center;
}

.closing-cta h2 {
  margin: 14px 0 10px;
}

.closing-cta .tagline {
  margin: 0 auto;
}

/* ---------- signup form ---------- */

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 18px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-secondary);
}

.signup-form input[type="email"]:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.signup-form button {
  font: inherit;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.signup-form--center {
  justify-content: center;
}

.signup-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

/* ---------- transmission / terminal card ---------- */

.terminal {
  position: relative;
  overflow: hidden;
  margin: 56px 0;
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.07), transparent 45%),
    var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--ember);
  opacity: 0.6;
}

.corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.terminal-header .rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ember);
}

.terminal-header .rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: rec-pulse 1.7s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .terminal-header .rec::before {
    animation: none;
  }
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.terminal-sender {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.terminal-sender strong {
  color: var(--text-primary);
}

.terminal blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.terminal blockquote + blockquote {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---------- alternating feature rows ---------- */

.feature-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.feature-row:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.feature-copy {
  flex: 1 1 300px;
}

.feature-copy .eyebrow {
  margin-bottom: 12px;
}

.feature-copy h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.feature-copy p {
  margin: 0;
  font-size: 1.02rem;
}

.feature-visual {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
}

.feature-visual .device-frame {
  width: min(240px, 100%);
}

/* ---------- spec strip ---------- */

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 8px 0 48px;
  padding: 26px 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spec-strip strong {
  color: var(--ember);
}

/* ---------- showcase gallery ---------- */

.showcase {
  margin-top: 16px;
}

.showcase h2 {
  margin-top: 0;
  text-align: center;
}

.gallery-wrap {
  position: relative;
}

.gallery-wrap::before,
.gallery-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 40px;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}

.gallery-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.gallery-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.screenshot-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}

.screenshot-row figure {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  scroll-snap-align: start;
}

.screenshot-row .device-frame {
  padding: 8px 8px 16px;
  border-radius: 30px;
}

.screenshot-row .device-frame::before {
  top: 8px;
  width: 54px;
  height: 14px;
  border-radius: 8px;
}

.screenshot-row .device-frame img {
  height: 380px;
  width: auto;
  border-radius: 20px;
}

.screenshot-row figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-item p {
  margin: 0;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer nav {
  margin-top: 10px;
}

footer nav a {
  font-size: 0.85rem;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: -4px;
}

.disclaimer {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-bottom: 32px;
}
