:root {
  --bg: #0a0a0a;
  --bg-card: #121212;
  --bg-elevated: #1e1e1e;
  --text: #f5f5f5;
  --text-muted: #9e9e9e;
  --accent-x: #00e5ff;
  --accent-o: #ff4081;
  --accent-gold: #ffd600;
  --border: #2a2a2a;
  --max-width: 1040px;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 229, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 64, 129, 0.1), transparent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent-o);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-muted);
}

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

.nav-cta {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-x), #00b8d4);
  color: #0a0a0a !important;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  background: var(--gradient-hero);
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero {
    text-align: left;
  }
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 64, 129, 0.12);
  border: 1px solid rgba(255, 64, 129, 0.35);
  color: var(--accent-o);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-x), var(--accent-o));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s, filter 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-x), #00b8d4);
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.25);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-trust span::before {
  content: "✓ ";
  color: var(--accent-x);
  font-weight: 700;
}

/* Phone mockup */
.phone-mockup {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 1rem;
  max-width: 280px;
  margin-inline: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 1;
}

.mini-cell {
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
}

.mini-cell.x { color: var(--accent-x); }
.mini-cell.o { color: var(--accent-o); }

.phone-caption {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Stats strip ── */
.stats-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-x);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Sections ── */
section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-o);
}

.lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
  max-width: 40rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card .highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-x), var(--accent-o));
  color: #0a0a0a;
  font-weight: 900;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials / quotes */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.quote-card {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-o);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}

.quote-card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
}

.quote-card cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* CTA band */
.cta-band {
  padding: 3rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 64, 129, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin-inline: auto;
}

/* Developers section (collapsed feel) */
.dev-section {
  background: #080808;
}

.dev-section .lead {
  font-size: 0.95rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge.android { border-color: #3ddc84; color: #3ddc84; }
.badge.kotlin { border-color: #7f52ff; color: #b388ff; }
.badge.compose { border-color: var(--accent-x); color: var(--accent-x); }
.badge.firebase { border-color: #ffca28; color: #ffca28; }

section h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent-x);
}

.diagram,
.tree {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b0b0b0;
  white-space: pre;
  margin: 0;
}

.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.stack-table th,
.stack-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.stack-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.decision-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.decision-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.openspec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.openspec-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.openspec-list code {
  font-family: var(--font-mono);
  color: var(--accent-o);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-x);
}

.color-x { color: var(--accent-x); }
.color-o { color: var(--accent-o); }

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}
