:root {
  --bg: #0c0e14;
  --bg-elevated: #141820;
  --surface: #1a1f2a;
  --surface-muted: #232936;
  --border: #2e3544;
  --text: #f4f5f7;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --primary: #3b82f6;
  --primary-pressed: #2563eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.logo-banner {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}
.logo-banner img {
  width: min(280px, 72vw);
  height: auto;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-link:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0 32px;
}
.kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
}
.lede {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 520px;
  margin: 0 0 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button-primary {
  background: var(--primary);
  color: var(--text);
}
.button-primary:hover { background: var(--primary-pressed); }
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 16px;
  min-height: 420px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.phone-screen {
  background: linear-gradient(180deg, #141820 0%, #0c0e14 100%);
  border-radius: 22px;
  min-height: 388px;
  padding: 24px 20px;
}
.fake-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1f2a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.day {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #232936;
  color: var(--text-muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.day.ready { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.day.maybe { background: rgba(245, 158, 11, 0.18); color: var(--warning); }

.section { padding: 48px 0; }
.section h2 {
  font-size: 32px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.section p.intro {
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-secondary); }

.join-card {
  max-width: 520px;
  margin: 28px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
}
.join-card .emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  font-size: 28px;
}
.join-card h1 { font-size: 32px; }
.code {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 20px 0;
}
.muted { color: var(--text-muted); font-size: 14px; }
.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 800px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .phone { display: none; }
  .hero { padding-top: 20px; }
  .logo-banner { padding-top: 20px; }
}
