/* ──────────────────────────────────────────────────────────────────
 * Real Night Vision Camera — modernized site stylesheet.
 * Green-forward palette anchored on the brand's "real low-light"
 * positioning. Dark mode only (matches the night/camera context),
 * single CSS file, no framework. ~700 lines.
 * ──────────────────────────────────────────────────────────────────
 */

:root {
  /* Surface tokens */
  --bg:           #060f0a;          /* near-black with green undertone */
  --bg-elev:      #0c1a14;
  --bg-elev-2:    #122821;
  --bg-card:      rgba(20, 36, 30, 0.55);
  --bg-card-hi:   rgba(28, 50, 42, 0.7);

  /* Foreground */
  --fg:           #ecfdf5;
  --fg-dim:       #a7c2b5;
  --fg-mute:      #6f8a7e;

  /* Brand greens (Night Vision NV phosphor) */
  --green:        #4ade80;
  --green-soft:   #86efac;
  --green-glow:   rgba(74, 222, 128, 0.45);

  /* Accents */
  --amber:        #fbbf24;          /* "real" badge, REAL SENSORS pill */
  --red:          #f87171;          /* REC, warnings */
  --blue:         #60a5fa;          /* LiDAR depth accent */

  /* Lines + radii */
  --line:         rgba(255, 255, 255, 0.07);
  --line-2:       rgba(255, 255, 255, 0.13);
  --line-green:   rgba(74, 222, 128, 0.25);
  --max:          1140px;
  --max-narrow:   860px;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-xl:    32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
        system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(800px 600px at 90% -10%, rgba(74,222,128,0.16), transparent 60%),
    radial-gradient(700px 600px at -10% 105%, rgba(96,165,250,0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 40%, rgba(251,191,36,0.05), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

/* Container ---------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-narrow); }

/* Typography --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 0.4em; font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1em; color: var(--fg-dim); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--fg-dim); max-width: 56ch; }
a { color: var(--green-soft); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; }
code, .mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px; border-radius: 5px;
  color: var(--green-soft);
}

/* Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 15, 10, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a3a2a, #0a1a13);
  display: grid; place-items: center;
  border: 1px solid var(--line-green);
  box-shadow: 0 0 12px var(--green-glow);
}
.brand__icon svg { display: block; }
.brand__text strong { color: var(--green-soft); font-weight: 700; }
.site-nav { margin-left: auto; display: flex; gap: 24px; }
.site-nav a { color: var(--fg-dim); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 720px) { .site-nav { display: none; } }

/* Hero --------------------------------------------------------- */
.hero { padding: 80px 0 60px; position: relative; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 40px; }
}
.hero h1 {
  background: linear-gradient(180deg, #f0fdf4 0%, #86efac 65%, #4ade80 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__highlight {
  color: var(--green) !important;
  -webkit-text-fill-color: var(--green) !important;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid var(--line-green);
  border-radius: 999px;
  color: var(--green-soft);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero__pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.hero__lead { margin-top: 18px; font-size: 1.18rem; color: var(--fg-dim); max-width: 50ch; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--green); color: #052010;
  box-shadow: 0 8px 24px -8px var(--green-glow);
}
.btn--primary:hover {
  background: var(--green-soft);
  box-shadow: 0 12px 30px -8px var(--green-glow);
  color: #052010;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px;
  background: var(--fg);
  color: #000;
  border-radius: 13px;
  font-weight: 600;
  text-decoration: none;
}
.appstore:hover { background: #fff; color: #000; text-decoration: none; }
.appstore svg { width: 28px; height: 28px; }
.appstore__small { display: block; font-size: 0.65rem; line-height: 1; }
.appstore__big   { display: block; font-size: 1.15rem; line-height: 1.15; }

/* Hero screenshot --------------------------------------------- */
/* Replaced the old synthetic CSS phone mockup with a real
   marketing screenshot — phone bezel is baked into the image. */
.hero__shot {
  display: flex;
  justify-content: center;
}
.hero__shot img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 30px rgba(74, 222, 128, 0.18));
}

/* Screenshot showcase grid ------------------------------------ */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
  .shots-grid { grid-template-columns: 1fr; gap: 24px; }
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.shot:hover {
  transform: translateY(-3px);
  border-color: var(--line-green);
}
.shot img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 18px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}
.shot figcaption {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-align: center;
  line-height: 1.45;
  max-width: 22ch;
}
.shot figcaption strong {
  color: var(--green-soft);
  font-weight: 700;
}

/* Section spacing --------------------------------------------- */
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 50px 0; } }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-soft);
  margin-bottom: 12px;
}

