/* ============================================
   AEROEDGE WEBSITE - DESIGN SYSTEM
   Matches EM Diagram & Overlay Tool styling
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Colors */
  --orange-primary: #E65C00;
  --orange-dark: #CC4A00;
  --blue-primary: #2980B9;
  --blue-dark: #1a5276;

  /* Backgrounds - matches logo banner exactly */
  --navy-bg: #0B1120;
  --navy-light: #1a2a44;
  --bg-dark: #1a202c;
  --bg-medium: #2d3748;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;

  /* Text */
  --text-light: #f7fafc;
  --text-dark: #1a202c;
  --text-muted: #a0aec0;
  --text-heading: #1a5276;

  /* Borders & Accents */
  --gray-border: #d0d6e1;
  --warning-bg: #fff3cd;
  --warning-text: #856404;
  --success-green: #28a745;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;

  /* Typography */
  --font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 100px;
  --border-radius: 6px;
  --border-radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-sm);
}

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

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-navy {
  background-color: var(--navy-bg);
  color: var(--text-light);
}

.section-navy h2,
.section-navy h3 {
  color: var(--text-light);
}

.section-light {
  background-color: var(--bg-light);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange-primary); }

/* Branded AEROEDGE text */
.brand-text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.brand-text .aero {
  color: var(--blue-primary);
}
.brand-text .edge {
  color: var(--orange-primary);
}
/* Light version for orange backgrounds - keep AERO blue, EDGE white */
.brand-text-light .edge {
  color: var(--text-light);
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--navy-bg);
  z-index: 1000;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--spacing-xs) var(--spacing-md);
}

/* Logo Banner - Full width, centered */
.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--navy-bg);
  padding: var(--spacing-sm) 0;
}

.logo {
  height: 100px;
  width: auto;
  max-width: 100%;
}

/* Text-based logo */
.logo-text-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.logo-text-link:hover {
  text-decoration: none;
}
.logo-wordmark {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 4px;
  line-height: 1;
}
.logo-wordmark .aero {
  background: linear-gradient(180deg, #5DA8E8 0%, #2980B9 40%, #1a5a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-wordmark .edge {
  background: linear-gradient(180deg, #FF8533 0%, #E65C00 40%, #b34700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tagline {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer text logo */
.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: var(--spacing-sm);
}
.footer-logo-text .logo-wordmark {
  font-size: 1.8rem;
  letter-spacing: 3px;
}
.footer-logo-text .logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 5px;
}

/* Navigation bar below logo */
.nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xs);
}

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

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-primary);
  text-decoration: none;
  border-bottom-color: var(--orange-primary);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: var(--navy-bg);
}

/* Video Background Container */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback image when no video */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(10, 22, 40, 0.7) 50%,
    rgba(10, 22, 40, 0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--spacing-lg);
  max-width: 900px;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-title .accent {
  color: var(--orange-primary);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--orange-primary);
  color: var(--text-light);
  border-color: var(--orange-primary);
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--navy-bg);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--orange-primary);
  border-color: var(--orange-primary);
}

.btn-outline:hover {
  background-color: var(--orange-primary);
  color: var(--text-light);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background-color: var(--bg-medium);
  color: var(--text-light);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-light);
}

/* Placeholder for screenshots */
.card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* ---------- Tool Cards (Featured) ---------- */
.tool-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-xl);
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.tool-card.reverse {
  direction: rtl;
}

.tool-card.reverse > * {
  direction: ltr;
}

.tool-card-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* Video placeholder for tool cards */
.tool-video-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.tool-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.tool-video-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.tool-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: var(--spacing-sm);
}

.tool-video-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.tool-card-content h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
}

.tool-card-content .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  margin-bottom: var(--spacing-md);
}

.badge-live {
  background-color: var(--success-green);
  color: var(--text-light);
}

.badge-coming-soon {
  background-color: var(--orange-primary);
  color: var(--text-light);
}

.badge-planned {
  background-color: var(--blue-primary);
  color: var(--text-light);
}

.feature-list {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.feature-list li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: bold;
}

/* ---------- Grid Layouts ---------- */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Ecosystem Section ---------- */
.ecosystem-diagram {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--navy-bg) 0%, var(--navy-light) 100%);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.ecosystem-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background-color: var(--orange-primary);
  border-radius: 50%;
  color: var(--text-light);
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
}

