/* =========================================
   GLOBAL & MOBILE-RESPONSIVE STYLES
   ========================================= */
:root {
  --primary: #38bdf8;
  --bg-dark: #020617;
  --bg-card: #111827;
  --text-main: #f9fafb;
  --text-muted: #cbd5f5;
  --font-stack: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Subtle radial backdrop */
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(56, 189, 248, 0.06), transparent 40%),
    var(--bg-dark);
  min-height: 100vh;
}

a { color: var(--primary); }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* --- Hero --- */
.hero {
  padding: 60px 20px 40px 20px;
  text-align: center;
}
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.hero-title {
  margin: 0 0 16px 0;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-quicknav {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-quicknav a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.hero-quicknav a:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero { padding: 50px 20px 20px 20px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }
}

/* --- System Status Banner --- */
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  margin: 20px 0 40px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-stack);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1.5;
}
.status-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.status-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.status-link {
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}
.status-link:hover { text-decoration: underline; }

/* --- Top Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
  font-family: var(--font-stack);
}
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
  border: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.feature-box:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 20px rgba(56, 189, 248, 0.1);
}
.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  flex-shrink: 0;
}
.feature-icon { width: 24px; height: 24px; }
.feature-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--text-main); }
.feature-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- Pricing Cards --- */
.pricing-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-family: var(--font-stack);
  margin: 60px 0;
}
.pricing-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-dark));
  color: var(--text-main);
  border-radius: 18px;
  width: 100%;
  max-width: 320px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
  border: 2px solid transparent;
}
.pricing-card.popular {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark));
  box-shadow: 0 30px 70px rgba(56,189,248,.4);
  border-color: var(--primary);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--bg-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-title { margin: 0 0 8px; font-size: 20px; color: var(--text-main); }
.pricing-subtitle { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; }
.pricing-price { font-size: 40px; font-weight: 700; color: var(--text-main); }
.pricing-term { margin: 4px 0 20px; color: var(--text-muted); font-size: 14px; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 26px; font-size: 14px; color: var(--text-main); }
.pricing-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pricing-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.pricing-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.pricing-btn:hover { opacity: 0.9; }

/* --- OS Image --- */
.os-image-container { text-align: center; margin: 60px 0; padding: 0 20px; }
.os-image-container img { max-width: 100%; height: auto; display: inline-block; border-radius: 12px; }

/* --- Use Cases --- */
.use-case-wrapper { margin: 40px 0; font-family: var(--font-stack); text-align: center; padding: 0 20px; }
.use-case-header { color: var(--text-main); font-size: 28px; margin: 0; font-weight: 700; }
.use-case-intro { color: var(--text-muted); font-size: 16px; margin: 12px auto 0 auto; max-width: 950px; line-height: 1.6; }
.use-case-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.use-case-tag {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-main);
  padding: 24px;
  border-radius: 16px;
  text-align: left;
  flex: 1 1 300px;
  max-width: 400px;
  transition: all 0.2s ease;
}
.use-case-tag:hover { background: rgba(56, 189, 248, 0.15); border-color: var(--primary); }
.use-case-title { font-weight: 700; color: var(--primary); margin-bottom: 8px; display: block; font-size: 16px; }
.use-case-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* --- Content Sections (Root Control, Under Hood, FAQ) --- */
.content-section {
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-card));
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  font-family: var(--font-stack);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.content-header { color: var(--text-main); font-size: 28px; font-weight: 700; margin: 0 0 16px 0; }
.content-text { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0 0 32px 0; max-width: 1000px; }
.content-list { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin: 0 0 24px 20px; padding: 0; }
.content-list li { margin-bottom: 12px; }
.content-list strong { color: var(--primary); }
.section-divider { margin: 40px 0; border-top: 1px solid rgba(56, 189, 248, 0.15); }

/* --- Root Control Grid --- */
.root-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.root-feature { display: flex; align-items: flex-start; gap: 16px; }
.root-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: rgba(56, 189, 248, 0.1); border-radius: 10px; flex-shrink: 0; }
.root-icon { width: 20px; height: 20px; color: var(--primary); }
.root-feature-title { color: var(--text-main); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.root-feature-text { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* --- FAQ Specifics (Interactive & Narrower) --- */
.faq-section {
  background: transparent;
  border: none;
  box-shadow: none;
}
.faq-header {
  text-align: center;
  margin-bottom: 30px;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
details.faq-item {
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  padding: 20px 0;
}
details.faq-item:last-child {
  border-bottom: none;
}
summary.faq-question {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
summary.faq-question::-webkit-details-marker {
  display: none;
}
summary.faq-question svg {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s ease-in-out;
}
details[open] summary.faq-question svg {
  transform: rotate(90deg);
}
.faq-answer {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 0 0;
  padding-left: 32px;
}

/* --- Footer --- */
.site-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer p { margin: 4px 0; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

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

/* =========================================
   MOBILE MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
  .status-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .status-link { display: inline-block; margin-left: 0; margin-top: 4px; }

  .pricing-container { flex-direction: column; align-items: center; }
  .pricing-card { max-width: 350px; }

  .content-section { padding: 24px 20px; margin: 24px 0; }
  .content-header, .use-case-header { font-size: 24px; }
  .root-features-grid { grid-template-columns: 1fr; gap: 24px; }

  .faq-question { font-size: 16px; }
  .faq-answer { font-size: 14px; padding-left: 0; margin-top: 12px; }
  .faq-question svg { display: none; }
}

/* =========================================
   GANDER NAVBAR (scoped to .gander-wrapper)
   ========================================= */
.gander-wrapper {
  --gw-primary: #38bdf8;
  --gw-card-bg: #0b101a;
  --gw-text-light: #e2e8f0;
  --gw-text-muted: #94a3b8;
  background-color: #050810;
  color: #ffffff;
  font-family: 'Montserrat', 'Inter', Segoe UI, Arial, sans-serif;
  position: relative;
  width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.gander-wrapper * { box-sizing: border-box; }
.gander-wrapper a { text-decoration: none; box-shadow: none; }

.gander-wrapper .gw-header {
  position: relative;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 100;
  background-color: #050810;
  max-width: 1400px;
  margin: 0 auto;
}

.gander-wrapper .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff !important;
  margin: 0;
  line-height: 1;
}

.gander-wrapper .nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.gander-wrapper .nav-links > li {
  margin: 0;
  padding: 10px 0;
}
.gander-wrapper .nav-links a {
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.gander-wrapper .nav-links a:hover {
  color: var(--gw-primary) !important;
}

.gander-wrapper .dropdown {
  position: relative;
}
.gander-wrapper .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--gw-card-bg);
  min-width: 250px;
  list-style: none;
  padding: 10px 0 !important;
  margin: 15px 0 0 0 !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
  z-index: 200;
}
.gander-wrapper .dropdown:hover .dropdown-menu,
.gander-wrapper .dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  margin-top: 0 !important;
}
.gander-wrapper .dropdown-menu li { padding: 0; margin: 0; }
.gander-wrapper .dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--gw-text-light) !important;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.gander-wrapper .dropdown-menu a:hover {
  background-color: rgba(56, 189, 248, 0.05);
  color: var(--gw-primary) !important;
  padding-left: 25px;
}

@media (max-width: 768px) {
  .gander-wrapper .gw-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  .gander-wrapper .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}
