/* ===================================
   TAB-CORE - Professional Design System
   v3.2 - Mobile-First, Hyper-Optimized
   =================================== */

/* --- CSS Variables --- */
:root {
  --bg: #0b0f1a;
  --panel: #111727;
  --panel-hover: #151d30;
  --text: #e8ecf5;
  --text-secondary: #c5cdd8;
  --muted: #8a95a8;
  --accent: #29d3d3;
  --accent-strong: #4ff0e6;
  --accent-subtle: rgba(41, 211, 211, 0.08);
  --border: #1c2437;
  --border-light: #252d42;

  --success: #10b981;
  --warning: #fbbf24;
  --error: #ef4444;
  --info: #0ea5e9;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(41, 211, 211, 0.15);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: radial-gradient(ellipse 120% 100% at 20% 10%, #0f1628, #060913 50%, #04060f);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-strong); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================================
   NAVIGATION - Mobile First
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10, 14, 24, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav .logo {
  flex-shrink: 0;
}

.nav .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Navigation links - horizontal scroll on mobile */
.nav nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  margin: 0 12px;
  padding: 4px 0;
}
.nav nav::-webkit-scrollbar { display: none; }

.nav nav a {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav CTA button */
.nav > .btn.ghost {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041018;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41, 211, 211, 0.35);
}
.btn.outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn.outline:hover {
  background: var(--accent-subtle);
}
.btn.ghost {
  border-color: var(--border);
  color: var(--text-secondary);
  background: transparent;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 40px 16px 32px;
  width: 100%;
}

.hero-text h1 {
  font-size: 1.625rem;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.lead {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}
.cta-row .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
}

/* Pill list */
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}
.pill-list li svg { flex-shrink: 0; }

/* Hero visual */
.hero-visual {
  margin-top: 32px;
}
.board-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border);
}
.board-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   SECTIONS - Full Width
   ======================================== */
.section {
  padding: 48px 16px;
  width: 100%;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: 1.375rem;
  margin: 10px 0 14px;
  line-height: 1.25;
}
.section-head .subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
  display: grid;
  gap: 20px;
  width: 100%;
}
.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

/* ========================================
   CARDS
   ======================================== */
.info-card,
.code-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.3;
}
.info-card h3 svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.info-card p {
  font-size: 14px;
  line-height: 1.65;
}
.info-card ul,
.info-card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.info-card li {
  margin: 6px 0;
  line-height: 1.55;
}

.icon-emoji {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Bullets */
.bullets {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}
.bullets li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.bullets.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}
.bullets.icon-list li::before { display: none; }
.bullets.icon-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.85;
}

/* ========================================
   DIAGRAM
   ======================================== */
.diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.diagram-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  font-size: 14px;
}
.diagram-arrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

/* ========================================
   TABLES
   ======================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
thead { background: rgba(255, 255, 255, 0.03); }
th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-accent { color: var(--accent) !important; }

/* ========================================
   CODE CARDS
   ======================================== */