.ecosystem-nodes {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.ecosystem-node {
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  min-width: 150px;
  text-align: center;
}

.ecosystem-node h4 {
  color: var(--text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.ecosystem-node .status {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ---------- Coming Soon Section ---------- */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.coming-soon-card {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--orange-primary);
}

.coming-soon-card h3 {
  color: var(--text-light);
}

/* ---------- About / Credibility Section ---------- */
.credibility-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.credential-badges {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin: var(--spacing-md) 0;
}

.credential-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: var(--navy-bg);
  color: var(--text-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--border-radius);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--navy-bg);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

.footer-links h4 {
  color: var(--text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.footer-links a:hover {
  color: var(--orange-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ---------- Page Headers (Sub-pages) ---------- */
.page-header {
  padding-top: calc(var(--header-height) + var(--spacing-3xl));
  padding-bottom: var(--spacing-2xl);
  background-color: var(--navy-bg);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Video background for page headers */
.page-header-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.95) 0%,
    rgba(10, 22, 40, 0.8) 100%
  );
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 3;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Page Header Badges ---------- */
.page-header .badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
}

.page-header .badge.badge-live {
  background-color: var(--success-green);
  color: var(--text-light);
}

.page-header .badge.badge-dev {
  background-color: var(--orange-primary);
  color: var(--text-light);
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Disclaimer Banner ---------- */
.disclaimer {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  margin: var(--spacing-md) 0;
}

/* ---------- Waitlist Form ---------- */
.waitlist-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: var(--spacing-lg) auto;
}

.waitlist-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: var(--font-size-base);
  border: 2px solid var(--gray-border);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--orange-primary);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  .tool-card {
    grid-template-columns: 1fr;
  }

  .tool-card.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--navy-bg);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .waitlist-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-2xl: 2.5rem;
    --spacing-xl: 2rem;
  }

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

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .tool-card {
    padding: var(--spacing-md);
  }

  .coming-soon-card {
    padding: var(--spacing-md);
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ---------- Problem Cards (Sound Familiar Section) ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.problem-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--orange-primary);
}

