:root {
  --bg: #0b0b0f;
  --bg-2: #101014;
  --surface: #16161b;
  --surface-2: #1c1c22;
  --border: #2a2a32;
  --border-strong: #3a3a44;
  --text: #ececf2;
  --muted: #9c9caa;
  --accent: #6aa9ff;
  --accent-deep: #3f7fe0;
  --gold: #ffd166;
  --green: #7ddf9a;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

header.site .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--text);
}

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

.brand svg,
.brand img {
  display: block;
  flex: none;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.site a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.94rem;
  transition: color 0.15s ease, background 0.15s ease;
}

nav.site a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

nav.site a.nav-cta {
  color: #06121f;
  background: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}

nav.site a.nav-cta:hover {
  background: #7fb6ff;
  color: #06121f;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(
    60% 60% at 30% 30%,
    rgba(106, 169, 255, 0.22),
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(106, 169, 255, 0.08);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.022em;
}

.hero p.lede {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 550;
  font-size: 0.98rem;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, #7cb4ff, var(--accent-deep));
  border-color: transparent;
  color: #06121f;
  font-weight: 650;
  box-shadow: 0 10px 28px rgba(79, 141, 224, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Phone mockup */

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #23232c, #121216);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(40px, 6vw, 68px) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

p {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(106, 169, 255, 0.12);
  color: var(--accent);
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .link {
  font-size: 0.92rem;
  font-weight: 600;
}

ul.features {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
}

ul.features li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.98rem;
}

ul.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(125, 223, 154, 0.15);
  border: 1px solid rgba(125, 223, 154, 0.45);
}

ul.features li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 5px;
  height: 9px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Split: text beside a phone ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 28px;
}

ul.features.single {
  grid-template-columns: 1fr;
  margin-top: 0;
}

ul.features,
ol.steps {
  text-align: left;
}

/* ---------- Steps ---------- */

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

ol.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(106, 169, 255, 0.14);
  color: var(--accent);
  font-weight: 700;
}

ol.steps li p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 22px;
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 10px 0 0;
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  background: var(--surface);
}

figure figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 10px;
}

.shots.phones figure img {
  border-radius: 18px;
}

/* ---------- Code / tables ---------- */

pre {
  background: #08080b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 16px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

p code,
li code,
td code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(255, 209, 102, 0.07);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 0.96rem;
  margin: 22px 0;
}

.notice strong {
  color: var(--gold);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 550;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 36px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site .links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta,
  .hero-meta {
    justify-content: center;
  }

  .phone {
    width: min(260px, 70vw);
  }

  .grid.cols-3,
  .grid.cols-2,
  ol.steps,
  .split {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav.site {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.site.open {
    display: flex;
  }

  nav.site a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  nav.site a.nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  header.site .header-inner {
    position: relative;
  }

  ul.features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .shots {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .wrap {
    padding: 0 18px;
  }
}

@media (max-width: 520px) {
  .shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .shots figure {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .cta .btn {
    width: 100%;
  }
}
