:root {
  --bg: #0f0f14;
  --surface: #191921;
  --surface-soft: #22222c;
  --text: #f3f3f7;
  --muted: #a5a5b8;
  --accent: #8bb4ff;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(139, 180, 255, 0.16), transparent 62%),
    radial-gradient(700px 420px at 8% 12%, rgba(139, 180, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark { width: 34px; height: 34px; }

.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

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

.nav__cta {
  color: var(--bg);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav__cta:hover { color: var(--bg); filter: brightness(1.05); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lead {
  margin: 22px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid #2b2b38;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.badge:hover { border-color: var(--accent); transform: translateY(-1px); }

.badge svg { width: 22px; height: 22px; }

.badge__text { display: flex; flex-direction: column; line-height: 1.15; }

.badge__text small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge__text strong { font-size: 15px; }

/* Phones */

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.phone {
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #2b2b38;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.phone img { display: block; width: 100%; height: auto; }

.phone--main {
  width: min(300px, 74%);
  z-index: 2;
  transform: translateY(-6px);
}

.phone--side {
  position: absolute;
  width: min(232px, 56%);
  right: -4%;
  bottom: 0;
  z-index: 1;
  opacity: 0.92;
  transform: rotate(3deg);
}

/* How */

.how { padding-bottom: 24px; }

h2 {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

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

.steps li {
  background: var(--surface);
  border: 1px solid #23232e;
  border-radius: var(--radius);
  padding: 22px;
}

.steps__num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.steps h3 { margin: 0 0 8px; font-size: 18px; }

.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Screenshot strip */

.shot-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.shot-strip .phone { width: min(280px, 80%); }

.shot-strip p { color: var(--muted); margin: 0 0 12px; }

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

/* Subscribe */

.subscribe {
  background: var(--surface);
  border: 1px solid #23232e;
  border-radius: 28px;
  padding: 36px 32px;
  margin-bottom: 56px;
  max-width: 720px;
}

.subscribe h2 { margin-bottom: 8px; }

.form {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.form input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #2b2b38;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form button {
  padding: 14px 22px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form button:disabled { opacity: 0.6; cursor: default; }

.form__note {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form__note[data-state="ok"] { color: #7ee0a1; }
.form__note[data-state="error"] { color: #ff8b8b; }

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid #1d1d26;
  padding-top: 22px;
}

/* Mobile */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero__phones { min-height: 420px; }
  .phone--side { width: min(200px, 48%); right: 0; }
  .steps { grid-template-columns: 1fr; }
  .shot-strip { grid-template-columns: 1fr; padding-top: 24px; }
  .nav a:not(.nav__cta) { display: none; }
}
