:root {
  --accent: #3bf0cf;
  --accent-deep: #1fb89c;
  --warning: #ffb547;
  --danger: #ff4d5e;
  --bg-top: #0e2233;
  --bg-bottom: #05080f;
  --text: #eef6f8;
  --muted: #9fb0bd;
  --faint: #6c7d8a;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-bottom);
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(59, 240, 207, 0.13), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(5, 8, 15, 0.6);
  border-bottom: 1px solid var(--card-border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; gap: 24px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }

.button.primary {
  color: var(--bg-bottom);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 30px rgba(59, 240, 207, 0.3);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
}

/* Apple's official badge, unmodified; 50px tall matches the neighbouring button. */
.app-store { display: inline-block; line-height: 0; transition: transform 0.15s ease; }
.app-store:hover { transform: translateY(-1px); }
.app-store img { height: 50px; width: auto; }

.get-app { margin-top: 28px; }

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 72px 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 240, 207, 0.1);
  border: 1px solid rgba(59, 240, 207, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}

h1 .accent {
  background: linear-gradient(90deg, var(--accent), #8ff7e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }

/* Flex so the items can wrap between each other; each item stays on one line. */
.trust {
  margin-top: 22px; color: var(--faint); font-size: 0.92rem; font-weight: 600;
  display: flex; flex-wrap: wrap; gap: 6px 0;
}
.trust span { white-space: nowrap; }
.trust span + span::before { content: "·"; margin: 0 10px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 24px; gap: 28px; text-align: center; }
  .lead { margin-inline: auto; font-size: 1.08rem; }
  .hero-actions, .trust { justify-content: center; }
  /* Wrapped lines would start with a dot; spacing alone separates the items here. */
  .trust { gap: 6px 18px; }
  .trust span + span::before { content: none; }
  .hero-visual { min-height: 480px; }
  .hero-visual .phone { width: 230px; border-radius: 40px; padding: 8px; }
  .hero-visual .phone img { border-radius: 33px; }
}

/* ---------- Radar ---------- */

.radar {
  position: absolute;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.radar .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 240, 207, 0.16);
}
.radar .ring:nth-child(2) { inset: 16%; border-color: rgba(59, 240, 207, 0.22); }
.radar .ring:nth-child(3) { inset: 32%; border-color: rgba(59, 240, 207, 0.3); }

.radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(59, 240, 207, 0.4), rgba(59, 240, 207, 0) 110deg, transparent 360deg);
  animation: sweep 5s linear infinite;
}

@keyframes sweep { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .radar .sweep { animation: none; transform: rotate(45deg); }
  html { scroll-behavior: auto; }
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: 270px;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #26384a, #0b1320);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 38px; width: 100%; height: auto; }

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

section { padding-block: 72px; }
@media (max-width: 640px) {
  section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: 1rem; }
  .card { padding: 20px; }
  .screens { gap: 18px; margin-inline: -20px; padding-inline: 20px; }
  .screens .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .screens .phone img { border-radius: 30px; }
}

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Tools */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.tool .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.tool .icon svg { width: 26px; height: 26px; }
.tool h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tool p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Screens */

.screens {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
}
.screens figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.screens .phone { width: 240px; }
.screens figcaption { margin-top: 16px; color: var(--muted); font-weight: 600; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--bg-bottom);
  background: var(--accent);
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Privacy highlight */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }

.notice { border-color: rgba(255, 181, 71, 0.3); background: rgba(255, 181, 71, 0.06); }
.notice h3 { margin-top: 0; color: var(--warning); }
.notice p, .notice li { color: var(--muted); }

/* Pricing */

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.plan li { margin: 6px 0; }
.plan.pro {
  border-color: rgba(59, 240, 207, 0.4);
  background: linear-gradient(180deg, rgba(59, 240, 207, 0.1), rgba(59, 240, 207, 0.02));
}

/* FAQ */

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px 22px; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */

footer {
  border-top: 1px solid var(--card-border);
  padding-block: 36px 48px;
  color: var(--faint);
  font-size: 0.92rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- Legal pages ---------- */

.legal { max-width: 760px; padding-block: 56px 80px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal .updated { color: var(--faint); margin: 0 0 32px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #c9d5dd; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { margin: 0 0 8px; }
.legal .summary ul { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; color: #c9d5dd; }
.legal th { color: var(--text); }
.table-scroll { overflow-x: auto; }

.icon.mint { background: rgba(59, 240, 207, 0.15); }
.icon.blue { background: rgba(90, 169, 255, 0.15); }
.icon.red { background: rgba(255, 107, 122, 0.15); }
.icon.violet { background: rgba(140, 124, 255, 0.15); }
.icon.amber { background: rgba(255, 181, 71, 0.15); }
