/* Design System & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --bg: #090B10;
  --surface: #0F141D;
  --border: #1B2736;
  --text: #F3F8F8;
  --muted: #95A3B3;
  
  /* Navy Tones */
  --navy: #16344E;
  --steel: #1B4C68;
  --ocean: #116298;
  
  /* Accent - Electric Cyan */
  --accent: #14D2F8;
  --accent2: #0CA6DE;
  --ice: #5DF0F7;
  
  /* Effects */
  --error: #EF4444;
  --shadowGlow: 0 0 0 1px rgba(20,210,248,.18), 0 0 40px rgba(20,210,248,.10);
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  
  /* Max Width */
  --max-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  text-align: center;
}

/* Typography */

h1 {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

p {
  margin-bottom: var(--space-md);
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

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

a:hover {
  opacity: 0.8;
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Container */

.container {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.page {
  width: 100%;
}

/* Header & Navigation */

header {
  background-color: rgba(9,11,16,.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  width: min(1200px, 94vw);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

nav a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.cta-button {
  margin-left: auto;
}

/* Brand image sizing (fix overflow and broken icon sizing) */
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Body scroll lock for overlays */
.no-scroll {
  overflow: hidden;
}

/* Mobile menu default (hidden on desktop) */
.mobile-menu {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  height: 40px;
  width: 44px;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--accent2);
}

.menu-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Inter', var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--bg);
  font-weight: 700;
  box-shadow: var(--shadowGlow);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(20,210,248,.3), 0 0 60px rgba(20,210,248,.18);
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: inset var(--shadowGlow);
}

.btn-secondary:hover {
  border-color: var(--ice);
  color: var(--ice);
  box-shadow: 0 0 0 1px rgba(20,210,248,.3), inset 0 0 40px rgba(20,210,248,.05);
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Hero Section */

.hero {
  background: 
    radial-gradient(700px circle at 20% 10%, rgba(20,210,248,.20), transparent 55%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      rgba(20,210,248,.03) 49px,
      rgba(20,210,248,.03) 50px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      rgba(20,210,248,.03) 49px,
      rgba(20,210,248,.03) 50px
    );
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

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

.hero h1 {
  color: var(--text);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-logo {
  max-width: 300px;
  height: auto;
  margin: 0 auto var(--space-xl);
  filter: drop-shadow(0 0 40px rgba(20,210,248,.15));
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */

section {
  padding: 72px var(--space-md);
  text-align: center;
}

section:first-of-type {
  padding-top: 2rem;
}

section.compact {
  padding: 56px var(--space-md);
}

section h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  width: min(760px, 92vw);
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

section > .container > p {
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* Force section headings and lead text to center */
section h2,
section h2 + p,
section .section-lead {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 900px;
  margin: 18px auto 0;
  text-align: left;
}

.card:hover {
  border-color: rgba(20,210,248,.3);
  box-shadow: var(--shadowGlow);
  transform: translateY(-4px);
  background-color: rgba(15,20,29,.8);
}

.card h3 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
  width: 100%;
  max-width: 900px;
  margin: 18px auto 0;
  text-align: left;
}

/* Panels (reusable content blocks) */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadowGlow);
}

.panel-soft {
  background: var(--bg);
  border-color: rgba(20,210,248,.2);
  box-shadow: none;
}

.panel + .panel {
  margin-top: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(20,210,248,.2) 0%, rgba(12,166,222,.1) 100%);
  border: 1px solid rgba(20,210,248,.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* Three Column Grid (e.g., How it Works) */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.step {
  text-align: center;
}

.step h3 {
  margin-bottom: var(--space-md);
}

.step p {
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadowGlow);
}

/* CTA Band */

.cta-band {
  background: linear-gradient(135deg, rgba(20,210,248,.1) 0%, rgba(12,166,222,.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 4rem var(--space-md);
  text-align: center;
  margin-top: 4rem;
  box-shadow: 0 0 40px rgba(20,210,248,.08);
}

.cta-band h2 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-band .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--bg);
}

/* Footer */

footer {
  background-color: var(--navy);
  color: var(--text);
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

footer h4 {
  color: var(--ice);
  margin-bottom: var(--space-md);
}

footer a {
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form Styles */

.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

input,
textarea {
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20,210,248,.15), var(--shadowGlow);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Two Column Layout (for content pages) */


.two-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
}

.two-column-left,
.two-column-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.two-column p {
  text-align: center;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.two-column h3 {
  margin-bottom: var(--space-md);
  color: var(--ice);
}

/* Checklist - primary vertical bullet component */

.checklist,
.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px auto 0;
  width: min(760px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
  color: var(--text);
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.subsection {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
}

.subhead {
  text-align: center;
  margin: 0 0 14px 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.subsection h3 {
  text-align: center;
}

.section-title {
  width: 100%;
  text-align: center;
}

.lead {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

/* Stack layout for single-column storytelling */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

.stack.align-center {
  text-align: center;
}

.stack.align-left {
  text-align: left;
}

.stack.tight {
  gap: var(--space-md);
}

/* Comparison Table */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--bg);
  font-weight: 600;
  color: var(--text);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Utility Classes */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Feature list component (rows: check + label + description) */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-item .icon {
  color: var(--accent);
  font-weight: 900;
  margin-top: 3px;
  flex: 0 0 auto;
}

.feature-item .title {
  font-weight: 800;
  margin-bottom: 6px;
}

.feature-item .desc {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .feature-item { gap: 10px; }
  .feature-item .title { font-size: 1.05rem; }
  .feature-item .desc { font-size: 0.98rem; }
}

/* Responsive */

@media (max-width: 768px) {
    /* Show hamburger button for tablet/phone */
    .menu-toggle {
      display: inline-flex;
      z-index: 300;
    }
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subhead {
    font-size: 1rem;
  }

  /* Hide desktop nav in mobile view; use overlay */
  .nav-links { display: none; }

  /* Full-screen mobile menu overlay */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9,11,16,.92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
  }

  .mobile-menu.open {
    pointer-events: auto;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu .panel{
    width: min(420px, 92vw);
    max-height: 90vh;
    text-align: center;
    display:flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .mobile-menu a{
    font-size: 1.15rem;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
  }

  .mobile-menu a:hover{ background: rgba(20,210,248,.08); }

  .mobile-menu .cta{
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 999px;
    font-weight: 700;
  }

  .cta-button {
    margin-left: 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  footer .container {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
  /* Keep header compact on mobile */
  header {
    padding: var(--space-xs) 0;
  }

  .header-content {
    flex-direction: row;
    gap: var(--space-sm);
  }

  .logo {
    font-size: 1.1rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: var(--space-xs) var(--space-sm);
  }

  /* Show hamburger button */
  .menu-toggle {
    display: inline-flex;
    z-index: 300;
  }

  /* Mobile overlay styles are defined for <=768px */
}
