/* ============================================================
   XyzPilot — Global Stylesheet
   Dark technical theme inspired by CAD/CAM interfaces
   ============================================================ */

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

:root {
  --teal:       #00d4c8;
  --teal-dim:   #00a89e;
  --teal-glow:  rgba(0,212,200,0.15);
  --orange:     #ff6b35;
  --orange-dim: #cc5528;
  --bg:         #0d1117;
  --bg2:        #111820;
  --bg3:        #161e28;
  --bg4:        #1a2332;
  --border:     rgba(0,212,200,0.15);
  --border2:    rgba(255,255,255,0.06);
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --text-dim:   #4a5568;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-teal:0 0 30px rgba(0,212,200,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 3px; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(13,17,23,0.97); }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--text);
}
.logo-icon { display: flex; align-items: center; }
.logo-text { color: var(--text); }

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links li a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--text); background: var(--bg3); }

.nav-cta {
  background: var(--teal) !important;
  color: #0d1117 !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--teal-dim) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  max-width: 1200px; margin: 0 auto;
  gap: 60px; position: relative;
}

.grid-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,212,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,200,0.08); border: 1px solid rgba(0,212,200,0.2);
  color: var(--teal); font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, #00a8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 36px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #0d1117;
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 10px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--teal-dim); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,200,0.3);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); color: var(--text);
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--border2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: var(--bg4); border-color: var(--border);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal);
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--teal);
  transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--teal-glow); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px 28px;
  width: fit-content;
}
.stat { text-align: center; padding: 0 24px; }
.stat-num { display: block; font-size: 1.4rem; font-weight: 800; color: var(--teal); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border2); }

/* ── HERO VISUAL ── */
.hero-visual { flex: 1.4; min-width: 0; max-width: 620px; }

.cad-canvas {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-teal);
}
.canvas-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg3);
  border-bottom: 1px solid var(--border2);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.canvas-title { font-size: 0.8rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.canvas-body { background: #0a1520; height: 280px; }

.canvas-footer {
  padding: 10px 16px; background: var(--bg3);
  border-top: 1px solid var(--border2);
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 4px;
}
.kw { color: var(--teal); }
.cursor-blink { color: var(--teal); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding: 100px 0; }

.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 640px; line-height: 1.7; margin-bottom: 56px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--bg2); }
.about-section .section-title,
.about-section .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.about-section .section-label { text-align: center; }

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  border-color: var(--border); transform: translateY(-4px);
  box-shadow: var(--shadow-teal);
}
.about-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.about-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   WORKFLOW SECTION
   ============================================================ */
.workflow-section { background: var(--bg); }
.workflow-section .section-title { text-align: center; }
.workflow-section .section-label { text-align: center; }

.workflow-steps {
  display: flex; align-items: stretch; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.workflow-step {
  flex: 1; min-width: 200px; max-width: 240px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.workflow-step:hover { border-color: var(--border); transform: translateY(-4px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem; font-weight: 700; color: var(--teal);
  opacity: 0.4; margin-bottom: 14px;
}
.step-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.workflow-arrow {
  font-size: 1.5rem; color: var(--teal); opacity: 0.4;
  align-self: center;
  padding: 0 8px; margin-top: 40px; align-self: flex-start;
}

/* ============================================================
   FEATURES HIGHLIGHT
   ============================================================ */
.features-highlight { background: var(--bg2); }
.features-highlight .section-title,
.features-highlight .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.features-highlight .section-label { text-align: center; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-item:hover { border-color: var(--border); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon.teal   { background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2); color: var(--teal); }
.feature-icon.orange { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2); color: var(--orange); }
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.features-cta { text-align: center; }

/* ============================================================
   COMMAND SECTION
   ============================================================ */
.command-section { background: var(--bg); }
.command-showcase {
  display: flex; gap: 60px; align-items: center; flex-wrap: wrap;
}
.command-text { flex: 1; min-width: 280px; }
.command-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.2;
}
.command-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.command-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.command-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.check { color: var(--teal); font-weight: 700; flex-shrink: 0; }

.command-terminal {
  flex: 1; min-width: 300px; max-width: 480px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-teal);
}
.terminal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg3);
  border-bottom: 1px solid var(--border2);
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted);
}
.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  line-height: 1.8;
}
.t-line { display: flex; gap: 6px; flex-wrap: wrap; }
.t-indent { padding-left: 20px; }
.t-comment { color: var(--text-dim); font-style: italic; }
.t-kw  { color: var(--teal); font-weight: 600; }
.t-op  { color: var(--text-muted); }
.t-fn  { color: #a78bfa; }
.t-label { color: var(--text-muted); }
.t-val { color: #fbbf24; }
.t-result { color: var(--orange); padding-left: 4px; }
.t-cursor { color: var(--teal); animation: blink 1s step-end infinite; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,200,0.08) 0%, rgba(0,168,255,0.06) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg2); border-top: 1px solid var(--border2); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.footer-version { font-size: 0.78rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border2); padding-top: 24px;
  text-align: center; font-size: 0.82rem; color: var(--text-dim);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 120px 0 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  text-align: center;
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.features-page { padding: 80px 0; }
.features-category { margin-bottom: 72px; }
.features-category-title {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.features-category-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border2);
}
.features-category-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.func-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.func-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.func-card:hover { border-color: var(--border); transform: translateY(-3px); }
.func-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.func-card-link:hover {
  border-color: var(--teal) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}