/* "Four real sensors" feature grid ---------------------------- */
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 880px) { .four-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .four-grid { grid-template-columns: 1fr; } }
.sensor-card {
  background: var(--bg-card);
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.sensor-card:hover { transform: translateY(-2px); border-color: var(--green); }
.sensor-card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid var(--line-green);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--green);
}
.sensor-card h3 { color: var(--fg); margin-bottom: 8px; font-size: 1.05rem; }
.sensor-card p  { font-size: 0.9rem; margin: 0; color: var(--fg-dim); }
.sensor-card__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid var(--line-green);
  border-radius: 999px;
  padding: 3px 8px;
}

/* Comparison table -------------------------------------------- */
.compare {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}
.compare table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th { font-weight: 700; color: var(--fg-dim); background: rgba(255,255,255,0.02); }
.compare td.us  { color: var(--fg); font-weight: 600; }
.compare td.us strong { color: var(--green); }
.compare td.them { color: var(--fg-mute); }
.compare tr:last-child td { border-bottom: none; }
.compare__check { color: var(--green); font-weight: 700; }
.compare__cross { color: var(--fg-mute); }

/* Honest disclaimer block ------------------------------------- */
.honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .honest { grid-template-columns: 1fr; } }
.honest-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
}
.honest-card--filter { border-color: rgba(251, 191, 36, 0.3); }
.honest-card--real   { border-color: var(--line-green); }
.honest-card h3 { display: flex; align-items: center; gap: 10px; }
.honest-card--filter h3 { color: var(--amber); }
.honest-card--real   h3 { color: var(--green-soft); }
.honest-card ul { padding-left: 1.1em; margin: 12px 0 0; color: var(--fg-dim); }
.honest-card li { margin-bottom: 8px; font-size: 0.93rem; }

/* FAQ --------------------------------------------------------- */
.faq { max-width: var(--max-narrow); margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq__item h3 { font-size: 1.05rem; color: var(--fg); margin-bottom: 8px; }
.faq__item p  { margin: 0; color: var(--fg-dim); font-size: 0.95rem; }

/* Footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  margin-top: 40px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { margin-bottom: 14px; color: var(--fg-dim); font-size: 0.78rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--fg-dim); font-size: 0.9rem; }
.site-footer a:hover { color: var(--green); }
.site-footer p { color: var(--fg-mute); font-size: 0.85rem; margin-top: 14px; }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--fg-mute);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Long-form (privacy / terms / support) ----------------------- */
.longform { max-width: var(--max-narrow); margin: 0 auto; padding: 60px 0 80px; }
.longform h1 { margin-bottom: 8px; }
.longform .updated { color: var(--fg-mute); font-size: 0.9rem; margin-bottom: 32px; }
.longform h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--green-soft);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.longform h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--fg);
  font-weight: 600;
}
.longform p, .longform li { color: var(--fg-dim); }
.longform ul { padding-left: 1.2em; }
.longform li { margin-bottom: 8px; }
.longform .callout {
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid var(--line-green);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.longform .callout strong { color: var(--green-soft); }

/* Utility ------------------------------------------------------ */
.center  { text-align: center; }
.muted   { color: var(--fg-mute); }
.divider { border: none; height: 1px; background: var(--line); margin: 40px 0; }

/* Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
