/* Shared styles for the public site (index.html + privacy.html).
   Self-contained: no external fonts, CDNs, or trackers. */
:root {
  --bg0: #08101c;
  --bg1: #0d1a2b;
  --card: rgba(13, 24, 38, 0.97);
  --green: #25d366;
  --green-dim: #1aa34a;
  --text: #e8eef5;
  --muted: #8fa3b8;
  --line: rgba(37, 211, 102, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky nav */
  scroll-padding-top: 84px;
  /* Firefox custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--green-dim) transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Modern custom scrollbar (WebKit / Chromium) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg0);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dim) 100%);
  border: 3px solid var(--bg0);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 10%, rgba(37, 211, 102, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(16, 120, 80, 0.14) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg0) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(8, 16, 28, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

/* Logo badge — gradient rounded square holding the shield mark */
.logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-dim) 100%);
  /* box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); */
  flex: none;
}

.logo svg {
  color: #07130c;
}

.logo img {
  display: block;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.shield {
  color: var(--green);
  filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4));
  flex: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Layout ──────────────────────────────────────────── */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 0 56px;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 720px;
}

.accent {
  color: var(--green);
  background: linear-gradient(120deg, #4dffa1 0%, var(--green) 45%, var(--green-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 30px;
}

.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-p {
  background: linear-gradient(145deg, #33e07a 0%, var(--green) 55%, var(--green-dim) 100%);
  color: #07130c;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, 0.6);
}

.btn-p:hover {
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, 0.75);
}

.btn-g:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.08);
}

.btn-g {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.trust {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 26px;
}

/* Hero screenshot — floating framed preview */
.hero-shot {
  margin: 40px auto 0;
  max-width: 860px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
}

.hero-shot::before {
  content: "";
  display: block;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-shot .dots {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 7px;
}

.hero-shot .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.hero-shot .dots i:nth-child(1) { background: #ff5f57; }
.hero-shot .dots i:nth-child(2) { background: #febc2e; }
.hero-shot .dots i:nth-child(3) { background: #28c840; }

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Features ────────────────────────────────────────── */
.features {
  padding: 20px 0;
}

.features h2,
.privacy-band h2,
.showcase h2 {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1rem;
}

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

.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 20px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 18px 40px -24px rgba(37, 211, 102, 0.55);
}

/* Feature-card thumbnail */
.feat-shot {
  position: relative;
  margin: 0 0 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg0);
  border-bottom: 1px solid var(--line);
}

.feat-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.feat:hover .feat-shot img {
  transform: scale(1.04);
}

/* "Sample" badge — marks placeholder screenshots awaiting a real capture */
.shot-sample {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1200;
  background: #ffcf4d;
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.feat h3,
.feat p {
  padding-left: 22px;
  padding-right: 22px;
}

.feat .ico {
  margin-left: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-bottom: 14px;
  color: var(--green);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid var(--line);
}

.feat h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text);
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Showcase (alternating screenshot rows) ──────────── */
.showcase {
  padding: 30px 0 10px;
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 56px 0;
}

.shot-row:nth-child(even) .shot-text {
  order: 2;
}

.shot-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.shot-text h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.shot-text p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 1rem;
}

.shot-text ul {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
}

.shot-text li {
  margin-bottom: 6px;
}

.shot-frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease;
}

.shot-frame:hover {
  transform: scale(1.015);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Privacy band ────────────────────────────────────── */
.privacy-band {
  margin: 48px 0 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
}

.privacy-band ul {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 22px;
  color: var(--muted);
}

.privacy-band li {
  margin-bottom: 10px;
}

.privacy-band .fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 24px 0 0;
}

/* ── Privacy policy article ──────────────────────────── */
.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 38px;
  margin: 12px 0 24px;
}

.doc h1 {
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 26px;
}

.doc h2 {
  font-size: 1.15rem;
  color: var(--green);
  margin: 30px 0 10px;
}

.doc p {
  color: #cfdbe8;
}

.doc ul {
  color: #cfdbe8;
}

.doc a {
  word-break: break-word;
}

/* ── Footer ──────────────────────────────────────────── */
.site-foot {
  margin: 60px auto 0;
  padding: 44px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 16, 28, 0.45);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-brand .brand {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.foot-brand p {
  margin: 0 0 14px;
  max-width: 320px;
  line-height: 1.55;
}

.foot-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col h4 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.foot-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-col a:hover {
  color: var(--green);
}

.foot-bottom {
  max-width: 1040px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.foot-bottom p {
  margin: 0;
}

.foot-bottom a {
  color: var(--muted);
}

.foot-bottom a:hover {
  color: var(--green);
}

.foot-disclaimer {
  max-width: 1040px;
  margin: 14px auto 0;
  color: rgba(143, 163, 184, 0.6);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* ── Clickable screenshots (zoom affordance) ─────────── */
.zoomable {
  cursor: zoom-in;
}

.hero-shot,
.shot-frame,
.feat-shot {
  position: relative;
}

.hero-shot::after,
.shot-frame::after,
.feat-shot::after {
  content: "";
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 16, 28, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2325d366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.hero-shot:hover::after,
.shot-frame:hover::after,
.feat-shot:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(4, 8, 14, 0.82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  margin: 0;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  object-fit: contain;
}

.lightbox-inner figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(37, 211, 102, 0.18);
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  main {
    padding: 20px 18px;
  }
}

/* ── Nav: wrap the links under the brand on narrow screens ── */
@media (max-width: 720px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  .brand {
    font-size: 0.98rem;
    gap: 9px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 0.9rem;
  }

  /* Nav is taller when links wrap — keep anchored sections clear */
  html {
    scroll-padding-top: 120px;
  }
}

@media (max-width: 760px) {
  .shot-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 44px 0;
  }

  .shot-row:nth-child(even) .shot-text {
    order: 0;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 28px 0 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .lede {
    font-size: 1rem;
  }

  .features h2,
  .privacy-band h2,
  .showcase h2 {
    font-size: 1.4rem;
  }

  .shot-text h3 {
    font-size: 1.3rem;
  }

  .privacy-band {
    padding: 26px 20px;
  }

  .doc {
    padding: 28px 22px;
  }

  .doc h1 {
    font-size: 1.45rem;
  }
}

@media (max-width: 440px) {
  main {
    padding: 16px 14px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}
