/* ═══════ NOA SHARED STYLES — NAVY + NEON ═══════ */
@import url('fonts.css');

:root {
  --grad-start: #00f0ff;
  --grad-mid: #0d1326;
  --grad-end: #060a14;
  --accent-blue: #00f0ff;
  --accent-green: #39ff14;
  --accent-orange: #ff6b35;
  --accent-red: #ff2d55;
  --bg-body: #080c1a;
  --bg-card: rgba(0,240,255,0.04);
  --bg-hero: rgba(255,255,255,0.12);
  --bg-glass: rgba(0,240,255,0.04);
  --border-glass: rgba(0,240,255,0.08);
  --text-dark: #ffffff;
  --text-mid: #ffffff;
  --text-light: #ffffff;
  --border-light: rgba(0,240,255,0.06);
  --shadow-card: 0 20px 80px rgba(0,0,0,0.8), 0 0 80px rgba(0,240,255,0.4), 0 0 150px rgba(0,240,255,0.2);
  --shadow-hover: 0 24px 60px rgba(0,0,0,0.7), 0 0 50px rgba(0,240,255,0.15);
  --radius: 14px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #080c1a 0%, #0d1326 50%, #060a14 100%);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ═══ TOPBAR ═══ */
.topbar {
  background: rgba(0,240,255,0.03);
  border-bottom: 1px solid rgba(0,240,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 28px;
  display: flex; align-items: center; gap: 16px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}

.topbar-home {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,240,255,0.1); color: #00f0ff;
  border: 1px solid rgba(0,240,255,0.2);
  text-decoration: none; transition: background 0.2s; flex-shrink: 0;
}
.topbar-home:hover { background: rgba(0,240,255,0.2); }
.topbar-home svg { width: 20px; height: 20px; }

.topbar-title {
  color: rgba(220,235,255,0.9); font-size: 16px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
}

.topbar-news {
  display: flex; align-items: center; gap: 8px;
  color: white; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,45,85,0.5); border: 1px solid rgba(255,45,85,0.3);
  transition: background 0.2s; flex-shrink: 0;
}
.topbar-news:hover { background: rgba(255,45,85,0.7); }
.topbar-news svg { width: 20px; height: 20px; }

/* ═══ MENUBAR ═══ */
.menubar {
  background: rgba(0,240,255,0.02);
  border-bottom: 1px solid rgba(0,240,255,0.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0 28px; display: flex; align-items: center; gap: 0;
  overflow: visible; position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
}

.menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; font-size: 13.5px; font-weight: 500;
  color: rgba(220,235,255,0.35); text-decoration: none;
  white-space: nowrap; border-bottom: 2.5px solid transparent;
  transition: all 0.2s; cursor: pointer;
}
.menu-item:hover { color: #00f0ff; background: rgba(0,240,255,0.05); }
.menu-item.active { color: #00f0ff; border-bottom-color: #00f0ff; font-weight: 600; }
.menu-item svg { width: 16px; height: 16px; opacity: 0.7; }
.menu-item.active svg { opacity: 1; }

.menu-dropdown { position: relative; }
.dropdown-arrow { opacity: 0.5; transition: transform 0.3s; flex-shrink: 0; }
.menu-dropdown:hover .dropdown-arrow,
.menu-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute; top: 100%; left: 0; width: 320px;
  background: rgba(13,19,38,0.95); border: 1px solid rgba(0,240,255,0.1);
  border-radius: 0 0 12px 12px; backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 20px rgba(0,240,255,0.08);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1); z-index: 200;
}
.menu-dropdown:hover .dropdown-panel,
.menu-dropdown.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px; text-decoration: none; transition: background 0.2s;
}
.dropdown-item:hover { background: rgba(0,240,255,0.06); }

.dropdown-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dropdown-icon svg { width: 18px; height: 18px; }

.dropdown-text { display: flex; flex-direction: column; }
.dropdown-text strong { font-size: 13px; font-weight: 600; color: rgba(220,235,255,0.9); }
.dropdown-text small { font-size: 11px; color: rgba(220,235,255,0.4); margin-top: 1px; }

