:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-alt: #131c31;
  --border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red: #ef4444;
  --red-hover: #dc2626;
  --success: #34d399;
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg) 58%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.container.narrow {
  width: min(740px, 92%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.75);
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero & Opening Umbrella Animation */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.umbrella-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.umbrella-svg {
  overflow: visible;
  filter: drop-shadow(0 16px 28px rgba(239, 68, 68, 0.22));
}

/* Canopy starts folded horizontally around center shaft (x=130) and springs open */
.canopy-group {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleX(0.14) scaleY(1.06);
}

.umbrella-stage.animate .canopy-group {
  animation: openUmbrella 1.15s cubic-bezier(0.22, 1.28, 0.36, 1) forwards;
}

@keyframes openUmbrella {
  0% {
    transform: scaleX(0.14) scaleY(1.06);
  }
  65% {
    transform: scaleX(1.04) scaleY(0.98);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}

.replay-btn {
  margin-top: 0.35rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.replay-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca5a5;
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 720px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 580px;
  margin: 0 0 1.85rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--red);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
}

.text-link {
  color: #fca5a5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Featured App Card */
.featured-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.pill-live {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 0.85rem;
}

.featured-card h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.featured-desc {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.check-list strong {
  color: var(--text);
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Simulator Panel */
.simulator-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.sim-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.sim-header p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-row input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
}

.input-row input:focus {
  outline: 2px solid var(--red);
  border-color: transparent;
}

.status-msg {
  min-height: 1.3rem;
  font-size: 0.84rem;
  color: var(--success);
  margin: 0.55rem 0;
}

.status-msg.error {
  color: #f87171;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.chip button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.chip button:hover {
  color: var(--red);
}

.sim-controls {
  display: flex;
  gap: 0.6rem;
}

.results-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.results-grid.hidden {
  display: none;
}

.result-card {
  text-align: left;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.result-card:hover {
  border-color: var(--red);
}

.result-card .giver {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.result-card .match {
  font-size: 0.82rem;
  color: var(--muted);
}

.result-card.revealed .match {
  color: var(--success);
  font-weight: 600;
}

/* Roadmap Cards */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.roadmap-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.roadmap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Privacy Page */
.prose {
  padding: 3rem 0 4rem;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.prose p, .prose li {
  color: var(--muted);
}

.prose a {
  color: #fca5a5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.35rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}