/* CSS Variables */
:root {
  --bg: #0f1115;
  --fg: #eaf2ff;
  --muted: #a1b3c7;
  --cobalt: #4f7cff;
  --card: #151a25;
  --border: #283246;
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --font-primary: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f9ff;
    --fg: #0e1422;
    --muted: #4a5a70;
    --card: #ffffff;
    --border: #dbe4f3;
  }
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 32px);
}

.section {
  padding-block: clamp(40px, 6vw, 96px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--fg) 0%, var(--cobalt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.nav-logo {
  color: var(--cobalt);
  flex-shrink: 0;
}

.nav-wordmark {
  font-size: 1.125rem;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link:focus {
  color: var(--fg);
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover, .nav-toggle:focus {
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
  }
  
  .nav-menu.nav-menu--open {
    display: flex;
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
  }
  
  .nav-cta {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  .nav-content {
    position: relative;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.btn--primary {
  background: var(--cobalt);
  color: white;
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn--primary:hover, .btn--primary:focus {
  background: color-mix(in srgb, var(--cobalt) 90%, white);
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn--ghost:hover, .btn--ghost:focus {
  background: var(--card);
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.btn--large {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* Cards & Grid */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  border-color: color-mix(in srgb, var(--cobalt) 50%, var(--border));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.card-text {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Hero */
.hero {
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--cobalt) 10%, var(--bg)) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--fg) 0%, var(--cobalt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.trust-strip span {
  position: relative;
  padding: 0 1rem;
}

.trust-strip span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -0.75rem;
  color: var(--border);
}

/* Why NQ Section */
.why-nq {
  background: color-mix(in srgb, var(--card) 30%, var(--bg));
}

.specs-list, .hours-list {
  list-style: none;
  margin: 0;
}

.specs-list li, .hours-list li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.structure-primer {
  margin-top: 3rem;
}

.structure-primer h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--fg);
}

.structure-primer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--fg);
}

.structure-primer ul {
  list-style: none;
  margin: 0;
}

.structure-primer li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.session-context {
  margin-top: 2rem;
}

.session-context h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--fg);
}

.timeline {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--muted);
}

.risk-realities {
  margin-top: 2rem;
}

/* Event Risk */
.event-risk {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-high {
  background: color-mix(in srgb, var(--cobalt) 25%, var(--card));
  border-color: color-mix(in srgb, var(--cobalt) 50%, var(--border));
  color: var(--cobalt);
}

.impact-med {
  background: color-mix(in srgb, orange 20%, var(--card));
  border-color: color-mix(in srgb, orange 50%, var(--border));
  color: orange;
}

.impact-low {
  background: color-mix(in srgb, gray 20%, var(--card));
  border-color: color-mix(in srgb, gray 50%, var(--border));
  color: gray;
}

.risk-table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.risk-table th, .risk-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.risk-table th {
  background: var(--card);
  font-weight: 600;
  color: var(--fg);
}

.risk-table td {
  color: var(--muted);
}

/* Demo */
.demo {
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--card) 50%, var(--bg)) 100%);
}

.tv-wrap {
  height: 560px;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 1rem;
}

.caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0;
  text-align: center;
}

.gif-demo {
  text-align: center;
  margin-top: 1.5rem;
}

.demo-gif {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Community */
.community {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.community-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.community-features {
  list-style: none;
  margin: 0 0 2rem 0;
  text-align: left;
}

.community-features li {
  margin-bottom: 1rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.community-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cobalt);
  font-weight: bold;
}

/* Pricing */
.pricing {
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--cobalt) 5%, var(--bg)) 100%);
}

.price-row {
  margin: 0.75rem 0 1rem;
  display: flex;
  justify-content: center;
}

.toggle {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--card);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.toggle:hover, .toggle:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cobalt) 20%, transparent);
}

.toggle[aria-checked="true"] {
  background: var(--cobalt);
  color: white;
  border-color: var(--cobalt);
}

.big-price {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--cobalt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-includes {
  margin: 1rem 0 2rem 0;
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.plan-includes li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.plan-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cobalt);
  font-weight: bold;
}

.riskbox {
  border: 2px solid var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 10%, var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--card);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  position: relative;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: color-mix(in srgb, var(--cobalt) 5%, var(--card));
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--cobalt);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 30%, var(--card));
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
  display: block;
  margin-bottom: 1rem;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover, .footer-link:focus {
  color: var(--cobalt);
}

.legal-section {
  background: var(--bg);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .trust-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .trust-strip span:not(:last-child)::after {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    justify-content: flex-start;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: clamp(12px, 3vw, 20px);
  }
  
  .section {
    padding-block: clamp(30px, 8vw, 60px);
  }
  
  .card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
  }
  
  .btn--large {
    padding: 1rem 1.25rem;
  }
}