.problem-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange-primary), var(--blue-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.problem-card h4 {
  font-size: var(--font-size-base);
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.problem-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.problem-solution {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--orange-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- New Ecosystem Visual ---------- */
.ecosystem-visual {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.ecosystem-center {
  margin-bottom: var(--spacing-xl);
}

.ecosystem-tagline {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  margin-top: var(--spacing-sm);
}

.ecosystem-ring {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.ecosystem-node {
  display: block;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ecosystem-node:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange-primary);
  transform: translateY(-4px);
  text-decoration: none;
}

.ecosystem-node h4 {
  color: var(--text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.ecosystem-node p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.node-status {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: var(--spacing-xs);
}

.node-live .node-status {
  background: var(--success-green);
  color: var(--text-light);
}

.node-coming .node-status {
  background: var(--orange-primary);
  color: var(--text-light);
}

.ecosystem-flow {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

.ecosystem-flow h3 {
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.flow-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.flow-step {
  background: var(--navy-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.flow-arrow {
  color: var(--orange-primary);
  font-weight: bold;
}

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.product-card {
  display: block;
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  border-color: var(--orange-primary);
  transform: translateY(-4px);
  text-decoration: none;
}

.product-card h3 {
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.product-tagline {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.product-highlights {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.product-highlights li {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  padding: var(--spacing-xs) 0;
  padding-left: 1.25rem;
  position: relative;
}

.product-highlights li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--orange-primary);
}

.product-link {
  color: var(--orange-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* ---------- Preview Gallery ---------- */
.preview-gallery {
  text-align: center;
}

.preview-placeholder {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  border: 2px dashed var(--gray-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
}

.preview-coming-badge {
  display: inline-block;
  background: var(--orange-primary);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.preview-placeholder p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* ---------- About Grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.about-content h4 {
  margin-top: var(--spacing-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- Tool Highlight Box ---------- */
.tool-highlight {
  background: linear-gradient(135deg, rgba(230, 92, 0, 0.1), rgba(41, 128, 185, 0.1));
  border-left: 3px solid var(--orange-primary);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tool-highlight strong {
  color: var(--orange-primary);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.tool-highlight ul {
  list-style: none;
  margin: 0;
}

.tool-highlight li {
  padding: var(--spacing-xs) 0;
  padding-left: 1rem;
  position: relative;
  font-size: var(--font-size-sm);
}

.tool-highlight li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--blue-primary);
}

.tool-screenshot {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tool-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.tool-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* ---------- Navigation Dropdowns ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--text-light);
  font-size: var(--font-size-sm);
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--border-radius);
}

.nav-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--orange-primary);
  text-decoration: none;
}

/* ---------- Footer Legal ---------- */
.footer-legal {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.footer-legal a:hover {
  color: var(--orange-primary);
}

.footer-disclaimer {
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
}

.footer-logo {
  height: 60px;
  width: auto;
}

/* ---------- Responsive Additions ---------- */
@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecosystem-ring {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-ring {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding-left: var(--spacing-md);
  }

  .flow-example {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table thead {
  background: var(--navy-bg);
  color: var(--text-light);
}

.comparison-table th {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-base);
}

.comparison-table th:first-child {
  width: 40%;
}

.comparison-table th:nth-child(2) {
  width: 30%;
  text-align: center;
  background: rgba(40, 167, 69, 0.2);
  color: #90EE90;
}

.comparison-table th:nth-child(3) {
  width: 30%;
  text-align: center;
}

.comparison-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--gray-border);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  text-align: center;
}

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

/* AeroEdge column - green success styling */
.comparison-table td.yes {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  font-weight: 500;
}

.comparison-table td.yes .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #28a745;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-right: 8px;
}

.comparison-table td.yes .feature-text {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: #155724;
}

/* Other guys column - red/gray failure styling */
.comparison-table td.no {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.comparison-table td.no .x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #dc3545;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-right: 8px;
}

.comparison-table td.no .feature-text {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: #721c24;
}

/* Partial support - yellow/amber styling */
.comparison-table td.partial {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}

.comparison-table td.partial .partial-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffc107;
  border-radius: 50%;
  color: #856404;
  font-size: 16px;
  font-weight: bold;
  margin-right: 8px;
}

.comparison-table td.partial .feature-text {
  display: block;
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: #856404;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: var(--spacing-sm);
    font-size: var(--font-size-xs);
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: auto;
    min-width: 100px;
  }

  .comparison-table td.yes .check-icon,
  .comparison-table td.no .x-icon,
  .comparison-table td.partial .partial-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
    margin-right: 4px;
  }

  .comparison-table td .feature-text {
    font-size: 10px;
  }
}

/* ============================================
   BETA LAUNCH COMPONENTS
   ============================================ */

/* ---------- Beta Badge (Animated) ---------- */
.badge-beta {
  background: linear-gradient(135deg, var(--orange-primary), #ff7b00);
  color: var(--text-light);
  animation: beta-pulse 2s ease-in-out infinite;
}

@keyframes beta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 92, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(230, 92, 0, 0);
  }
}

/* ---------- Sticky Beta Announcement Banner ---------- */
.beta-banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--orange-primary) 0%, #ff7b00 50%, var(--orange-dark) 100%);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.beta-banner.hidden {
  transform: translateY(-100%);
}

.beta-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.beta-banner-text {
  color: var(--text-light);
  font-weight: 600;
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.beta-banner-text .icon {
  font-size: var(--font-size-xl);
}

.beta-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--text-light);
  color: var(--orange-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.beta-banner-cta:hover {
  background: var(--navy-bg);
  color: var(--text-light);
  text-decoration: none;
  transform: scale(1.05);
}

.beta-banner-dismiss {
  position: absolute;
  right: var(--spacing-md);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: var(--font-size-xl);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: var(--spacing-xs);
  line-height: 1;
}

.beta-banner-dismiss:hover {
  opacity: 1;
}

/* Adjust page content when banner is visible */
.has-beta-banner .page-header {
  padding-top: calc(var(--header-height) + 60px + var(--spacing-3xl));
}

/* ---------- Beta Form Card (matches tool-card style) ---------- */
.beta-form-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.beta-form-card h3 {
  color: var(--text-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.beta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.beta-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.beta-form-group label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-dark);
}

.beta-form-group label .required {
  color: var(--orange-primary);
}

.beta-form-group input,
.beta-form-group textarea,
.beta-select {
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  border: 2px solid var(--gray-border);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-white);
}

.beta-form-group input:focus,
.beta-form-group textarea:focus,
.beta-select:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(230, 92, 0, 0.1);
}

.beta-form-group textarea {
  resize: vertical;
}

.beta-form-message {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
  display: none;
}

.beta-form-message.success {
  display: block;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
}

.beta-form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* ---------- Checkbox Grid ---------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkbox-item:hover {
  background-color: var(--bg-light);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--orange-primary);
}

.checkbox-item span {
  font-size: var(--font-size-sm);
  color: var(--text-dark);
}

/* ---------- Beta Section Responsive ---------- */
@media (max-width: 768px) {
  .beta-form-row {
    grid-template-columns: 1fr;
  }

  .beta-banner {
    padding: var(--spacing-xs) var(--spacing-sm);
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .beta-banner-content {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .beta-banner-text {
    font-size: var(--font-size-sm);
  }

  .beta-banner-dismiss {
    position: static;
    margin-top: var(--spacing-xs);
  }

  .has-beta-banner .page-header {
    padding-top: calc(var(--header-height) + 100px + var(--spacing-3xl));
  }

  .beta-form-row {
    grid-template-columns: 1fr;
  }

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

  .beta-info-panel,
  .beta-form-container {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .beta-signup-section {
    padding: var(--spacing-lg) 0;
  }

  .beta-signup-header h2 {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================
   FEATURE MODALS
   ============================================ */

/* ---------- Modal Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Modal Content Box ---------- */
.modal-content {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 1;
}

.modal-header h3 {
  margin: 0;
  padding-right: var(--spacing-xl);
  color: var(--text-heading);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--spacing-xs);
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--orange-primary);
  transform: scale(1.1);
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-body p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.modal-body h4 {
  color: var(--text-heading);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.modal-body ul {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.modal-body ul li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.modal-body ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: bold;
}

/* ---------- Feature Card Grid ---------- */
.feature-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.feature-modal-card {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.feature-modal-card:hover {
  border-color: var(--orange-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-modal-card h4 {
  color: var(--text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.feature-modal-card p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.feature-modal-card .card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

/* ---------- Body Scroll Lock ---------- */
body.modal-open {
  overflow: hidden;
}

/* ---------- Modal Responsive ---------- */
@media (max-width: 1024px) {
  .feature-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-height: 95vh;
    margin: var(--spacing-sm);
  }

  .modal-header {
    padding: var(--spacing-md);
  }

  .modal-body {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: var(--spacing-xs);
  }

  .feature-modal-card {
    padding: var(--spacing-md);
  }
}

/* ============================================
   ACCESSIBILITY - Fieldset Reset
   ============================================ */
fieldset.beta-form-group {
  border: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
}

fieldset.beta-form-group legend {
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  padding: 0;
}

/* ============================================
   ACCESSIBILITY - Skip Link
   ============================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: var(--orange-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ============================================
   MOBILE DROPDOWN - Click Toggle
   ============================================ */
@media (max-width: 768px) {
  .nav-dropdown .nav-dropdown-content {
    display: none;
  }

  .nav-dropdown.dropdown-open .nav-dropdown-content {
    display: block;
  }
}

/* ─── Ecosystem: 3-column product grid ─── */
.products-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 1024px) {
  .products-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ─── Compact feature lists inside product cards ─── */
.feature-list-compact {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0 0;
}

.feature-list-compact li {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.feature-list-compact li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--orange-primary);
}

/* ─── Ecosystem feature cards (platform highlights) ─── */
.ecosystem-feature-card {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ecosystem-feature-card h4 {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ecosystem-feature-card p {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOGBOOK FEATURES GRID
   ============================================ */

.logbook-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.logbook-feature-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.logbook-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-primary);
  text-decoration: none;
  color: inherit;
}

.logbook-feature-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.logbook-feature-card h4 {
  color: var(--text-heading);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.logbook-feature-card p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .logbook-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logbook-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DASHTWO SECTION
   ============================================ */

.section-dashtwo {
  background: linear-gradient(135deg, #0B1120 0%, #1a2744 50%, #0B1120 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.section-dashtwo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(41, 128, 185, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.section-dashtwo h2,
.section-dashtwo h3 {
  color: var(--text-light);
}

.section-dashtwo p {
  color: rgba(247, 250, 252, 0.85);
}

.dashtwo-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.dashtwo-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.dashtwo-capabilities {
  list-style: none;
  padding: 0;
}

.dashtwo-capabilities li {
  color: rgba(247, 250, 252, 0.85);
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  font-size: var(--font-size-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashtwo-capabilities li:last-child {
  border-bottom: none;
}

.dashtwo-capabilities li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: 700;
}

/* ============================================
   DASHTWO DEMO BUTTONS & MODAL
   ============================================ */

/* Demo question buttons */
.dashtwo-demo-btn {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font-family);
}

.dashtwo-demo-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230, 92, 0, 0.2);
}

.dashtwo-demo-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.dashtwo-demo-question {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  line-height: 1.5;
  font-weight: 500;
}

.dashtwo-demo-cta {
  font-size: var(--font-size-sm);
  color: var(--orange-primary);
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

/* DASHTWO modal overrides */
.dashtwo-modal {
  max-width: 800px;
}

.dashtwo-modal-header {
  background: var(--navy-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashtwo-modal-header h3 {
  color: var(--text-light);
  margin: 0;
}

.dashtwo-modal-header .modal-close {
  color: var(--text-muted);
}

.dashtwo-modal-title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.dashtwo-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.dashtwo-modal-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.dashtwo-modal-body {
  background: var(--bg-light);
  padding: var(--spacing-lg);
}

/* User message bubble */
.dashtwo-user-msg {
  background: var(--blue-primary);
  color: var(--text-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 4px var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-base);
  line-height: 1.6;
  max-width: 85%;
  margin-left: auto;
  font-weight: 500;
}

/* AI response */
.dashtwo-ai-msg {
  background: var(--bg-white);
  border: 1px solid var(--gray-border);
  border-radius: 4px var(--border-radius-lg) var(--border-radius-lg) var(--border-radius-lg);
  padding: var(--spacing-lg);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-dark);
}

.dashtwo-ai-msg p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.dashtwo-ai-heading {
  color: var(--text-heading);
  font-size: var(--font-size-lg);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--blue-primary);
}

.dashtwo-ai-heading-red {
  border-bottom-color: #dc3545;
  color: #721c24;
}

.dashtwo-ai-subheading {
  color: var(--orange-primary);
  font-size: var(--font-size-base);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.dashtwo-ai-msg ul,
.dashtwo-ai-msg ol {
  margin: var(--spacing-sm) 0 var(--spacing-md);
  padding-left: 1.5rem;
  list-style: initial;
}

.dashtwo-ai-msg ol {
  list-style: decimal;
}

.dashtwo-ai-msg ul li,
.dashtwo-ai-msg ol li {
  padding: 0.25rem 0;
  color: var(--text-dark);
  position: static;
}

.dashtwo-ai-msg ul li::before {
  content: none;
}

.dashtwo-ai-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .dashtwo-user-msg {
    max-width: 100%;
  }

  .dashtwo-ai-footer {
    flex-direction: column;
  }
}

/* ============================================
   COMPACT PRODUCT CARDS (Tools section)
   ============================================ */

.product-card-compact {
  padding: var(--spacing-md);
}

.product-card-compact h3 {
  font-size: var(--font-size-xl);
}

.product-card-compact p {
  font-size: var(--font-size-sm);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form .form-group {
  margin-bottom: var(--spacing-sm);
}

.contact-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form .form-input::placeholder {
  color: var(--text-muted);
}

.contact-form .form-input:focus {
  outline: none;
  border-color: var(--orange-primary);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form select.form-input option {
  background: var(--bg-dark);
  color: var(--text-light);
}

.contact-form textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.contact-form-message {
  margin-top: var(--spacing-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  display: none;
}

.contact-form-message.success {
  display: block;
  background: rgba(40, 167, 69, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.contact-form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}
