/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #111827;
  --bg-surface: #1F2937;
  --bg-card: #374151;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --accent-green: #10B981;
  --accent-green-dark: #059669;
  --accent-red: #DC2626;
  --accent-yellow: #F59E0B;
  --accent-blue: #3B82F6;
  --border: #4B5563;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 68px;
}

.nav-logo {
  font-size: 1.4rem; font-weight: 700; color: var(--accent-green);
  letter-spacing: -0.5px; flex-shrink: 0;
}
.nav-logo span { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; margin-left: 4px; }

.nav-links {
  display: flex; align-items: center; gap: 24px; list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { display: flex; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; line-height: 1; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-green); }

/* Spacer to push right-side items to the far right */
.nav-spacer { flex: 1; }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background:
    linear-gradient(135deg, #064e3b 0%, #111827 50%, #1e3a5f 100%);
}

.hero h1 { font-size: 4.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.hero h1 .accent { color: var(--accent-green); }
.hero .tagline { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 12px; }
.hero .sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }

.badge-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; font-size: 0.875rem; color: var(--text-secondary);
}
.badge.badge-green {
  background: rgba(16,185,129,0.2); border-color: var(--accent-green); color: var(--text-primary);
}
.badge.badge-yellow {
  background: rgba(245,158,11,0.2); border-color: var(--accent-yellow); color: var(--text-primary);
}
.badge.badge-blue {
  background: rgba(59,130,246,0.2); border-color: var(--accent-blue); color: var(--text-primary);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.badge .dot.green { background: var(--accent-green); }
.badge .dot.yellow { background: var(--accent-yellow); }
.badge .dot.blue { background: var(--accent-blue); }

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--accent-green); color: #fff; }
.btn-primary:hover { background: var(--accent-green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }
.section-alt { background: var(--bg-surface); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-icon.green { background: rgba(16,185,129,0.15); }
.feature-icon.red { background: rgba(220,38,38,0.15); }
.feature-icon.yellow { background: rgba(245,158,11,0.15); }
.feature-icon.blue { background: rgba(59,130,246,0.15); }

.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== TIER SECTION ===== */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }

.tier-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; text-align: center;
}
.tier-card .tier-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.tier-card .tier-badge.t1 { background: rgba(134,239,172,0.2); color: #86efac; }
.tier-card .tier-badge.t2 { background: rgba(16,185,129,0.2); color: #10b981; }
.tier-card .tier-badge.t3 { background: rgba(251,191,36,0.2); color: #fbbf24; }
.tier-card .tier-badge.t4 { background: rgba(245,158,11,0.2); color: #f59e0b; }
.tier-card .tier-badge.t5 { background: rgba(220,38,38,0.2); color: #ef4444; }

.tier-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tier-card .score { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.tier-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== HOW IT WORKS ===== */
.steps { max-width: 700px; margin: 0 auto; }
.step {
  display: flex; gap: 20px; margin-bottom: 40px;
}
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(16,185,129,0.15); color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== CONFIDENCE SCORE ===== */
.score-breakdown {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
}
.score-bar { margin-bottom: 16px; }
.score-bar label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-secondary); }
.score-bar .bar { height: 8px; border-radius: 4px; background: var(--bg-dark); overflow: hidden; }
.score-bar .bar-fill { height: 100%; border-radius: 4px; }
.score-bar .bar-fill.green { background: var(--accent-green); }
.score-bar .bar-fill.blue { background: var(--accent-blue); }
.score-bar .bar-fill.yellow { background: var(--accent-yellow); }

.score-result {
  text-align: center; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.score-result .go { font-size: 1.8rem; font-weight: 800; color: var(--accent-green); }

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(59,130,246,0.1) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px; border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-green); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy a { color: var(--text-muted); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 120px 24px 48px; text-align: center;
  background: var(--bg-surface);
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.page-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== PROSE (privacy, about) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 12px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 8px; }
.prose p { color: var(--text-secondary); margin-bottom: 16px; }
.prose ul { color: var(--text-secondary); margin: 0 0 16px 24px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-primary); }

/* ===== SUPPORT PAGE ===== */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.support-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; text-align: center;
}
.support-card .icon { font-size: 2rem; margin-bottom: 12px; }
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero .tagline { font-size: 1.1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .nav-toggle { display: block; }
  .section { padding: 64px 24px; }
  .section-header h2 { font-size: 1.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

/* ===== EVENTS / JOIN — SHARED UTILITIES ===== */
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }

/* Nav "Events" link highlight */
.nav-links a[href="events.html"].active { color: var(--accent-green); }

/* Join page — ensure nav-links show on desktop */
@media (min-width: 769px) {
  .nav-links { display: flex !important; }
}

/* ===== VIDEO SECTION ===== */
.video-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.video-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.video-text p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }

.video-frame-wrap {
  display: flex;
  justify-content: center;
}

.video-phone-frame {
  width: 260px;
  border-radius: 36px;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  background: #000;
  aspect-ratio: 9/16;
  position: relative;
}

.video-phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .video-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .video-phone-frame { width: 200px; }
  .video-frame-wrap { justify-content: center; }
}

/* ===== HERO ICON ===== */
.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 3px solid var(--accent-green);
  box-shadow: 0 0 32px rgba(16,185,129,0.3);
}

/* ===== NAV DROPDOWN (More menu) ===== */
.nav-links { gap: 24px; }

.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
  font-family: var(--font); display: flex; align-items: center; gap: 5px;
  padding: 0; transition: color 0.2s; line-height: 1;
}
.nav-dropdown-toggle:hover { color: var(--accent-green); }
.nav-dropdown-toggle .chevron {
  font-size: 0.7rem; transition: transform 0.2s; display: inline-block; color: var(--text-secondary);
}
.nav-dropdown.open .chevron { transform: rotate(180deg); }

/* Hidden by default — absolute positioned floating overlay */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 12px; padding: 8px; min-width: 160px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 9999;
}

/* Show only when .open class is present */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block; padding: 16px 20px; border-radius: 8px;
  color: #F9FAFB !important; font-size: 0.95rem; font-weight: 500;
  transition: background 0.15s; white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--accent-green) !important; }

@media (max-width: 768px) {
  .nav-dropdown-menu {
    display: none;
    position: static; transform: none; box-shadow: none;
    border: none; background: none; backdrop-filter: none;
    padding: 0 0 0 12px;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}

/* Nav spacer pushes right items to far right */
.nav-spacer { flex: 1 !important; min-width: 32px; }

/* Keep More dropdown always at far right */
.nav-links .nav-dropdown {
  margin-left: 0;
}