.code-card {
  margin-top: 32px;
}
.code-card pre {
  background: #0a1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 0;
}
.code-card pre code {
  color: #d7e8ff;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
code {
  background: rgba(41, 211, 211, 0.1);
  border: 1px solid rgba(41, 211, 211, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}

/* ========================================
   FAQ
   ======================================== */
.faq-grid {
  display: grid;
  gap: 16px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.faq-item h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}
.faq-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul, .faq-item ol {
  margin: 10px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.faq-item li { margin: 5px 0; line-height: 1.6; }
.faq-item strong { color: var(--text); }

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 3px rgba(41, 211, 211, 0.1);
}
.timeline-item .dot.done {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 211, 211, 0.3);
}
.timeline-item .content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.timeline-item h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 14px;
}
.timeline-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.contact-info p {
  font-size: 16px;
  margin: 12px 0;
  color: var(--text-secondary);
}
.contact-info a { font-weight: 500; }
.contact-info .cta-row {
  margin-top: 20px;
  justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  background: #070a12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  height: 36px;
  opacity: 0.85;
}
.footer-brand strong {
  color: var(--text);
  font-size: 14px;
}
.footer-brand div {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.foot-links {
  display: flex;
  gap: 20px;
}
.foot-links a {
  color: var(--muted);
  font-size: 14px;
}
.foot-links a:hover { color: var(--text); }

/* ========================================
   COMPARISON HIGHLIGHT
   ======================================== */
.comparison-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.comparison-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  min-width: 140px;
}
.comparison-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(41, 211, 211, 0.2);
}
.comparison-icon {
  margin-bottom: 12px;
}
.comparison-icon svg {
  display: block;
  margin: 0 auto;
}
.comparison-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.comparison-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.comparison-value.bad {
  color: #ef4444;
}
.comparison-value.good {
  color: var(--accent);
}
.comparison-sublabel {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.comparison-vs {
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ========================================
   TABLET & DESKTOP (768px+)
   ======================================== */
@media (min-width: 768px) {
  .nav {
    padding: 16px 24px;
  }
  .nav .logo-img {
    height: 48px;
  }
  .nav nav {
    gap: 4px;
    margin: 0 32px;
    overflow: visible;
  }
  .nav nav a {
    font-size: 14px;
    padding: 8px 16px;
  }
  .nav > .btn.ghost {
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero {
    padding: 64px 32px 48px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 2.5rem;
    margin: 16px 0 20px;
  }
  .eyebrow { font-size: 13px; }
  .lead {
    font-size: 18px;
    max-width: 800px;
  }
  .cta-row {
    flex-direction: row;
    gap: 12px;
  }
  .cta-row .btn {
    width: auto;
    padding: 14px 24px;
  }
  .pill-list li {
    font-size: 14px;
    padding: 10px 16px;
  }
  .hero-visual { margin-top: 48px; }
  .board-image { max-width: 900px; margin: 0 auto; }

  .section {
    padding: 72px 32px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .section.alt {
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  .section.alt > * {
    max-width: 1140px;
    margin: 0 auto;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-head h2 { font-size: 2rem; }
  .section-head .subtitle { font-size: 17px; }

  .grid { gap: 28px; }
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-card, .code-card {
    padding: 24px;
  }
  .info-card h3 { font-size: 1.125rem; }
  .info-card h3 svg { width: 32px; height: 32px; }
  .info-card p { font-size: 15px; }
  .info-card li { font-size: 15px; }
  .bullets li { font-size: 15px; }

  .diagram {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 28px 32px;
    gap: 16px;
    margin-bottom: 40px;
  }
  .diagram-box {
    min-width: 160px;
    padding: 16px 24px;
  }
  .diagram-arrow { padding: 0 12px; }

  .table-wrap {
    margin: 0;
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  table { min-width: 0; }
  th, td { padding: 14px 20px; font-size: 15px; }

  .faq-item { padding: 24px 28px; }
  .faq-item h3 { font-size: 1.125rem; }
  .faq-item p { font-size: 15px; }

  .timeline { padding-left: 32px; }
  .timeline::before { left: 8px; }
  .timeline-item .dot { left: -28px; width: 12px; height: 12px; }
  .timeline-item .content { padding: 20px; }

  .contact-info {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
  }
  .contact-info p { font-size: 18px; }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 28px 32px;
  }
  .footer-brand {
    flex-direction: row;
    gap: 16px;
    text-align: left;
  }
  .footer-logo { height: 44px; }

  .comparison-highlight {
    gap: 48px;
    margin-bottom: 56px;
  }
  .comparison-card {
    padding: 32px 48px;
    min-width: 180px;
  }
  .comparison-value {
    font-size: 3.5rem;
  }
}

/* ========================================
   LARGE DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .nav nav {
    gap: 8px;
  }
  .nav nav a { padding: 10px 18px; }

  .hero-text h1 { font-size: 3rem; }
  .lead { font-size: 1.125rem; }

  .section-head h2 { font-size: 2.25rem; }

  .info-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .info-card:hover h3 svg { transform: scale(1.08); }
  .info-card h3 svg { transition: transform 0.25s; }

  .board-image:hover .board-img { transform: scale(1.02); }
  .board-img { transition: transform 0.35s; }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .nav, .footer { display: none; }
  body { background: white; color: #1a1a1a; }
  .section.alt { background: none; border: none; }
  .info-card, .faq-item { border: 1px solid #ddd; }
}


/* ========================================
   CRITICAL SPACING FIXES v3.7
   ======================================== */

/* Force proper spacing between all sections */
.section {
  margin-bottom: 32px !important;
}

.section-head {
  margin-bottom: 40px !important;
}

.section-head .eyebrow {
  margin-bottom: 12px !important;
  display: block;
}

.section-head h2 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.section-head .subtitle {
  margin-top: 16px !important;
  display: block;
}

/* Diagram spacing */
.diagram {
  margin-top: 0 !important;
  margin-bottom: 40px !important;
  padding: 24px 20px !important;
}

.diagram-box {
  margin: 8px 0 !important;
}

.diagram-arrow {
  margin: 4px 0 !important;
}

/* Grid spacing */
.grid {
  margin-top: 0 !important;
  gap: 24px !important;
}

/* Card spacing */
.info-card {
  margin-bottom: 0 !important;
  padding: 28px !important;
}

.info-card h3 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.info-card p {
  margin-bottom: 12px !important;
}

.info-card p:last-child {
  margin-bottom: 0 !important;
}

.info-card ul {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* Code card spacing */
.code-card {
  margin-top: 40px !important;
  padding: 28px !important;
}

.code-card h3 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.code-card pre {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* Table spacing */
.table-wrap {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

/* Hint text spacing */
.hint {
  margin-top: 16px !important;
  display: block;
}

/* List spacing */
.bullets {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.bullets li {
  margin-bottom: 8px !important;
}

/* Comparison highlight spacing */
.comparison-highlight {
  margin-top: 0 !important;
  margin-bottom: 48px !important;
}

/* FAQ spacing */
.faq-grid {
  gap: 20px !important;
}

.faq-item {
  padding: 28px !important;
}

.faq-item h3 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.faq-item p {
  margin-bottom: 12px !important;
}

.faq-item p:last-child {
  margin-bottom: 0 !important;
}

/* Timeline spacing */
.timeline {
  margin-top: 32px !important;
}

.timeline-item {
  margin-bottom: 28px !important;
}

.timeline-item:last-child {
  margin-bottom: 0 !important;
}

/* Contact info spacing */
.contact-info {
  padding: 32px 24px !important;
}

.contact-info p {
  margin-bottom: 16px !important;
}

.contact-info .cta-row {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}

/* Desktop improvements */
@media (min-width: 768px) {
  .section {
    margin-bottom: 0 !important;
  }

  .section-head {
    margin-bottom: 48px !important;
  }

  .diagram {
    margin-bottom: 48px !important;
    padding: 32px !important;
  }

  .grid {
    gap: 32px !important;
  }

  .code-card {
    margin-top: 48px !important;
  }

  .comparison-highlight {
    margin-bottom: 56px !important;
  }

  .faq-grid {
    gap: 24px !important;
  }

  .timeline {
    margin-top: 40px !important;
  }

  .contact-info {
    padding: 44px !important;
  }
}


/* ========================================
   SPACE & SATELLITES SECTION
   ======================================== */

/* Spotlight section styling */
.section.spotlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(139, 92, 246, 0.03));
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.section.spotlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
  pointer-events: none;
}

.space-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: left;
}

.space-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.space-intro p:last-child {
  margin-bottom: 0;
}

/* Subsection headers */
.subsection-head {
  margin: 56px 0 32px;
  text-align: left;
}

.subsection-head h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 12px;
  font-weight: 700;
}

.subsection-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Space grid */
.space-grid {
  margin-bottom: 48px;
}

/* Compact cards */
.info-card.compact {
  padding: 24px !important;
}

.info-card.compact h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.info-card.compact p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Small icons */
.icon-small {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Comparison table section */
.comparison-table-section {
  margin: 56px 0 48px;
  background: var(--panel);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table-section h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--text);
}

.comparison-table-section > .subtitle {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.comparison-table {
  background: rgba(0, 0, 0, 0.2);
}

.comparison-table th {
  font-size: 12px;
  padding: 12px;
  white-space: normal;
}

.comparison-table td {
  font-size: 13px;
  padding: 14px 12px;
  vertical-align: top;
}

.comparison-table .hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 2px;
}

.comparison-table tbody tr.highlight-row {
  background: rgba(41, 211, 211, 0.05);
  border-top: 1px solid rgba(41, 211, 211, 0.2);
  border-bottom: 1px solid rgba(41, 211, 211, 0.2);
}

.comparison-table-section > .hint {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* Space closing section */
.space-closing {
  margin-top: 56px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 165, 233, 0.15);
  text-align: center;
}

.space-closing h3 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  color: var(--text);
  font-weight: 700;
}

.space-closing p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.space-closing p:last-of-type {
  margin-bottom: 28px;
}

/* Desktop improvements */
@media (min-width: 768px) {
  .space-intro {
    margin-bottom: 52px;
  }

  .space-intro p {
    font-size: 16px;
  }

  .subsection-head {
    margin: 64px 0 40px;
  }

  .subsection-head h3 {
    font-size: 1.75rem;
  }

  .subsection-head p {
    font-size: 16px;
  }

  .space-grid {
    margin-bottom: 56px;
  }

  .info-card.compact {
    padding: 24px !important;
  }

  .info-card.compact h4 {
    font-size: 1rem;
  }

  .info-card.compact p {
    font-size: 14px;
  }

  .comparison-table-section {
    padding: 40px;
    margin: 64px 0 56px;
  }

  .comparison-table th {
    font-size: 13px;
    padding: 14px 16px;
  }

  .comparison-table td {
    font-size: 14px;
    padding: 16px;
  }

  .space-closing {
    padding: 52px 64px;
    margin-top: 64px;
  }

  .space-closing h3 {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .space-closing p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .space-intro p {
    font-size: 17px;
  }

  .subsection-head h3 {
    font-size: 2rem;
  }

  .comparison-table-section h3 {
    font-size: 1.75rem;
  }

  .space-closing h3 {
    font-size: 2.25rem;
  }

  .space-closing p {
    font-size: 17px;
  }
}

/* ========================================
   ROADMAP TO AEROSPACE-GRADE SECTION
   ======================================== */

.roadmap-section {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.02), rgba(59, 130, 246, 0.02));
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.roadmap-intro {
  max-width: 900px;
  margin: 0 auto 48px;
}

.roadmap-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.roadmap-intro p:last-child {
  margin-bottom: 0;
}

/* Roadmap Phases */
.roadmap-phases {
  max-width: 1000px;
  margin: 0 auto 56px;
}

.roadmap-phase {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-phase:last-child {
  margin-bottom: 0;
}

.roadmap-phase:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Phase Header */
.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border-bottom: 1px solid var(--border);
}

.phase-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phase-badge.phase-1 {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.phase-badge.phase-2 {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.phase-badge.phase-3 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
}

.phase-badge.phase-4 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.phase-title {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.phase-title h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.phase-year {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Phase Content */
.phase-content {
  padding: 24px;
}

.phase-content > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.phase-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-bullets > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.phase-bullets > li:last-child {
  margin-bottom: 0;
}

.phase-bullets > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

.phase-bullets strong {
  color: var(--text);
  font-weight: 600;
}

/* Nested bullets */
.nested-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 8px 16px;
}

.nested-bullets li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.nested-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* Timeline Summary */
.roadmap-timeline-summary {
  max-width: 900px;
  margin: 56px auto 56px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.roadmap-timeline-summary h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
}

.timeline-grid {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: rgba(41, 211, 211, 0.03);
  border: 1px solid rgba(41, 211, 211, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.timeline-item:hover {
  background: rgba(41, 211, 211, 0.06);
  border-color: rgba(41, 211, 211, 0.3);
}

.timeline-year {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 100px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Roadmap Closing */
.roadmap-closing {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.roadmap-closing h3 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  color: var(--text);
  font-weight: 700;
}

.roadmap-closing p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
  text-align: left;
}

.roadmap-closing p:last-of-type {
  margin-bottom: 28px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .roadmap-intro {
    margin-bottom: 56px;
  }

  .roadmap-intro p {
    font-size: 16px;
  }

  .roadmap-phases {
    margin-bottom: 64px;
  }

  .roadmap-phase {
    margin-bottom: 36px;
  }

  .phase-header {
    padding: 28px 32px;
    gap: 20px;
  }

  .phase-badge {
    padding: 8px 16px;
    font-size: 13px;
  }

  .phase-title h3 {
    font-size: 1.375rem;
  }

  .phase-year {
    font-size: 15px;
  }

  .phase-content {
    padding: 32px;
  }

  .phase-content > p {
    font-size: 15px;
  }

  .phase-bullets > li {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .nested-bullets li {
    font-size: 14px;
  }

  .roadmap-timeline-summary {
    padding: 40px;
    margin: 64px auto;
  }

  .roadmap-timeline-summary h3 {
    font-size: 1.75rem;
    margin-bottom: 28px;
  }

  .timeline-grid {
    gap: 20px;
  }

  .timeline-item {
    padding: 20px 24px;
  }

  .timeline-year {
    font-size: 1.375rem;
    min-width: 120px;
  }

  .timeline-desc {
    font-size: 15px;
  }

  .roadmap-closing {
    padding: 52px 64px;
  }

  .roadmap-closing h3 {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .roadmap-closing p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .roadmap-intro p {
    font-size: 17px;
  }

  .phase-title h3 {
    font-size: 1.5rem;
  }

  .roadmap-timeline-summary h3 {
    font-size: 2rem;
  }

  .timeline-year {
    font-size: 1.5rem;
  }

  .roadmap-closing h3 {
    font-size: 2.25rem;
  }

  .roadmap-closing p {
    font-size: 17px;
  }
}

/* ========================================
   STICKY HEADER FIX & IMPROVEMENTS
   ======================================== */

/* Ensure nav stays on top always */
.nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 60px;
}

/* Smooth scroll offset for anchors */
html {
  scroll-padding-top: 80px;
}

/* Roadmap section visibility improvements */
.roadmap-section {
  position: relative;
  scroll-margin-top: 80px;
}

.roadmap-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #8b5cf6);
  opacity: 0.5;
}

/* Desktop header adjustments */
@media (min-width: 768px) {
  body {
    padding-top: 80px;
  }

  html {
    scroll-padding-top: 100px;
  }

  .roadmap-section {
    scroll-margin-top: 100px;
  }
}

/* ========================================
   INVESTORS SECTION SPACING
   ======================================== */

#investors .section-head {
  margin-bottom: 48px !important;
}

#investors .section-head .subtitle {
  margin-top: 16px !important;
  max-width: 900px;
}

#investors .grid {
  margin-bottom: 32px !important;
}

#investors .grid:last-of-type {
  margin-bottom: 0 !important;
}

#investors .info-card {
  padding: 32px !important;
}

#investors .info-card h3 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  font-size: 1.25rem;
}

#investors .info-card p {
  margin-bottom: 16px !important;
  line-height: 1.75;
}

#investors .info-card p:last-child {
  margin-bottom: 0 !important;
}

#investors .info-card ul.bullets {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

#investors .info-card .hint {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Desktop improvements */
@media (min-width: 768px) {
  #investors .section-head {
    margin-bottom: 56px !important;
  }

  #investors .grid {
    margin-bottom: 40px !important;
  }

  #investors .info-card {
    padding: 36px !important;
  }

  #investors .info-card h3 {
    font-size: 1.375rem;
    margin-bottom: 24px !important;
  }

  #investors .info-card p {
    font-size: 16px;
    margin-bottom: 18px !important;
  }

  #investors .info-card ul.bullets {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }

  #investors .info-card .hint {
    margin-top: 24px !important;
    padding-top: 20px;
  }
}

@media (min-width: 1024px) {
  #investors .section-head {
    margin-bottom: 64px !important;
  }

  #investors .grid {
    margin-bottom: 48px !important;
  }
}

/* ========================================
   TAB-CORE-T ROADMAP BADGE
   ======================================== */

.phase-badge.phase-t {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
}

/* ========================================
   RESEARCH SECTION & TAGS
   ======================================== */

.card-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

#research .card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

#research .card h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  line-height: 1.3;
}

#research .card p {
  flex-grow: 1;
}

#research .card .cta-row {
  margin-top: auto;
  padding-top: 20px;
}
