/* ============================================================
   ASTRONOVA AI LABS — Shared Stylesheet
   astronovaailabs.com
   Design: AI-native dark tech | Space Grotesk + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0A1628;
  --navy-mid:   #0D1F3C;
  --navy-card:  #0F2347;
  --navy-light: #132952;
  --cyan:       #00D4FF;
  --cyan-dim:   #00A8CC;
  --cyan-glow:  rgba(0, 212, 255, 0.15);
  --cyan-glow2: rgba(0, 212, 255, 0.05);
  --purple:     #6C3FD4;
  --purple-dim: rgba(108, 63, 212, 0.2);
  --white:      #F0F6FF;
  --white-dim:  rgba(240, 246, 255, 0.7);
  --white-faint:rgba(240, 246, 255, 0.15);
  --green:      #00FF88;
  --border:     rgba(0, 212, 255, 0.18);
  --border-dim: rgba(240, 246, 255, 0.08);
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-cyan:0 0 24px rgba(0, 212, 255, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; overflow: hidden;
}
.nav-logo img {
  height: 42px; width: 42px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.nav-logo-text span { color: var(--cyan); display: block; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a, .nav-item > .nav-parent {
  color: var(--white-dim); font-family: var(--font-head);
  font-size: 0.87rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: var(--transition); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-item:hover > .nav-parent { color: var(--cyan); background: var(--cyan-glow); }
.nav-arrow { font-size: 0.6rem; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: rgba(8,18,36,0.98); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; min-width: 220px; z-index: 2000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--white-dim); font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--cyan); background: var(--cyan-glow); }
.nav-dropdown a .dd-icon { font-size: 0.95rem; width: 20px; flex-shrink: 0; }
.nav-dropdown-divider { height: 1px; background: var(--border-dim); margin: 6px 4px; }
.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: #fff !important; color: var(--navy) !important; transform: translateY(-1px); box-shadow: var(--shadow-cyan); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; border-radius: 8px; background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.25); z-index: 1001;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--cyan); border-radius: 2px; transition: var(--transition); }
.nav-mobile {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(8,16,32,0.99); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 5% 24px; border-bottom: 1px solid var(--border);
  z-index: 1000; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile-group-label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em;
  padding: 14px 16px 6px; opacity: 0.8;
}
.nav-mobile a {
  color: var(--white-dim); padding: 12px 16px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
}
.nav-mobile a.sub { padding-left: 28px; font-size: 0.88rem; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--cyan); background: var(--cyan-glow); }
.nav-mobile .nav-cta {
  background: var(--cyan) !important; color: var(--navy) !important;
  text-align: center; margin-top: 10px; font-weight: 700 !important;
  border-radius: 8px !important;
}

/* ── Section base ── */
section { padding: 96px 5%; position: relative; overflow: hidden; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--cyan-glow); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.section-label::before { content: '//'; opacity: 0.6; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--white-dim);
  max-width: 600px; line-height: 1.7;
  margin-bottom: 56px;
}
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.95rem; padding: 14px 28px;
  border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary {
  background: var(--cyan); color: var(--navy);
}
.btn-primary:hover { background: #fff; color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); transform: translateY(-2px); }
.btn-ghost { color: var(--cyan); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost:hover { gap: 10px; color: #fff; }

/* ── Cards ── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: var(--transition);
}
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Trust strip ── */
.trust-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 28px 5%;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 40px;
  border-right: 1px solid var(--border-dim);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
}
.trust-label { font-size: 0.8rem; color: var(--white-dim); text-align: center; margin-top: 4px; }

/* ── AI Tool logos strip ── */
.tools-strip {
  padding: 56px 5%;
  background: var(--navy-mid);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}
.tools-strip-label {
  text-align: center; font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--white-dim);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 28px;
}
.tools-scroll { display: flex; gap: 12px; overflow: hidden; }
.tools-track {
  display: flex; gap: 12px; animation: scrollTools 30s linear infinite;
  flex-shrink: 0;
}
.tool-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-light); border: 1px solid var(--border-dim);
  padding: 8px 18px; border-radius: 100px; white-space: nowrap;
  font-family: var(--font-head); font-size: 0.83rem; font-weight: 500;
  color: var(--white-dim); transition: var(--transition);
  flex-shrink: 0;
}
.tool-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
@keyframes scrollTools { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ── Terminal / Code accent ── */
.terminal {
  background: #0A0F1E; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  font-family: var(--font-mono); font-size: 0.85rem;
  position: relative; overflow: hidden;
}
.terminal::before {
  content: '● ● ●'; position: absolute; top: 14px; left: 20px;
  font-size: 10px; letter-spacing: 6px;
  color: rgba(255,255,255,0.2);
}
.terminal-body { margin-top: 24px; }
.terminal-line { line-height: 2; }
.terminal-prompt { color: var(--cyan); }
.terminal-cmd { color: var(--white); }
.terminal-out { color: var(--green); }
.terminal-comment { color: rgba(255,255,255,0.3); }

/* ── Phase badge ── */
.phase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--cyan); background: var(--cyan-glow);
  border: 1px solid var(--border); padding: 4px 10px;
  border-radius: 4px; letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ── Glow orb decorations ── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.orb-cyan { background: rgba(0, 212, 255, 0.12); }
