/* ==============================
   FiveGrams — Premium Dark Theme
   Inspired by Whoop/AG1 aesthetic
   ============================== */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --accent: #c8ff00;
  --accent-dim: #a3cc00;
  --accent-glow: rgba(200, 255, 0, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #2a2a2a;
  --border-light: #333333;
  --success: #00cc88;
  --error: #ff4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

img { max-width: 100%; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 720px; }

/* ======== NAV ======== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-five { color: var(--text-primary); }
.logo-grams { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); opacity: 1; }

.nav-cta-btn {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta-btn:hover {
  background: var(--accent-dim);
  opacity: 1;
  transform: translateY(-1px);
}

/* ======== HERO ======== */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-highlight {
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.7;
}
.hero-sub-bold {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 40px;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ======== BUTTONS ======== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--accent-dim);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 18px 48px; font-size: 18px; }
.btn-full { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
  opacity: 1;
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ======== SECTIONS ======== */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-secondary);
}
.section-accent {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d0d0d 100%);
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ======== CRISIS GRID ======== */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.crisis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}
.crisis-card:hover { border-color: var(--border-light); }
.crisis-stat {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.crisis-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.crisis-source {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ======== FEATURES GRID ======== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-desc a { color: var(--accent); }

/* ======== STEPS ======== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 40px 24px;
}
.step-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======== PREORDER BOX ======== */
.preorder-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
}
.preorder-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.preorder-price {
  margin: 24px 0;
}
.price-amount {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.price-period {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 400;
}
.preorder-perks {
  list-style: none;
  margin-bottom: 24px;
}
.preorder-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.preorder-perks li svg {
  color: var(--accent);
  flex-shrink: 0;
}
.preorder-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======== FORMS ======== */
.preorder-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent);
}
.form-group input::placeholder {
  color: var(--text-muted);
}

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--error); }

/* ======== WAITLIST ======== */
.waitlist-form {
  max-width: 500px;
  margin: 0 auto;
}
.waitlist-row {
  display: flex;
  gap: 12px;
}
.waitlist-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-input::placeholder { color: var(--text-muted); }

.waitlist-count {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ======== FAQ ======== */
.faq-list {
  margin-top: 40px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
}
details[open] .faq-q::after {
  content: '-';
}
.faq-q::-webkit-details-marker { display: none; }
.faq-a {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======== FOOTER ======== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .nav-link { display: none; }

  .hero { padding: 120px 20px 60px; }
  .hero-sub { font-size: 16px; }

  .crisis-grid { grid-template-columns: 1fr; gap: 16px; }
  .crisis-stat { font-size: 36px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .step-card { padding: 24px 16px; }
  .step-num { font-size: 40px; }

  .preorder-box {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
  .price-amount { font-size: 44px; }
  .preorder-form-wrap { padding: 28px; }

  .waitlist-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .btn-lg { padding: 16px 32px; font-size: 16px; }
  .section-title { font-size: 24px; }
  .preorder-title { font-size: 28px; }
  .price-amount { font-size: 36px; }
}

/* ======== ANIMATIONS ======== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero-title, .hero-sub, .hero-cta-group {
  animation: fadeUp 0.6s ease-out both;
}
.hero-title { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-cta-group { animation-delay: 0.3s; }
