@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,300&display=swap');

/* ─── Design tokens ─── */
:root {
  --bg:           #f5f3ef;
  --bg-card:      #ffffff;
  --bg-subtle:    #edeae4;
  --fg:           #1a1814;
  --fg-muted:     #6b6760;
  --fg-faint:     #b0ada8;
  --accent:       #2563d4;
  --accent-light: #dce8ff;
  --accent-alt:   #d45025;
  --success-bg:   #d4f0e0;
  --success-fg:   #1a6640;
  --border:       rgba(0,0,0,0.10);
  --shadow:       0 2px 24px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.12);
  --radius:       16px;
  --radius-sm:    8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono:    'DM Mono', 'Fira Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0f0f0d;
    --bg-card:      #1a1916;
    --bg-subtle:    #232220;
    --fg:           #f0ede8;
    --fg-muted:     #8a8780;
    --fg-faint:     #4a4845;
    --accent:       #5b8df5;
    --accent-light: #1a2545;
    --accent-alt:   #f07040;
    --success-bg:   #0f2d1f;
    --success-fg:   #4ade80;
    --border:       rgba(255,255,255,0.08);
    --shadow:       0 2px 24px rgba(0,0,0,0.40);
    --shadow-lg:    0 8px 48px rgba(0,0,0,0.60);
  }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Noise texture overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 0 0 2rem;
  animation: slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.hero h1 .brand { color: var(--accent); }
.hero h1 em { font-style: italic; font-weight: 300; }

.hero-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Card ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 540px;
  width: 100%;
  animation: slide-up 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Status block — Variation B header ─── */
.status-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.status-icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-icon-box svg { width: 33px; height: 33px; }
.status-text-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.15rem;
}
.status-text-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ─── Info grid — 2×2 metric cells ─── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.info-cell {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.info-cell .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 0.3rem;
}
.info-cell .value {
  font-size: 0.88rem;
  color: var(--fg);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── Check circle (Lucide circle-check) ─── */
.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success-bg);
  flex-shrink: 0;
  border: thin solid #426c42;
}
.check-circle svg { width: 15px; height: 15px; }

/* ─── Feature list ─── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}
.feat-icon svg { width: 10px; height: 10px; }

/* ─── Buttons ─── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--bg-subtle); color: var(--fg); }

.pin-icon {
  flex-shrink: 0;
  transform: rotate(30deg);
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--fg-faint);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Footer ─── */
.footer-note {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: var(--fg-faint);
  text-align: center;
  animation: slide-up 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.footer-note a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* ─── Confetti ─── */
.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.confetti-dot {
  position: absolute;
  border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(110vh) rotate(720deg); }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem 1.25rem; }
  .hero { padding-top: 5rem; }
}