:root {
  --bg: #12060f;
  --bg-2: #240a1f;
  --bg-3: #3a0a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f6e9f2;
  --text-2: #c9afc2;
  --muted: #8e7a89;
  --pink: #ff3d7f;
  --pink-light: #ff7aa8;
  --purple: #b23cff;
  --purple-light: #d08bff;
  --accent: linear-gradient(120deg, var(--pink), var(--purple));
  --radius: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 45vmax at 12% 8%, rgba(255, 61, 127, 0.22), transparent 70%),
    radial-gradient(55vmax 50vmax at 95% 45%, rgba(178, 60, 255, 0.2), transparent 70%),
    radial-gradient(50vmax 40vmax at 25% 100%, rgba(224, 48, 158, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pink-light);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(120deg, var(--pink-light), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(18, 6, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.topbar__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.topbar__nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.topbar__nav a:hover {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(255, 61, 127, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(255, 61, 127, 0.38);
}

.button:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--small {
  padding: 10px 20px;
  font-size: 15px;
  box-shadow: none;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  letter-spacing: -0.02em;
}

.lead {
  margin: 20px 0 32px;
  color: var(--text-2);
  font-size: 19px;
  max-width: 34em;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

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

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.hero__points li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.phone {
  padding: 9px;
  border-radius: 38px;
  background: #0a0308;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

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

.hero__visual .phone {
  position: absolute;
  width: min(270px, 60%);
}

.phone--front {
  right: 4%;
  top: 0;
  z-index: 2;
}

.phone--back {
  left: 2%;
  top: 70px;
  opacity: 0.72;
  transform: rotate(-6deg);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section__title {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 40px;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.feature svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 61, 127, 0.18), rgba(178, 60, 255, 0.18));
  fill: none;
  stroke: var(--pink-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

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

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

.step__number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
}

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

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: 32px;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery figcaption {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
}

.install {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.install .section__title {
  text-align: left;
  margin-bottom: 24px;
}

.install__steps {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--text-2);
}

.install__steps li {
  margin-bottom: 10px;
}

.install__steps b {
  color: var(--text);
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.92em;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.install__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 28px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 61, 127, 0.12), rgba(178, 60, 255, 0.1));
  text-align: center;
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.footer__copy {
  margin-left: auto !important;
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--pink-light);
  color: var(--pink-light);
  font-weight: 700;
  font-size: 13px;
}

/* 404 */
.not-found {
  min-height: calc(100vh - 68px - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.not-found__code {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 800;
  line-height: 1;
}

.not-found p {
  margin: 18px 0 28px;
  color: var(--text-2);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner,
  .install {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 480px;
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }

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

@media (max-width: 680px) {
  .topbar__nav {
    display: none;
  }

  .topbar .button--small {
    margin-left: auto;
  }

  .hero {
    padding-top: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .cta,
  .cta .button {
    width: 100%;
  }

  .cta {
    align-items: stretch;
    text-align: center;
  }

  .hero__visual {
    min-height: 420px;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery .phone {
    padding: 4px;
    border-radius: 18px;
  }

  .gallery .phone img {
    border-radius: 14px;
  }

  .section {
    padding: 64px 0;
  }

  .footer__copy {
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
