/* ── geoquery.dev marketing page ── */

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

:root {
  --brand:   #00d4ff;
  --brand2:  #7c3aed;
  --accent:  #10b981;
  --danger:  #ef4444;
  --bg:      #050811;
  --surface: rgba(255,255,255,.04);
  --border:  rgba(255,255,255,.09);
  --text:    #e8eaf0;
  --muted:   #8892a4;
  --r:       14px;
}

html { scroll-behavior: smooth; }

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

/* ── STARFIELD ── */
#stars-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: .5;
}

/* ── GLOW ORBS ── */
.orb {
  position: fixed; z-index: 0; border-radius: 50%;
  filter: blur(100px); pointer-events: none; opacity: .35;
}
.orb-1 { width: 700px; height: 700px; top: -200px; left: -200px; background: radial-gradient(circle, #00d4ff33, transparent 70%); }
.orb-2 { width: 600px; height: 600px; bottom: -200px; right: -200px; background: radial-gradient(circle, #7c3aed33, transparent 70%); }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, #10b98122, transparent 70%); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

section { padding: 100px 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5,8,17,.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 32px;
}
.nav-logo {
  font-size: 18px; font-weight: 700; letter-spacing: -.5px;
  color: var(--brand); text-decoration: none;
}
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  background: var(--brand); color: #000; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 80px;
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(0,212,255,.3);
  background: rgba(0,212,255,.08);
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, var(--brand) 50%, var(--brand2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted); max-width: 640px; margin: 0 auto 48px;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 40px rgba(0,212,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 50px rgba(0,212,255,.35); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: border-color .2s, background .2s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }

/* ── STATS BAR ── */
.stats-bar {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding: 32px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.stat { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── FEATURE CARDS ── */
#features { background: transparent; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  font-size: 12px; font-weight: 600; color: var(--brand2);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  padding: 32px; border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: rgba(0,212,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(124,58,237,.15));
  border: 1px solid rgba(0,212,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── CODE DEMO ── */
#demo { background: transparent; }
.demo-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 768px) { .demo-wrap { grid-template-columns: 1fr; } }

.demo-text h2 { text-align: left; }
.demo-text p { color: var(--muted); font-size: 15px; margin: 16px 0 32px; }

.demo-code {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.6); backdrop-filter: blur(12px);
}
.demo-code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.demo-code-label { font-size: 12px; color: var(--muted); margin-left: auto; font-family: monospace; }
pre {
  padding: 24px; font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px; line-height: 1.75;
  overflow-x: auto; color: #cdd6f4;
}
.kw { color: #89b4fa; }
.str { color: #a6e3a1; }
.num { color: #fab387; }
.key { color: #89dceb; }
.cmt { color: #6c7086; font-style: italic; }
.hl { background: rgba(0,212,255,.06); border-left: 2px solid var(--brand); margin: 0 -24px; padding: 0 22px; display: block; }

/* ── USE CASES ── */
#usecases { background: transparent; }
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.usecase-card {
  padding: 28px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); text-align: center;
  transition: transform .3s, border-color .3s;
}
.usecase-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.3); }
.usecase-icon { font-size: 40px; margin-bottom: 16px; }
.usecase-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { color: var(--muted); font-size: 13px; }

/* ── PRICING ── */
#pricing { background: transparent; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  padding: 36px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); position: relative;
  transition: transform .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: rgba(0,212,255,.4);
  background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(124,58,237,.06));
  box-shadow: 0 0 60px rgba(0,212,255,.1);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 100px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; color: var(--muted); margin-bottom: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pricing-price { font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; }
.pricing-price sub { font-size: 14px; color: var(--muted); font-weight: 400; }
.pricing-annual {
  font-size: 12px; color: var(--brand); font-weight: 600;
  margin-bottom: 6px; letter-spacing: .2px;
}
.pricing-desc { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--accent); flex-shrink: 0; }
.pricing-btn {
  display: block; text-align: center;
  padding: 13px; border-radius: 9px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.pricing-btn:hover { opacity: .85; transform: translateY(-1px); }
.pricing-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.pricing-btn.secondary { border: 1px solid var(--border); color: var(--text); background: transparent; }

/* ── CTA BAND ── */
#cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(124,58,237,.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
#cta-band h2 { margin-bottom: 16px; }
#cta-band p { color: var(--muted); font-size: 17px; margin-bottom: 40px; }

/* ── FOOTER ── */
footer {
  padding: 48px 0; text-align: center;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }

/* ── ABOUT ── */
#about { background: transparent; }

.about-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 56px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
@media (max-width: 768px) {
  .about-panel { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
}

.about-heading {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  letter-spacing: -.5px; margin: 12px 0 16px;
}
.about-intro { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 28px; }

.about-contact-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.about-contact-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 14px; color: var(--text);
}
.aci {
  flex-shrink: 0; width: 20px; display: flex;
  align-items: center; justify-content: center;
  color: var(--muted);
}
.aci svg { display: block; }
.about-contact-list a { color: var(--text); text-decoration: none; transition: color .2s; }
.about-contact-list a:hover { color: var(--brand); }

/* ISO trust badge */
.trust-badge {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; border-radius: 12px; margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(0,212,255,.06));
  border: 1px solid rgba(16,185,129,.3);
  text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.trust-badge:hover {
  border-color: rgba(16,185,129,.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,185,129,.12);
}
.trust-badge-icon { font-size: 36px; flex-shrink: 0; line-height: 1; }
.trust-badge-body { flex: 1; }
.trust-badge-title { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.trust-badge-cert {
  display: inline-block; margin-top: 4px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .5px;
}
.trust-badge-arrow { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.about-trust-note { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── CROSS-PROMO ── */
#crow500proof { padding: 0 0 80px; }
.xpromo-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 48px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(0,212,255,.05));
  border: 1px solid rgba(124,58,237,.2);
  backdrop-filter: blur(12px);
}
@media (max-width: 768px) {
  .xpromo-panel { flex-direction: column; padding: 28px; }
  .xpromo-cta { width: 100%; text-align: center; }
}
.xpromo-text { flex: 1; }
.xpromo-heading {
  font-size: 18px; font-weight: 700; margin: 8px 0 10px; letter-spacing: -.3px;
}
.xpromo-text p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.xpromo-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 13px 28px; border-radius: 10px;
  border: 1px solid rgba(124,58,237,.4);
  background: rgba(124,58,237,.12);
  color: var(--text); font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
.xpromo-cta:hover {
  background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.6);
  transform: translateY(-2px);
}

/* ── SCROLL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats-bar { gap: 24px; }
  section { padding: 64px 0; }
}
