/**
 * THE WHEEL V4 - Shared Styles
 * Extracted from homepage (index-full.html) - the design reference
 * All pages link to this file for consistent shell: header, nav, hero, CTA, footer, responsive
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
  --midnight-primary: #1e1b4b;
  --midnight-secondary: #312e81;
  --midnight-tertiary: #3730a3;
  --midnight-light: #4f46e5;
  --amber-primary: #f59e0b;
  --amber-secondary: #d97706;
  --amber-tertiary: #b45309;
  --amber-light: #fbbf24;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --success: #10b981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   RESET & BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  padding: var(--space-2) var(--space-3);
  padding-top: calc(var(--space-2) + var(--safe-area-top));
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.logo svg {
  width: 40px;
  height: 40px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.2s;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--slate-900); }
}
.nav-link.active { color: var(--amber-secondary); }
.nav-link.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.nav-link-highlight { 
  color: var(--amber-secondary) !important; 
  font-weight: 600;
}
.nav-link-highlight:hover { 
  color: var(--amber-tertiary) !important; 
}
.nav-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--slate-400);
  margin-left: 2px;
  vertical-align: super;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  transition: color 0.2s;
}
@media (hover: hover) {
  .nav-dropdown-toggle:hover { color: var(--slate-900); }
  .nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
  .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
}
.nav-dropdown-toggle.active { color: var(--amber-secondary); }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  margin-top: 8px;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--slate-50); color: var(--slate-900); }
.nav-dropdown-menu a.active { color: var(--amber-secondary); }

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  color: var(--slate-700);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 200;
  padding: var(--space-3);
  padding-top: calc(var(--space-3) + var(--safe-area-top));
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.mobile-nav-close {
  background: none;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  color: var(--slate-700);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-nav-link.active { color: var(--amber-secondary); }
.mobile-nav-highlight { 
  color: var(--amber-secondary) !important; 
  font-weight: 600;
}
.mobile-nav-cta {
  margin-top: auto;
  padding-bottom: var(--safe-area-bottom);
  padding-top: var(--space-4);
}
.mobile-nav-section { margin-top: var(--space-2); }
.mobile-nav-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
  padding: var(--space-2) 0;
}
.mobile-nav-section-items {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-2);
}
.mobile-nav-section-items .mobile-nav-link {
  font-size: 16px;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--slate-100);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-secondary) 0%, var(--amber-tertiary) 100%);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.btn-secondary {
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}
.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}
.btn-large { padding: var(--space-2) var(--space-4); font-size: 16px; }
.btn-full { width: 100%; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--midnight-primary) 0%, var(--midnight-secondary) 50%, var(--midnight-tertiary) 100%);
  padding: var(--space-8) var(--space-3) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-2);
  letter-spacing: -2px;
  line-height: 1.1;
}
.hero h1 span { color: var(--amber-light); }
.hero-subtitle {
  font-size: 20px;
  color: var(--slate-300);
  margin-bottom: var(--space-3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}

/* ========================================
   MAIN / SECTIONS
   ======================================== */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-3) var(--space-8);
}
.section { margin-bottom: var(--space-8); }
.section-header {
  text-align: center;
  margin-bottom: var(--space-3);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-1);
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-1);
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   WAITLIST FORMS
   ======================================== */
/* Hero waitlist (dark background) */
.waitlist-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 450px;
  margin: 0 auto;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  transition: all 0.2s;
}
.waitlist-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--amber-light);
  background: rgba(255, 255, 255, 0.15);
}
.waitlist-form button {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--amber-secondary) 0%, var(--amber-tertiary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}
.waitlist-subtext {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 4px;
  text-align: center;
}
.hero .waitlist-subtext { color: rgba(255, 255, 255, 0.5); }

/* Beta expectations link */
.beta-expectations-link {
  display: inline-block;
  font-size: 13px;
  color: var(--slate-500);
  text-decoration: none;
  margin-top: var(--space-1);
  transition: color 0.2s;
}
.beta-expectations-link:hover {
  color: var(--amber-secondary);
  text-decoration: underline;
}
.hero .beta-expectations-link {
  color: rgba(255, 255, 255, 0.6);
}
.hero .beta-expectations-link:hover {
  color: var(--amber-light);
}

