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

/* ────────────────────────────────────────────────────────────
   Sting Tech — design tokens
   Near-black + one accent, custom-feel type. Deliberately not
   the Panoptes app's gold/cyan system — this is the parent
   company's own identity.
   ──────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --bg-raised: #131316;
  --bg-raised-2: #1b1b1f;
  --border: #ffffff17;
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #f2f1ec;
  --fg-dim: #a8a7a2;
  --fg-faint: #26422b;
  --accent: #26422b;
  --accent-dim: #252F27;
  --accent-soft: #252F27;
  --accent-soft-strong: #252F27;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ── Nav ── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand img { height: 26px; width: 26px; }
.brand .divider { color: var(--fg-faint); font-weight: 400; margin: 0 2px; }
.brand .product { color: var(--fg-dim); font-weight: 500; }

nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: var(--fg-dim);
}
nav.links a { transition: color .15s ease; }
nav.links a:hover, nav.links a.active { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #0a0a0b; }
.btn-accent:hover { background: #ff5c3a; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--fg); }

/* ── Hero ── */
.hero {
  padding: 128px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% -10%, var(--accent-soft), transparent 65%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
h1.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin: 0 0 26px;
  position: relative;
}
p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0 0 40px;
  position: relative;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Sections ── */
section { padding: 96px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
  display: block;
}
h2.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.section-desc {
  color: var(--fg-dim);
  max-width: 42ch;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ── Pillar / capability grid ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  background: var(--bg);
  padding: 34px 30px;
  transition: background .18s ease;
}
.card:hover { background: var(--bg-raised); }
.card .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.card p {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ── Coverage / domain tag grid ── */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-grid .tag {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 9px 16px;
  transition: color .15s ease, border-color .15s ease;
}
.tag-grid .tag:hover { color: var(--fg); border-color: var(--accent-dim); }

/* ── Product spotlight ── */
.spotlight {
  background: var(--bg-raised);
}
.spotlight-panel {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 4px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.spotlight h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 16px;
  line-height: 1.15;
}
.spotlight p {
  color: var(--fg-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 46ch;
}
.spotlight-visual {
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: 3px;
  background:
    radial-gradient(340px 240px at 70% 30%, var(--accent-soft-strong), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 28px),
    var(--bg-raised-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.spotlight-visual img { height: 44%; opacity: 0.92; }
.spotlight-visual.photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 1;
}

/* ── Showcase (full-bleed product screenshot, Gotham-style) ── */
.showcase-hero {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised-2);
}
.showcase-hero img {
  width: 100%;
  display: block;
  opacity: 0.94;
}
.showcase-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0.15) 60%, rgba(10,10,11,0.92) 100%);
  pointer-events: none;
}
.showcase-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 32px 36px;
  z-index: 2;
}
.showcase-overlay .wrap { padding: 0; }
.showcase-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.showcase-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0;
}
.showcase-caption {
  padding: 16px 0 0;
  font-size: 12.5px;
  color: var(--fg-faint);
  line-height: 1.6;
  max-width: 70ch;
}
.showcase-secondary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.showcase-secondary.reverse { grid-template-columns: 0.9fr 1.1fr; }
.showcase-secondary.reverse img { order: 2; }
.showcase-secondary.reverse > div { order: 1; }
.showcase-secondary img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.showcase-secondary h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 14px;
  line-height: 1.2;
}
.showcase-secondary p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 44ch;
}

/* ── Stat / metric strip ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: var(--fg);
}
.stat .n span { color: var(--accent); }
.stat .l {
  font-size: 13px;
  color: var(--fg-faint);
  margin-top: 6px;
}

/* ── Principles list ── */
.principles {
  display: flex;
  flex-direction: column;
}
.principle {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle .idx {
  font-family: var(--font-display);
  color: var(--fg-faint);
  font-size: 14px;
  padding-top: 3px;
}
.principle h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
}
.principle p {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: 110px 0;
}
.cta-band h2 { max-width: none; }
.cta-band .hero-actions { justify-content: center; margin-top: 34px; }

/* ── Footer ── */
footer {
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer-brand img { height: 22px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--fg-dim);
  font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--fg-faint);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Page hero variant (product/about pages) ── */
.page-hero { padding: 88px 0 76px; }
.page-hero .eyebrow { }
.breadcrumb {
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--fg-dim); }

/* ── Product list (stacked rows, Palantir "Platforms" page style) ── */
.product-list { border-top: 1px solid var(--border); }
.product-row {
  display: grid;
  grid-template-columns: 90px 1fr 32px;
  align-items: center;
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.product-row:hover { background: var(--bg-raised); }
.product-row .row-num {
  font-family: var(--font-display);
  color: var(--fg-faint);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.product-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.product-row p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 14px;
}
.product-row .row-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: 2px;
}
.product-row .row-arrow {
  font-size: 24px;
  color: var(--fg-faint);
  transition: transform 0.15s ease, color 0.15s ease;
  justify-self: end;
}
.product-row:hover .row-arrow { color: var(--accent); transform: translateX(5px); }

@media (max-width: 700px) {
  .product-row { grid-template-columns: 1fr 24px; }
  .product-row .row-num { display: none; }
}

/* ── Access-request form ── */
.access-form { margin-top: 4px; }
.access-form input,
.access-form textarea {
  width: 100%;
  background: var(--bg-raised-2);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  margin-bottom: 12px;
  resize: vertical;
}
.access-form input::placeholder,
.access-form textarea::placeholder { color: var(--fg-faint); }
.access-form input:focus,
.access-form textarea:focus { outline: none; border-color: var(--accent); }
.access-form .btn { border: none; cursor: pointer; font-size: 14px; }
.access-form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--fg-dim);
  min-height: 1.4em;
}
.access-form-note.error { color: var(--accent); }
.access-form-success {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--fg);
}

/* ── Data volume grid (static layer counts, by category/country) ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.data-card {
  background: var(--bg);
  padding: 24px 26px;
  transition: background .18s ease;
}
.data-card:hover { background: var(--bg-raised); }
.data-card .dc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.data-card .dc-count {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin: 6px 0 12px;
}
.data-card .dc-items {
  font-size: 12.5px;
  color: var(--fg-faint);
  line-height: 1.7;
}
.data-card .dc-items b { color: var(--fg-dim); font-weight: 600; }
.data-note {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--fg-faint);
  margin-top: 20px;
}

/* ── Utility ── */
.mono { font-family: "Space Grotesk", monospace; }
.center { text-align: center; }

@media (max-width: 900px) {
  nav.links { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .spotlight-panel { grid-template-columns: 1fr; padding: 32px; }
  .showcase-secondary { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principle { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { flex-direction: column; }
}
