/* ===========================================================================
   NasCam — Obsidian Surveillance design system
   Deep-space dark, glassmorphic, electric-purple accent.
   =========================================================================== */

:root {
  /* Surfaces */
  --background: #0e0e10;
  --surface: #131315;
  --surface-container-low: #1c1b1d;
  --surface-container: #201f22;
  --surface-container-high: #2a2a2c;
  --surface-container-highest: #353437;

  /* Content */
  --on-surface: #e5e1e4;
  --on-surface-variant: #cbc3d7;
  --outline: #958ea0;

  /* Accents */
  --primary: #d0bcff;
  --primary-container: #a078ff;
  --on-primary: #3c0091;
  --secondary: #89ceff;
  --tertiary: #ffb869;
  --success: #6ee7a8;
  --live: #ff5252;

  /* Shape */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Rhythm */
  --gutter: 24px;
  --container-max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* Ambient glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(160, 120, 255, 0.16), transparent 70%),
    radial-gradient(40% 30% at 85% 10%, rgba(137, 206, 255, 0.08), transparent 70%);
}

::selection { background: rgba(208, 188, 255, 0.3); }

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

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

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---- Glass panel ------------------------------------------------------- */
.glass {
  background: rgba(28, 27, 29, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

/* ---- Typography -------------------------------------------------------- */
.eyebrow {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--on-surface-variant); font-size: 18px; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--primary-container), var(--primary));
  color: var(--on-primary);
}
.brand .logo svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: "Geist", "Inter", sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.nav a:hover { color: var(--on-surface); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Geist", "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 22px rgba(208, 188, 255, 0.45); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.header-cta { padding: 9px 18px; font-size: 14px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto 22px;
  max-width: 15ch;
}
.hero .sub {
  font-size: 19px;
  color: var(--on-surface-variant);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 13px;
  color: var(--outline);
}

/* ---- App mockup (pure CSS) --------------------------------------------- */
.mockup-shell {
  margin: 72px auto 0;
  max-width: 940px;
  padding: 10px;
  border-radius: var(--radius-xl);
}
.app-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mockup-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-container-low);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.mockup-bar .m-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.mockup-bar .m-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.mockup-bar .m-time { color: var(--outline); font-family: "Geist", monospace; }
.mockup-body { display: grid; grid-template-columns: 1fr 260px; gap: 14px; padding: 16px; }
@media (max-width: 720px) { .mockup-body { grid-template-columns: 1fr; } }