.func-card-link::after {
  content: '→ View docs';
  display: block;
  font-size: 0.75rem;
  color: var(--teal);
  margin-top: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.func-card-link:hover::after { opacity: 1; }
.func-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.func-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  background: var(--teal-glow); color: var(--teal);
  border: 1px solid rgba(0,212,200,0.2); padding: 2px 8px; border-radius: 4px;
}
.func-card h4 { font-size: 0.9rem; font-weight: 700; }
.func-card p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   DOCUMENTATION PAGE
   ============================================================ */
.docs-layout { display: flex; gap: 40px; padding: 60px 0; align-items: flex-start; }
.docs-sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 88px;
}
.docs-sidebar-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  font-size: 0.85rem; color: var(--text-muted); padding: 7px 12px;
  border-radius: 7px; transition: color 0.2s, background 0.2s;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--text); background: var(--bg2); }
.docs-nav a.active { color: var(--teal); border-left-color: var(--teal); background: var(--teal-glow); }
.docs-nav .sub { padding-left: 24px; font-size: 0.8rem; }

.docs-content { flex: 1; min-width: 0; }
.docs-section { margin-bottom: 64px; scroll-margin-top: 88px; }
.docs-section h2 {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border2);
}
.docs-section h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--teal); }
.docs-section p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.docs-section ul { margin: 12px 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.docs-section ul li { font-size: 0.9rem; color: var(--text-muted); list-style: disc; }

.docs-note {
  background: rgba(0,212,200,0.06); border: 1px solid rgba(0,212,200,0.2);
  border-left: 3px solid var(--teal); border-radius: 8px;
  padding: 14px 18px; margin: 16px 0; font-size: 0.88rem; color: var(--text-muted);
}
.docs-warning {
  background: rgba(255,107,53,0.06); border: 1px solid rgba(255,107,53,0.2);
  border-left: 3px solid var(--orange); border-radius: 8px;
  padding: 14px 18px; margin: 16px 0; font-size: 0.88rem; color: var(--text-muted);
}
.docs-important {
  background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.2);
  border-left: 3px solid #fbbf24; border-radius: 8px;
  padding: 14px 18px; margin: 16px 0; font-size: 0.88rem; color: var(--text-muted);
}
.docs-note strong, .docs-warning strong, .docs-important strong { color: var(--text); }

.code-block {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 16px 20px; margin: 14px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  color: var(--teal); overflow-x: auto; line-height: 1.7;
}

.docs-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.docs-table th {
  background: var(--bg3); color: var(--text); font-weight: 600;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border2);
}
.docs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border2); color: var(--text-muted); }
.docs-table tr:hover td { background: var(--bg2); }
.docs-table code { font-family: 'JetBrains Mono', monospace; color: var(--teal); font-size: 0.8rem; }

/* ============================================================
   SYSTEM REQUIREMENTS PAGE
   ============================================================ */
.sysreq-page { padding: 80px 0; }
.sysreq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-bottom: 48px; }
.sysreq-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 28px;
}
.sysreq-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; color: var(--teal);
}
.req-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border2); gap: 16px; }
.req-row:last-child { border-bottom: none; }
.req-label { font-size: 0.85rem; color: var(--text-muted); }
.req-value { font-size: 0.85rem; color: var(--text); font-weight: 500; text-align: right; }
.req-value.recommended { color: var(--teal); }

