/* ─────────────────────────────────────────────────────────────────
   E5B.ME — Shared Stylesheet
   Design: Refined dark-mode minimal. Sharp grid, strong type,
           restrained motion. Premium without noise.
   ───────────────────────────────────────────────────────────────── */

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

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:          #080a0e;
  --surface:     #0f1218;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.18);
  --text:        #f0f2f7;
  --text-muted:  rgba(240,242,247,0.38);
  --accent:      #e8f0fe;
  --accent-glow: rgba(232,240,254,0.10);
  --btn-bg:      rgba(255,255,255,0.04);
  --btn-hover:   rgba(255,255,255,0.09);
  --btn-active:  rgba(255,255,255,0.06);
  --radius:      14px;
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-x: hidden;

  /* Subtle grid texture */
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Page wrapper ────────────────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.6s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeUp 0.6s var(--ease-out) 0.05s both;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Button stack ────────────────────────────────────────────────── */
.btn-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Core button ─────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 24px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s var(--ease-spring),
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  animation: fadeUp 0.5s var(--ease-out) both;
}

/* Staggered entrance for button stack */
.btn:nth-child(1) { animation-delay: 0.10s; }
.btn:nth-child(2) { animation-delay: 0.18s; }
.btn:nth-child(3) { animation-delay: 0.26s; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
}

.btn:hover::before { opacity: 1; }

.btn:active {
  background: var(--btn-active);
  transform: translateY(0px) scale(0.99);
  box-shadow: none;
  transition-duration: 0.08s;
}

/* Button content */
.btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.btn-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.btn-sublabel {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.btn-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-spring);
}

.btn:hover .btn-arrow {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translate(2px, -2px);
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── Single-page variant (large centered) ────────────────────────── */
.btn.btn-solo {
  min-height: 96px;
  justify-content: center;
  padding: 0 32px;
  gap: 16px;
  border-radius: 18px;
}

.btn.btn-solo .btn-content {
  text-align: center;
  align-items: center;
}

.btn.btn-solo .btn-label {
  font-size: 22px;
}

/* ── Countdown badge ─────────────────────────────────────────────── */
.countdown-wrap {
  margin-top: 28px;
  text-align: center;
  animation: fadeUp 0.5s var(--ease-out) 0.3s both;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  min-width: 12px;
  display: inline-block;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 11px;
  color: rgba(240,242,247,0.18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
  animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

/* ── Focus visible (accessibility) ──────────────────────────────── */
.btn:focus-visible {
  outline: 2px solid rgba(232,240,254,0.5);
  outline-offset: 3px;
}

/* ── Mobile fine-tuning ──────────────────────────────────────────── */
@media (max-width: 400px) {
  body { padding: 20px 16px; }
  .page-title { font-size: 28px; }
  .btn { min-height: 68px; padding: 0 20px; }
  .btn-label { font-size: 16px; }
}

/* ── Prefers reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
