/* TopoFetch marketing site — Modern Dark, matches the in-app UI palette */
:root {
  --bg: #161616;
  --panel: #1d1d1d;
  --card: #202020;
  --raise: #2e2e2e;
  --raise-hi: #3a3a3a;
  --border: #363636;
  --border-soft: #2c2c2c;
  --text: #e8e8e8;
  --muted: #9a9fa6;
  --accent: #4f9cf9;
  --accent-2: #38bdf8;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
code {
  background: var(--raise); padding: 2px 7px; border-radius: 6px;
  font-family: Consolas, "SFMono-Regular", monospace; font-size: .92em; color: #d8dce0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 4000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(22,22,22,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 24px; height: 24px; }
.brand-word { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: .1px; }
.brand-word b { color: var(--accent-2); font-weight: 700; }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-signin { display: none; }

.topbar-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.icon-btn {
  border: 1px solid var(--border); background: var(--raise); color: var(--muted);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: all .15s;
}
.icon-btn:hover { color: #fff; background: var(--raise-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit; background: var(--raise); color: var(--text);
}
.btn:hover { background: var(--raise-hi); border-color: #4a4a4a; }
.btn.primary {
  background: linear-gradient(135deg, #2f7fd6, #2456b3);
  border-color: #3a6fc4; color: #fff;
  box-shadow: 0 4px 14px rgba(47,127,214,.3);
}
.btn.primary:hover { filter: brightness(1.12); background: linear-gradient(135deg, #2f7fd6, #2456b3); }
.btn.secondary { background: var(--raise); border-color: var(--border); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--raise); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 15px; }
.btn.full { width: 100%; margin-top: 18px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt {
  background:
    radial-gradient(circle at 12% -10%, rgba(79,156,249,.07), transparent 45%),
    var(--panel);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.section.glow { overflow: hidden; }
.section.glow::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,156,249,.14), transparent 70%);
}
#world-capture.glow::before { top: -220px; right: -180px; }
#download.glow::before { bottom: -260px; left: -200px; background: radial-gradient(circle, rgba(56,189,248,.12), transparent 70%); }
.section.glow > .container { position: relative; z-index: 1; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: #fff; letter-spacing: -.3px; }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}

/* ---------- hero (full-bleed cinematic video) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0c0f13; }
.hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,14,17,.55) 0%, rgba(14,15,18,.72) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,9,11,.75) 0%, rgba(8,9,11,.25) 48%, rgba(8,9,11,.15) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 {
  font-size: clamp(34px, 4.8vw, 54px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.7px; color: #fff; margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.lede { font-size: 17.5px; color: #d7dbe0; line-height: 1.65; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn.ghost.outline { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn.ghost.outline:hover { background: rgba(255,255,255,.08); }
.hero-fineprint { margin-top: 18px; font-size: 12.5px; color: #aeb3ba; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: #fff; letter-spacing: -.3px;
  background: linear-gradient(135deg, #ffffff, #9cc8fb); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 12.5px; color: #a7acb3; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px;
}
.hero-scroll-cue span {
  position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue span { animation: none; }
  .hero-bg-video { display: none; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 48px; }
  .hero-stats { gap: 26px; }
  .hero-scroll-cue { display: none; }
}

/* ---------- how it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step-num {
  position: absolute; top: 20px; right: 22px; font-size: 13px; font-weight: 700;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.step-icon { width: 44px; height: 44px; margin-bottom: 18px; }
.step-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: #454545; transform: translateY(-2px); }
.feature-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16.5px; color: #fff; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- world capture ---------- */
.wc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wc-copy h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin-bottom: 16px; letter-spacing: -.3px; }
.wc-copy p { color: #c7cbd1; font-size: 15.5px; line-height: 1.7; }
.wc-copy b { color: var(--accent-2); }
.wc-visual {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px;
}
.wc-tile { animation: tilePop 3.2s ease-in-out infinite; transform-origin: center; }
.wc-tile rect { transform-box: fill-box; transform-origin: center; }
@keyframes tilePop {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { opacity: 1; }
}

/* ---------- get key ---------- */
.key-steps { margin-top: 40px; display: grid; gap: 14px; max-width: 720px; }
.key-steps li { display: flex; gap: 16px; align-items: flex-start; }
.key-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--raise); border: 1px solid var(--border); color: var(--accent-2);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.key-steps b { color: #fff; font-size: 15px; }
.key-steps p { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* ---------- download / pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.price-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 30px 28px;
}
.price-card.highlight { border-color: rgba(79,156,249,.4); background: linear-gradient(180deg, rgba(79,156,249,.06), var(--card) 40%); }
.price-card h3 { font-size: 19px; color: #fff; display: flex; align-items: center; gap: 10px; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px;
}
.tag.free { background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.tag.pro { background: rgba(79,156,249,.14); color: var(--accent-2); border: 1px solid rgba(79,156,249,.35); }
.price { font-size: 34px; font-weight: 700; color: #fff; margin: 14px 0 20px; }
.price span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.price-list { display: grid; gap: 10px; }
.price-list li {
  font-size: 14px; color: #c7cbd1; padding-left: 22px; position: relative;
}
.price-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700;
}
.price-list li.soon { color: var(--muted); }
.price-list li.soon::before { content: "◷"; color: var(--amber); }
.price-fine { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

.requirements { margin-top: 56px; }
.requirements h3 { font-size: 18px; color: #fff; margin-bottom: 16px; }
.req-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.req-table tr:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
.req-table th, .req-table td { text-align: left; padding: 14px 18px; font-size: 14px; }
.req-table th { color: var(--muted); font-weight: 600; width: 190px; white-space: nowrap; }
.req-table td { color: #d3d7db; }
.req-table a { color: var(--accent-2); text-decoration: underline; }

/* ---------- docs / faq ---------- */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.docs-col h3 { font-size: 16px; color: var(--accent-2); margin-bottom: 14px; }
.docs-col h3:not(:first-child) { margin-top: 28px; }
.docs-list { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; color: #c7cbd1; font-size: 14px; }
.docs-list li::marker { color: var(--accent-2); font-weight: 700; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer; padding: 13px 0; font-size: 14.5px; font-weight: 600; color: #fff;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent-2); font-size: 18px; font-weight: 400; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 15px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: #c7cbd1; font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.contact-line a { color: var(--accent-2); text-decoration: underline; }
.attribution-box {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px;
}
.attribution-box h3 { font-size: 14px; color: #fff; margin-bottom: 12px; }
.attribution-box p { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.55; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 52px 0 0; background: var(--panel); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.footer-brand .brand-mark { margin-bottom: 4px; }
.footer-tag { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 18px 0; }
.footer-bottom p { font-size: 12px; color: #6d7278; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .wc-grid, .about-grid, .docs-grid { grid-template-columns: 1fr; }
  .wc-grid { gap: 32px; }
  .steps-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; background: #181818; border-bottom: 1px solid var(--border-soft);
    flex-direction: column; padding: 14px 24px; gap: 4px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle { display: grid; }
  .topbar-cta .btn.sm { display: none; }
  .nav-signin { display: block; color: var(--accent-2) !important; font-weight: 700 !important; }
  .steps-grid, .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .req-table th { width: 130px; }
}