.browser-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.browser-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
}
.browser-badge .dot { width: 8px; height: 8px; background: var(--teal); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 18px 20px;
}
.contact-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.contact-item p  { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

.contact-form {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 8px; padding: 11px 14px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,200,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 13px; font-size: 1rem; }

/* ============================================================
   IMAGE SLIDER / CAROUSEL
   ============================================================ */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  background: #0a1520;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  height: 330px;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #0a1520;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,212,200,0.15);
  border: 1px solid rgba(0,212,200,0.35);
  color: #00d4c8;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.slider-btn:hover {
  background: rgba(0,212,200,0.35);
  transform: translateY(-50%) scale(1.1);
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(0,212,200,0.3);
  border: 1px solid rgba(0,212,200,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: #00d4c8;
  transform: scale(1.3);
}
.slider-dot.video-dot {
  width: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4c8;
}
.slider-dot.video-dot.active {
  background: #00d4c8;
  color: #0d1117;
  transform: scale(1.1);
}

/* Five Modules Section */
.modules-section { background: var(--bg); }
.modules-section .section-title,
.modules-section .section-subtitle,
.modules-section .section-label { text-align: center; margin-left: auto; margin-right: auto; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.module-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.module-card:hover { border-color: var(--border); transform: translateY(-4px); }
.module-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  color: var(--teal); opacity: 0.5;
  margin-bottom: 12px;
}
.module-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.module-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.module-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Who It Is For Section */
.who-section { background: var(--bg2); }
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.who-list {
  display: flex; flex-direction: column; gap: 14px;
  margin: 24px 0 32px;
}
.who-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-muted);
}
.callout-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 36px 32px;
  position: relative;
}
.callout-quote {
  font-size: 5rem; line-height: 0.5;
  color: var(--teal); opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.callout-card p {
  font-size: 1.05rem; color: var(--text);
  line-height: 1.7; font-style: italic;
}

@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Two column section */
.two-col-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
@media (max-width: 900px) {
  .two-col-section { grid-template-columns: 1fr; gap: 32px; }
}

/* Operators grid */
.operators-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.operator-group {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 28px 24px;
}
.operator-group-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.operator-group h3 { font-size: 1rem; font-weight: 700; }
.operator-group p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Compare grid */
.compare-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.compare-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.compare-card:hover { border-color: var(--border); transform: translateY(-3px); }
.compare-card h3 { font-size: 1rem; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.compare-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Problem cards */
.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.problem-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 28px 24px;
}
.problem-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.problem-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* Costs grid */
.costs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.cost-item {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.cost-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.cost-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Scenario cards */
.scenarios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.scenario-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
}
.scenario-header {
  background: var(--bg3); padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
  font-weight: 700; font-size: 0.95rem;
}
.scenario-body { padding: 20px; }
.scenario-row { margin-bottom: 16px; }
.scenario-row:last-child { margin-bottom: 0; }
.scenario-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.scenario-label.before { color: var(--orange); }
.scenario-label.after  { color: var(--teal); }
.scenario-row p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Training stages */
.stages-grid {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px;
}
.stage-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; gap: 24px; align-items: flex-start;
  transition: border-color 0.3s;
}
.stage-card:hover { border-color: var(--border); }
.stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem; font-weight: 700; color: var(--teal);
  opacity: 0.4; flex-shrink: 0; min-width: 48px;
}
.stage-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.stage-content p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Training modes */
.modes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.mode-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.mode-card:hover { border-color: var(--border); transform: translateY(-3px); }
.mode-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--teal); font-weight: 700;
  margin-bottom: 10px; opacity: 0.6;
}
.mode-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--teal); }
.mode-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Technology failure modes */
.fm-grid {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px;
}
.fm-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; gap: 20px; align-items: flex-start;
}
.fm-badge {
  background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.2);
  color: var(--orange); font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; flex-shrink: 0; white-space: nowrap;
}
.fm-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.fm-content p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.fm-fix { color: var(--teal); font-weight: 600; }

/* Resources doc cards */
.docs-group { margin-bottom: 56px; }
.docs-group-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}
.doc-cards { display: flex; flex-direction: column; gap: 14px; }
.doc-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.doc-card:hover { border-color: var(--border); transform: translateX(4px); }
.doc-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2);
  display: flex; align-items: center; justify-content: center;
}
.doc-info { flex: 1; }
.doc-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.doc-info p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.doc-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text-dim); padding: 3px 10px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
}

/* See It In Action Section */
.see-in-action { background: var(--bg2); }
.see-in-action .section-title,
.see-in-action .section-subtitle,
.see-in-action .section-label { text-align: center; margin-left: auto; margin-right: auto; }

.video-showcase {
  display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
}
.video-showcase-player {
  flex: 1.4; min-width: 300px;
  position: relative;
  background: #0a1520;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-teal);
}
.video-showcase-player video {
  width: 100%; display: block;
}
.video-showcase-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(10,21,32,0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.3s;
}
.video-showcase-overlay:hover { background: rgba(10,21,32,0.35); }
.video-showcase-overlay.hidden { display: none; }

.video-play-btn.large {
  width: 84px; height: 84px;
  box-shadow: 0 0 0 14px rgba(0,212,200,0.12), 0 0 50px rgba(0,212,200,0.3);
}
.video-play-btn.large svg { margin-left: 6px; }

.video-showcase-points {
  flex: 1; min-width: 260px;
  display: flex; flex-direction: column; gap: 24px;
}
.showcase-point {
  display: flex; gap: 16px; align-items: flex-start;
}
.showcase-point-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--teal-glow); border: 1px solid rgba(0,212,200,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.showcase-point h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.showcase-point p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Video slide */
.slide-video {
  background: #0a1520;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.slide-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 21, 32, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
}
.video-overlay:hover { background: rgba(10, 21, 32, 0.35); }
.video-overlay.hidden { display: none; }

.video-play-btn {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(0,212,200,0.15), 0 0 40px rgba(0,212,200,0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 14px;
}
.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--teal-dim);
  box-shadow: 0 0 0 14px rgba(0,212,200,0.15), 0 0 50px rgba(0,212,200,0.4);
}
.video-play-btn svg { margin-left: 4px; }

.video-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Slide counter in header */
.slider-counter {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-right: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-visual { max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs-layout { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; }
  .command-showcase { flex-direction: column; }
  .command-terminal { max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border2); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { width: 100%; height: 1px; }
  .workflow-steps { flex-direction: column; align-items: center; }
  .workflow-arrow { transform: rotate(90deg); margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}