@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --bg: #181B1C;
  --bg-elevated: #1D2122;
  --surface: #222628;
  --surface-light: #2E3335;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --ink: #EFF2F1;
  --muted: #828B8F;
  --muted-dark: #5F6669;
  --action: #2BD98A;
  --action-dark: #22B06F;
  --loss: #FF6E6E;
  --gold: #F5D97A;
  --on-action: #04120C;
  --on-gold: #3A2A00;
  --radius: 12px;
  --radius-lg: 20px;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-width: 1120px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Subtle depth — avoids flat black while staying on-brand */
body.page-shell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(43, 217, 138, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(245, 217, 122, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(43, 217, 138, 0.05), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}

.section--alt {
  background: rgba(29, 33, 34, 0.55);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.page-glow {
  position: relative;
}

.page-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(43, 217, 138, 0.07), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.page-glow > * { position: relative; z-index: 1; }

a { color: inherit; }

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(24, 27, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--action);
  color: var(--on-action);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-admin {
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-admin:hover { color: var(--ink); border-color: var(--action); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.lang-switcher button {
  padding: 0.28rem 0.45rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lang-switcher button.active {
  background: var(--action);
  color: var(--on-action);
}

.lang-switcher button:hover:not(.active) { color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.82rem; }
  .lang-switcher button { padding: 0.22rem 0.35rem; font-size: 0.6rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-admin { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--action);
  color: var(--on-action);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-store {
  min-width: 180px;
}

.btn-store--apple {
  background: var(--ink);
  color: var(--bg);
}

.btn-store--google {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

/* TYPOGRAPHY */
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.page-hero {
  margin-top: var(--nav-height);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* GRID / CARDS */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.feature-card {
  background: rgba(34, 38, 40, 0.85);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(43, 217, 138, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-light);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-icon--action { background: rgba(43, 217, 138, 0.15); }
.feature-icon--gold { background: rgba(245, 217, 122, 0.15); }

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.badge-live {
  background: rgba(43, 217, 138, 0.15);
  color: var(--action);
  border: 1px solid rgba(43, 217, 138, 0.35);
}

.badge-gold {
  background: rgba(245, 217, 122, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 217, 122, 0.35);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

/* SPOTLIGHT */
.spotlight {
  background: rgba(34, 38, 40, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 3px solid var(--action);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.spotlight h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.spotlight p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

/* STATS STRIP */
.stats-strip {
  padding: 3rem 1.5rem;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}

.stat-item {
  background: rgba(34, 38, 40, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}

.stat-number--accent { color: var(--action); }
.stat-number--gold { color: var(--gold); }

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* CTA */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background: rgba(29, 33, 34, 0.5);
  border-top: 1px solid var(--hairline);
}

.cta-section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-elevated);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-section a:hover { color: var(--ink); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--muted-dark);
  font-size: 0.8rem;
}

/* LEGAL PAGES */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.legal-content h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-content ul { padding-left: 1.25rem; }

/* INVITE PAGE */
.invite-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.invite-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.invite-code {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--gold);
  padding: 0.75rem 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
}
