:root {
  color-scheme: dark;
  --ink: #eef7fa;
  --muted: #9fb4bd;
  --paper: #101c23;
  --surface: #172730;
  --surface-soft: rgba(23, 39, 48, .78);
  --line: rgba(164, 198, 211, .16);
  --orange: #ff8e85;
  --amber: #ffd166;
  --blue: #6aa8ff;
  --cyan: #80deea;
  --red: #ff6b6b;
  --purple: #b89cff;
  --green: #3ddc97;
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #101c23 0%, #132731 48%, #0d171d 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px max(16px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(164, 198, 211, .12);
  background: rgba(5, 10, 13, .78);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}

.brand img {
  width: 112px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 28, 35, .72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}

nav a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(128, 222, 234, .12);
  outline: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 56px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #80deea;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(72px, 12vw, 152px);
  line-height: .82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: #c7d4da;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.22;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: #06151b;
  background: var(--cyan);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-stats div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.hero-stats dt {
  margin-bottom: 8px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-stage {
  position: relative;
  min-height: 740px;
}

.phone {
  position: absolute;
  top: 10px;
  right: 46px;
  width: 316px;
  aspect-ratio: 1080 / 2404;
  padding: 12px;
  border-radius: 46px;
  background: #050a0d;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.intro,
.setup,
.permissions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.intro p:last-child,
.setup p {
  color: #c7d4da;
  font-size: 20px;
}

.features {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-grid article,
.permission-list article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.feature-grid article {
  min-height: 256px;
  padding: 24px;
}

.feature-grid p,
.permission-list p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
}

.icon-blue {
  background: var(--blue);
}

.icon-orange {
  background: var(--amber);
}

.icon-red {
  background: var(--red);
}

.icon-cyan {
  background: var(--cyan);
}

.icon-purple {
  background: var(--purple);
}

.icon-green {
  background: var(--green);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  border-top: 1px solid var(--line);
}

.workflow-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.workflow-copy p:last-child {
  color: #c7d4da;
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 164px;
  padding: 26px 26px 26px 92px;
}

.steps span {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #06151b;
  background: var(--cyan);
  font-weight: 900;
}

.code-panel {
  padding: 8px;
  border-radius: 8px;
  background: #071116;
  box-shadow: var(--shadow);
  overflow: auto;
}

pre {
  margin: 0;
  padding: 22px;
  color: #eef8f3;
  font-size: 15px;
  line-height: 1.7;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.store-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.store-logo {
  display: block;
  width: min(198px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.store-panel h3 {
  font-size: 28px;
}

.store-panel p {
  color: var(--muted);
}

.store-button {
  margin-top: 12px;
}

.permission-list {
  display: grid;
  gap: 14px;
}

.permission-list article {
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  font-weight: 850;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.legal-hero,
.legal-content {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.privacy-page .site-header {
  padding-right: max(16px, calc((100% - 860px) / 2));
  padding-left: max(16px, calc((100% - 860px) / 2));
}

.privacy-page nav {
  border-radius: 8px;
}

.legal-hero {
  padding: 52px 0 30px;
}

.legal-hero h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1;
}

.legal-hero .lead {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.35;
}

.last-updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.legal-content {
  padding: 8px 0 72px;
  border-top: 1px solid var(--line);
}

.legal-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.legal-content p {
  max-width: 700px;
  color: #c7d4da;
  font-size: 17px;
  line-height: 1.62;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
  }

  .hero,
  .intro,
  .workflow,
  .setup,
  .permissions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .phone-stage {
    min-height: 730px;
  }

  .phone {
    right: 50%;
    transform: translateX(50%);
  }

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

  .workflow-copy {
    position: static;
  }

  .privacy-page .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 640px) {
  .hero-stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone-stage {
    min-height: 700px;
  }

  .phone {
    width: min(300px, 86vw);
  }

  .steps li {
    padding-left: 24px;
  }

  .steps span {
    position: static;
    margin-bottom: 18px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding-top: 34px;
  }

  .legal-content section {
    padding: 22px 0;
  }
}