/* ═══ MAIN CONTENT ═══ */
.content {
  flex: 1; padding: 24px 28px 60px 28px;
  margin-top: 100px; margin-bottom: 44px;
  max-width: 1440px; margin-left: auto; margin-right: auto; width: 100%;
}

/* ═══ FOOTER ═══ */
.footer {
  background: rgba(0,240,255,0.03);
  border-top: 1px solid rgba(0,240,255,0.06);
  padding: 5px 28px; display: flex; justify-content: space-between; align-items: center;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 12px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #00f0ff; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 11.5px; }

/* ═══ TERMINAL TEXT ═══ */
.terminal-text { padding: 16px 20px 20px 20px; font-family: var(--font-mono); }
.terminal-text::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: #ff2d55; box-shadow: 14px 0 0 #ff6b35, 28px 0 0 #39ff14;
  margin-bottom: 12px; opacity: 0.7;
}
.terminal-text h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.terminal-line { font-family: var(--font-mono); font-size: 13px; color: var(--text-mid); line-height: 1.8; display: block; }
.terminal-line .hash { color: #39ff14; font-weight: 700; opacity: 0.5; }
.terminal-line:last-child::after { content: '█'; animation: termBlink 1.2s step-end infinite; color: #00f0ff; font-size: 13px; margin-left: 2px; opacity: 0.5; }
@keyframes termBlink { 0%,100%{opacity:0.5;} 50%{opacity:0;} }

.t-blue { color: #00f0ff; font-weight: 600; }
.t-green { color: #39ff14; font-weight: 600; }
.t-orange { color: #ff6b35; font-weight: 600; }
.t-red { color: #ff2d55; font-weight: 600; }
.t-dim { opacity: 0.35; }

.term-dots {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ff2d55; box-shadow: 14px 0 0 #ff6b35, 28px 0 0 #39ff14;
  opacity: 0.7; margin-right: 48px; vertical-align: middle;
}

.terminal-list { list-style: none; font-family: var(--font-mono); }
.terminal-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; line-height: 1.7; }
.terminal-list li:last-child { border-bottom: none; }
.terminal-list .hash { color: #39ff14; font-weight: 700; opacity: 0.5; }
.terminal-list .func { color: var(--text-dark); font-weight: 600; font-family: var(--font-mono); }
.terminal-list .comment { display: block; color: var(--text-light); font-size: 14px; padding-left: 14px; font-family: var(--font-mono); }
.terminal-list .comment::before { content: '# '; opacity: 0.4; }

/* ═══ LEGAL PAGES ═══ */
.legal-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
}
.legal-header { padding: 20px 28px 14px 28px; border-bottom: 1px solid var(--border-light); font-family: var(--font-mono); }
.legal-header h1 { display: inline; font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text-dark); }
.legal-body { padding: 28px; }
.legal-section { margin-bottom: 24px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.legal-section h3::before { content: '# '; color: #39ff14; opacity: 0.5; }
.legal-section p, .legal-section address { font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: var(--text-mid); font-style: normal; }
.legal-section a { color: #00f0ff; text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-light); border-top: 1px solid var(--border-light); padding-top: 20px; margin-top: 24px; }
.legal-note::before { content: '// '; opacity: 0.4; }

/* ═══ FEATURE PAGES ═══ */
.feature-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #00f0ff; text-decoration: none; margin-bottom: 24px; font-family: var(--font-mono); transition: opacity 0.2s; }
.feature-back:hover { opacity: 0.7; }
.feature-hero-svg { max-width: 900px; margin: 0 auto 32px auto; border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; background: rgba(0,240,255,0.03); }
.feature-hero-svg svg { width: 100%; height: auto; display: block; }
.feature-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
}
.feature-card-header { padding: 18px 24px 12px 24px; border-bottom: 1px solid var(--border-light); font-family: var(--font-mono); }
.feature-card-header h2 { display: inline; font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--text-dark); }
.feature-card-subtitle { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-light); margin-top: 4px; padding-left: 56px; }
.feature-card-subtitle::before { content: '# '; color: #39ff14; opacity: 0.4; }
.feature-card-body { padding: 24px; }
.feature-card-body p { font-family: var(--font-mono); font-size: 14px; line-height: 1.85; color: var(--text-mid); margin-bottom: 14px; }
.feature-card-body p:last-child { margin-bottom: 0; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .topbar { padding: 8px 16px; gap: 10px; }
  .topbar-title { font-size: 14px; letter-spacing: 1.5px; }
  .topbar-news { font-size: 12px; letter-spacing: 1px; padding: 5px 10px; }
  .menubar { padding: 0 12px; top: 48px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
  .menubar::-webkit-scrollbar { display: none; }
  .menu-item { padding: 10px 14px; font-size: 12px; }
  .content { padding: 16px 16px 50px 16px; margin-top: 90px; margin-bottom: 40px; }
  .footer { flex-direction: column; gap: 4px; padding: 8px 16px; }
  .feature-hero-svg { border-radius: 8px; }
  .legal-body { padding: 20px; }
}

@media (max-width: 480px) {
  .topbar-news svg { display: none; }
  .menubar { top: 44px; }
  .content { margin-top: 84px; }
}

/* ═══ MOBILE DROPDOWN (body-level, escapes overflow) ═══ */
.mobile-dropdown-panel {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  border-radius: 0 0 12px 12px !important;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9998 !important;
  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.mobile-dropdown-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ═══ VAPI Widget Fix ═══ */
#vapi-support-btn {
  position: fixed !important;
  bottom: 50px !important;
  right: 16px !important;
  z-index: 9999 !important;
}
#vapi-support-btn span,
#vapi-support-btn p {
  color: white !important;
}
#vapi-support-btn img[src*="phone"],
#vapi-support-btn img[src*="lucide"] {
  filter: brightness(0) invert(1) !important;
}

/* ═══════ GLOBAL PRINT STYLES ═══════ */
/* Applies to all pages using styles.css */
@page { size: A4; margin: 12mm 14mm; }
@media print {
  /* Reset to white */
  html, body { background: #fff !important; color: #1a1a1a !important; }
  body { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; font-size: 12px !important; }

  /* Hide fixed chrome */
  .topbar, .menubar, .footer, #site-header, #site-footer,
  .mobile-dropdown-panel, #vapi-support-btn, [id*="vapi"] { display: none !important; }

  /* Content area */
  .content { margin: 0 !important; padding: 10px 0 !important; max-width: 100% !important; }

  /* Kill shadows, glows, filters globally */
  *, *::before, *::after { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; text-shadow: none !important; }

  /* No animations */
  * { animation: none !important; transition: none !important; }

  /* ── TEXT COLORS ── */
  .t-blue { color: #0369a1 !important; }
  .t-green { color: #15803d !important; }
  .t-orange { color: #c2410c !important; }
  .t-red { color: #b91c1c !important; }
  .t-dim { opacity: 0.5 !important; color: #64748b !important; }
  .term-dots { background: #dc2626 !important; box-shadow: 14px 0 0 #f97316, 28px 0 0 #22c55e !important; }

  /* ── FEATURE PAGES: Hero cards ── */
  .feature-back { color: #0369a1 !important; font-size: 11px !important; margin-bottom: 12px !important; }
  .hero-overlap { height: auto !important; display: flex !important; flex-direction: column !important; gap: 14px !important; margin-bottom: 16px !important; }
  .hero-card { position: static !important; width: 100% !important; transform: none !important; background: #f8fafc !important; border: 1.5px solid #e2e8f0 !important; border-radius: 8px !important; }
  .hero-card:hover { transform: none !important; }
  .hero-card::before { height: 3px !important; }
  .hero-card:nth-child(1)::before { background: #0ea5e9 !important; }
  .hero-card:nth-child(2)::before { background: #22c55e !important; }

  /* Video → placeholder */
  .hero-card .video-wrap { background: #e2e8f0 !important; min-height: 60px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .hero-card .video-wrap::after { content: '▶ Video' !important; background: none !important; height: auto !important; color: #94a3b8 !important; font-size: 11px !important; font-weight: 600 !important; position: static !important; }
  .hero-card video { display: none !important; }

  /* SVG / icon area */
  .hero-card .icon-area { background: #f0f9ff !important; }
  .hero-card .icon-area::after { display: none !important; }
  .hero-card .icon-area img { max-height: 200px !important; }

  /* Card text */
  .hero-card .card-text { padding: 10px 14px !important; }
  .hero-card .card-text::before { display: none !important; }
  .hero-card .card-text h3 { color: #0f172a !important; font-size: 13px !important; margin-bottom: 4px !important; }
  .hero-card .card-text .line { color: #334155 !important; font-size: 11px !important; line-height: 1.6 !important; }
  .hero-card .card-text .hash { color: #22c55e !important; }

  /* ── FEATURE PAGES: Content card ── */
  .feature-card { background: #f8fafc !important; border: 1.5px solid #e2e8f0 !important; border-radius: 8px !important; page-break-inside: avoid !important; }
  .feature-card-header { border-bottom-color: #e2e8f0 !important; padding: 10px 16px 8px !important; }
  .feature-card-header h2 { color: #0f172a !important; font-size: 14px !important; }
  .feature-card-subtitle { color: #64748b !important; font-size: 10px !important; }
  .feature-card-subtitle::before { color: #22c55e !important; }
  .feature-card-body { padding: 14px 16px !important; }
  .feature-card-body p { color: #334155 !important; font-size: 11.5px !important; line-height: 1.7 !important; margin-bottom: 8px !important; }

  /* ── LEGAL PAGES ── */
  .legal-card { background: #fff !important; border: 1.5px solid #e2e8f0 !important; }
  .legal-header { border-bottom-color: #e2e8f0 !important; }
  .legal-header h1 { color: #0f172a !important; }
  .legal-section h3 { color: #0f172a !important; }
  .legal-section h3::before { color: #22c55e !important; }
  .legal-section p, .legal-section address { color: #334155 !important; }
  .legal-section a { color: #0369a1 !important; }
  .legal-note { border-top-color: #e2e8f0 !important; color: #94a3b8 !important; }

  /* ── TERMINAL TEXT (shared) ── */
  .terminal-text::before { display: none !important; }
  .terminal-text h3 { color: #0f172a !important; font-size: 12px !important; }
  .terminal-line { color: #334155 !important; font-size: 11px !important; }
  .terminal-line:last-child::after { display: none !important; }
  .terminal-line .hash { color: #22c55e !important; }
  .terminal-list li { border-bottom-color: #f1f5f9 !important; color: #334155 !important; }
  .terminal-list .func { color: #0f172a !important; }
  .terminal-list .comment { color: #475569 !important; }

  /* ── PAGE BREAKS ── */
  .hero-overlap { page-break-inside: avoid !important; }
  .feature-card { page-break-inside: avoid !important; }
  h2, h3 { page-break-after: avoid !important; }

  /* ── INLINE WHITE TEXT FIX ── */
  /* Many pages use inline style="color:#ffffff" which is invisible on white print background */
  .feature-card-body span[style*="color:#ffffff"],
  .feature-card-body span[style*="color: #ffffff"],
  .feature-card-body div[style*="color:#ffffff"],
  .feature-card-body p[style*="color:#ffffff"] { color: #0f172a !important; }

  .feature-card-body span[style*="font-weight:600"] { color: #0f172a !important; }
  .feature-card-body span[style*="font-size:12px"] { color: #334155 !important; }

  /* Inline border-light → print border */
  .feature-card-body div[style*="border-bottom"] { border-bottom-color: #f1f5f9 !important; }
  .feature-card-body div[style*="border-light"] { border-color: #f1f5f9 !important; }

  /* Accent green hash in grids */
  .feature-card-body span[style*="accent-green"] { color: #22c55e !important; }
}
