:root {
  --bg: #0a0c10;
  --bg-2: #0d1015;
  --surface: #14181f;
  --surface-2: #1a1f28;
  --border: #232a34;
  --text: #e9ecf1;
  --text-dim: #a2a9b4;
  --text-mute: #6b7480;
  --accent: #2bc0ef;
  --accent-deep: #1592c0;
  --accent-soft: #8fdcf5;
  --accent-glow: rgba(43, 192, 239, 0.28);
  --danger: #ed4245;
  --maxw: 1080px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
  font-size: 0.85em;
  font-family: inherit;
}

code,
pre {
  font-family: "JetBrains Mono", "SF Mono", "Consolas", monospace;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 5vw, 3rem);
  background: rgba(10, 12, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-gh {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
}

.nav-gh:hover {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-gh) {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1rem, 5vw, 3rem) 4rem;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-art {
    order: -1;
  }
}

.kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lede {
  margin: 0 0 1.8rem;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .cta-row {
    justify-content: center;
  }
  .lede {
    margin-inline: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04141b;
  box-shadow: 0 8px 26px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-sub {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-mute);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-demo {
  width: min(420px, 92vw);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 110px var(--accent-glow);
  background: var(--surface);
}

/* Hero product shot: a faithful CSS render of the app window */
.shot {
  width: min(380px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 110px var(--accent-glow);
  text-align: left;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.shot-bar img {
  border-radius: 4px;
}

.shot-bar span {
  flex: 1;
}

.shot-min,
.shot-x {
  flex: none !important;
  width: 11px;
  height: 11px;
  position: relative;
}

.shot-min::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--text-mute);
}

.shot-x::before,
.shot-x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 1.5px;
  background: var(--text-mute);
}

.shot-x::before {
  transform: rotate(45deg);
}

.shot-x::after {
  transform: rotate(-45deg);
}

.shot-body {
  padding: 0.9rem;
}

.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.shot-head strong {
  font-size: 1rem;
}

.shot-actions {
  display: flex;
  gap: 0.4rem;
}

.s-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.s-panic {
  background: #b91c1c;
  color: #fff;
}

.s-on {
  background: var(--accent);
  color: #04141b;
}

.shot-label {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mute);
}

.shot-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.shot-card.protected {
  border-left: 2px solid var(--accent);
}

.shot-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.shot-info strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-info small {
  font-size: 0.68rem;
  color: var(--text-mute);
}

.s-chip {
  font-size: 0.64rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}

.s-chip.ok {
  background: rgba(67, 181, 129, 0.16);
  color: #6ee7a8;
}

.s-switch {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--surface-2);
  position: relative;
  flex-shrink: 0;
}

.s-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #6b7480;
  transition: 0.2s;
}

.s-switch.on {
  background: var(--accent);
}

.s-switch.on::after {
  left: 15px;
  background: #04141b;
}

/* ── Gallery (more app mockups) ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  margin: 0;
}

.gallery .shot {
  width: 100%;
}

.gallery figcaption {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.shot-flat {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.shot-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}

.shot-tabs .on {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: -1px;
}

.shot-field {
  margin-bottom: 0.6rem;
}

.shot-field label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 0.25rem;
}

.shot-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.shot-input.dim {
  color: var(--text-mute);
}

.shot-hint {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.68rem;
  color: var(--text-mute);
}

.shot-btns {
  display: flex;
  gap: 0.5rem;
}

.s-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.s-btn.primary {
  background: var(--accent);
  color: #04141b;
  border-color: transparent;
}

.s-panic.on {
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.45);
}

/* ── Problem band ── */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.band-line {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 5vw, 3rem);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ── Sections ── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-lede {
  margin: 0 0 2.4rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 42rem;
}

/* How it works grid: 4 cards, intentionally 2x2 not a forced 3 */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 680px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ── Privacy ── */
.privacy {
  position: relative;
}

.privacy h2 {
  max-width: 30rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}

@media (max-width: 680px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 0.7rem;
}

.trust-item p {
  margin: 0;
  padding-left: 0.7rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.note {
  margin-top: 2.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.note strong {
  color: var(--text);
}

.dl-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.dl-note code {
  white-space: nowrap;
}

.build-block {
  margin-top: 1.5rem;
}

.build-block .steps {
  margin: 1.2rem 0 0;
}

/* ── Steps ── */
.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.steps li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.step-n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.1rem;
}

.steps p {
  margin: 0.4rem 0;
  color: var(--text-dim);
  font-size: 0.97rem;
}

pre {
  margin: 0.4rem 0 0;
  background: #06080b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

:not(pre) > code {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-size: 0.88em;
  color: var(--accent-soft);
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 48rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
}

details[open] {
  border-color: var(--accent-deep);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0.7rem 0 0;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2.5rem clamp(1rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-fine {
  margin: 0;
  max-width: 44rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