/* CTA waitlist (light background) */
.cta-waitlist-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 450px;
  margin: 0 auto;
}
.cta-waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: white;
  color: var(--slate-900);
  font-family: inherit;
  transition: all 0.2s;
}
.cta-waitlist-form input::placeholder { color: var(--slate-400); }
.cta-waitlist-form input:focus {
  outline: none;
  border-color: var(--amber-secondary);
  background: white;
}
.cta-waitlist-form button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--amber-secondary), var(--amber-tertiary));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Subscribe form (lighter styling for secondary actions) */
.cta-subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.cta-subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  font-size: 15px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: white;
  color: var(--slate-900);
  font-family: inherit;
  transition: all 0.2s;
}
.cta-subscribe-form input::placeholder { color: var(--slate-400); }
.cta-subscribe-form input:focus {
  outline: none;
  border-color: var(--slate-600);
  background: white;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}
.cta-subscribe-form button {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  background: var(--slate-600);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-subscribe-form button:hover {
  background: var(--slate-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.25);
}

/* ========================================
   CTA SECTION (transparent, on page bg)
   ======================================== */
.cta {
  background: transparent;
  padding: var(--space-8) var(--space-3);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-6); /* Standard spacing above CTA sections */
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-2);
}
.cta p {
  font-size: 18px;
  color: var(--slate-600);
  margin-bottom: var(--space-4);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   DARK FOOTER (from homepage)
   ======================================== */
.footer {
  background: var(--slate-900);
  padding: 48px 24px 32px;
  padding-bottom: calc(32px + var(--safe-area-bottom));
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-brand-col p {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 14px;
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col-links a:hover { color: white; }
.footer-col-links a.footer-cta-link {
  color: var(--amber-light);
  font-weight: 500;
}
.footer-col-links a.footer-cta-link:hover { color: var(--amber-primary); }
.footer-bottom-bar {
  border-top: 1px solid var(--slate-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-bar p {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
}

/* ========================================
   INFO ICON TOOLTIP
   Design System: Small superscript info icon with standard hover tooltip
   ======================================== */
.info-icon {
  font-size: 9px;
  font-weight: 600;
  color: var(--amber-secondary);
  cursor: help;
  vertical-align: super;
  margin-left: 2px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.info-icon:hover {
  opacity: 1;
}

/* ========================================
   INFO ICON MOBILE MODAL
   ======================================== */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.info-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.info-modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  max-width: 520px;
  width: 100%;
  padding: var(--space-3);
  position: relative;
}
.info-modal h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-1);
}
.info-modal p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}
.info-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--slate-100);
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1;
}
.info-modal-close:hover {
  color: var(--slate-900);
}

/* ========================================
   COMING SOON BADGE
   ======================================== */
.coming-soon-badge {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ========================================
   LARGE SCREEN (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .hero h1 { font-size: 60px; letter-spacing: -2.5px; }
  .hero-subtitle { font-size: 22px; }
  .hero { padding: var(--space-10) var(--space-3) var(--space-6); }
  .section-title { font-size: 42px; }
  .cta h2 { font-size: 38px; }
}

/* ========================================
   MOBILE (768px and below)
   ======================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero { padding: var(--space-5) var(--space-3) var(--space-3); }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; margin-bottom: var(--space-4); display: block; }
  .hero-cta {
    margin-top: var(--space-4);
    display: block;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .section-title { font-size: 24px; }
  .cta { padding: var(--space-5) var(--space-3); }
  .cta h2 { font-size: 26px; }
  .waitlist-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-2);
  }
  .waitlist-form input { width: 100%; min-width: unset; max-width: 320px; }
  .waitlist-form button { width: 100%; max-width: 320px; }
  .cta-waitlist-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-2);
  }
  .cta-waitlist-form input { width: 100%; min-width: unset; max-width: 320px; }
  .cta-waitlist-form button { width: 100%; max-width: 320px; }
  /* Subscribe form mobile */
  .cta-subscribe-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-2);
  }
  .cta-subscribe-form input { width: 100%; min-width: unset; max-width: 320px; }
  .cta-subscribe-form button { width: 100%; max-width: 320px; }
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* Extra small */
@media (max-width: 375px) {
  .hero h1 { font-size: 30px; }
}