.feature-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--primary);
  box-shadow: 0 0 24px rgba(208, 188, 255, 0.25);
  background:
    linear-gradient(120deg, #2a3a2f, #16241c 55%, #0f1a14),
    var(--surface-container);
}
.feature-main .scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px);
}
.live-pill {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-family: "Geist", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.live-pill .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}
.cam-label {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.event-list { display: flex; flex-direction: column; gap: 9px; }
.event-list .eh {
  font-family: "Geist", monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--outline); margin-bottom: 2px;
}
.event {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-container);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 8px;
}
.event .thumb {
  width: 46px; height: 32px; border-radius: var(--radius-sm); flex: none;
  background: linear-gradient(135deg, #34304a, #1e1b2c);
}
.event .meta .t { font-size: 12px; font-weight: 600; }
.event .meta .s { font-size: 10px; color: var(--outline); font-family: "Geist", monospace; }
.event .time { margin-left: auto; font-size: 10px; color: var(--outline); font-family: "Geist", monospace; }

.thumb-row { display: flex; gap: 8px; padding: 0 16px 16px; }
.thumb-cam {
  flex: 1; aspect-ratio: 16/10; border-radius: var(--radius);
  background: linear-gradient(135deg, #2b2733, #17151e);
  border: 1px solid rgba(255,255,255,0.05);
}
.thumb-cam.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* ---- Feature cards ----------------------------------------------------- */
section { padding: 96px 0; position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(208,188,255,0.3); }
.card .ic {
  width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ic svg { width: 24px; height: 24px; }
.ic.p { background: rgba(208,188,255,0.15); color: var(--primary); }
.ic.s { background: rgba(137,206,255,0.15); color: var(--secondary); }
.ic.t { background: rgba(255,184,105,0.15); color: var(--tertiary); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--on-surface-variant); font-size: 15px; }

/* ---- Support band ------------------------------------------------------ */
.band { background: var(--surface-container-low); border-block: 1px solid rgba(255,255,255,0.05); }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.support-tile {
  padding: 24px; display: block; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.support-tile:hover { transform: translateY(-3px); border-color: rgba(208,188,255,0.35); }
.support-tile.accent { border-color: rgba(208,188,255,0.35); background: rgba(208,188,255,0.05); }
.support-tile svg { width: 22px; height: 22px; color: var(--on-surface-variant); margin-bottom: 16px; }
.support-tile.accent svg { color: var(--primary); }
.support-tile h4 { font-size: 15px; margin-bottom: 6px; }
.support-tile p { font-size: 13px; color: var(--on-surface-variant); }

/* ---- Privacy list ------------------------------------------------------ */
.privacy-panel { max-width: 720px; margin: 0 auto; padding: 12px 34px; }
.privacy-row { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; }
.privacy-row + .privacy-row { border-top: 1px solid rgba(255,255,255,0.06); }
.privacy-row .pic { flex: none; margin-top: 3px; }
.privacy-row .pic svg { width: 24px; height: 24px; }
.privacy-row h4 { font-size: 20px; margin-bottom: 8px; }
.privacy-row p { color: var(--on-surface-variant); font-size: 15px; }
.pic.p { color: var(--primary); }
.pic.s { color: var(--secondary); }
.pic.t { color: var(--tertiary); }

/* ---- CTA strip --------------------------------------------------------- */
.cta { text-align: center; }
.cta-inner { padding: 56px 32px; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.cta p { color: var(--on-surface-variant); font-size: 17px; margin-bottom: 26px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--surface); border-top: 1px solid rgba(255,255,255,0.06); padding: 44px 0; margin-top: auto; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-brand .fb { font-weight: 800; letter-spacing: -0.02em; }
.foot-brand .fc { font-size: 13px; color: var(--outline); }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a {
  font-family: "Geist", "Inter", sans-serif; font-size: 13px; font-weight: 500;
  color: var(--on-surface-variant); transition: color 0.2s;
}
.foot-links a:hover { color: var(--primary); }

/* ===========================================================================
   Legal / content pages (privacy.html, support.html)
   =========================================================================== */
.doc { padding: 72px 0 96px; }
.doc-wrap { max-width: 780px; }
.doc .back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist", "Inter", sans-serif; font-size: 14px; color: var(--on-surface-variant);
  margin-bottom: 28px;
}
.doc .back:hover { color: var(--primary); }
.doc .back svg { width: 16px; height: 16px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; margin-bottom: 10px; }
.doc .updated { font-family: "Geist", monospace; font-size: 13px; color: var(--outline); margin-bottom: 44px; }
.doc h2 { font-size: 23px; margin: 42px 0 14px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; color: var(--on-surface); }
.doc p, .doc li { color: var(--on-surface-variant); font-size: 16px; line-height: 1.7; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a.inline { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.doc a.inline:hover { color: var(--primary-container); }
.doc .lead { font-size: 18px; color: var(--on-surface); margin-bottom: 8px; }
.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(208,188,255,0.25);
  background: rgba(208,188,255,0.06);
}
.callout p { margin: 0; color: var(--on-surface); }

/* Support: FAQ + contact */
.contact-card { padding: 30px 32px; margin: 8px 0 40px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.contact-card .ci h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card .ci p { color: var(--on-surface-variant); font-size: 15px; margin: 0; }
.contact-card .email { font-family: "Geist", monospace; color: var(--primary); font-size: 15px; }
.faq { border-top: 1px solid rgba(255,255,255,0.07); }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px;
  font-size: 17px; font-weight: 600; color: var(--on-surface);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .fa { padding: 0 4px 20px; }
.faq .fa p { color: var(--on-surface-variant); font-size: 15px; line-height: 1.7; margin: 0; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .privacy-panel { padding: 4px 20px; }
  section { padding: 64px 0; }
}