.orb-purple { background: rgba(108, 63, 212, 0.12); }

/* ── Footer ── */
.footer {
  background: #060E1A;
  border-top: 1px solid var(--border-dim);
  padding: 64px 5% 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand {
  max-width: 520px;
  padding-right: 8px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  width: fit-content;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
}
.footer-logo img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 16px rgba(0,212,255,0.14);
  flex-shrink: 0;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
}
.footer-tag {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-desc {
  color: var(--white-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--white-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-text { color: var(--white-dim); font-size: 0.82rem; }
.footer-tagline { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); opacity: 0.7; }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Page hero shared ── */
.page-hero {
  padding: 140px 5% 80px;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--border-dim);
  position: relative; overflow: hidden;
}

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--white-dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { opacity: 0.4; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy-light); color: var(--cyan); font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-dim); font-size: 0.9rem; color: var(--white-dim); }
.data-table tr:hover td { background: var(--cyan-glow2); color: var(--white); }
.data-table .earn { color: var(--green); font-family: var(--font-mono); font-size: 0.82rem; }
.data-table .phase-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); background: var(--cyan-glow); padding: 3px 8px; border-radius: 4px; }

/* ── Accordion / FAQ ── */
.faq-item { border-bottom: 1px solid var(--border-dim); }
.faq-q { width: 100%; background: none; border: none; color: var(--white); font-family: var(--font-head); font-size: 1rem; font-weight: 500; text-align: left; padding: 22px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: var(--transition); }
.faq-q:hover { color: var(--cyan); }
.faq-icon { font-size: 1.4rem; color: var(--cyan); flex-shrink: 0; transition: transform var(--transition); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-a p { color: var(--white-dim); padding-bottom: 20px; line-height: 1.7; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 300px; }

/* ── Badge ── */
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 4px; font-weight: 500; }
.badge-cyan { background: var(--cyan-glow); color: var(--cyan); border: 1px solid var(--border); }
.badge-green { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.badge-purple { background: var(--purple-dim); color: #A78FE8; border: 1px solid rgba(108,63,212,0.3); }

/* ── Shared JS snippets ── */
/* nav scroll, reveal, burger — loaded in each page via inline <script> */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  section { padding: 72px 5%; }
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-logo-text span { display: none; }
  .nav {
    background: rgba(8, 16, 32, 0.98) !important;
    border-bottom-color: var(--border) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .trust-strip { gap: 0; }
  .trust-item { padding: 16px 24px; border-right: none; border-bottom: 1px solid var(--border-dim); width: 50%; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--border-dim); }
  .footer-links { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 120px 5% 60px; }
  .phase-meta { display: none; }
  .cta-banner { padding: 40px 20px !important; }
  .cta-btns { flex-direction: column; align-items: center; }
  .orb { display: none; }
  .tools-track, .tools-track2 { animation-duration: 20s; }
}
@media (max-width: 480px) {
  .trust-item { width: 100%; border-right: none; }
  .trust-item:nth-child(odd) { border-right: none; }
  .footer-logo { width: 100%; }
}