:root {
  --bg: #14171c;
  --surface: #1b232e;
  --ink: #f2f5f8;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #1aa6b8;
  --accent-ink: #04181c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(880px 420px at 78% -8%, rgba(26, 166, 184, 0.18), transparent 62%),
    var(--bg);
  color: var(--ink);
  font: 18px/1.5 "Segoe UI", system-ui, sans-serif;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: rgba(26, 166, 184, 0.35); }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px 28px;
  padding: 16px 22px;
  background: rgba(20, 23, 28, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-right: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--ink); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  background: transparent;
  color: var(--muted);
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  cursor: pointer;
}

.lang button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 48px;
  align-items: center;
  padding: 64px 0 88px;
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.12; font-weight: 620; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
}

.tagline {
  margin: 8px 0 0;
  font-size: 1.28rem;
  font-weight: 560;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-shot {
  margin: 0;
  text-align: center;
}

.shot {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1080 / 2400;
  margin-inline: auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.shot img.is-active { opacity: 1; }

.hero-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.band {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
  padding: 80px 0;
}

.section { padding: 80px 0; }

.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.profile {
  display: block;
  width: 100%;
  padding: 16px 16px 20px;
  text-align: left;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  font: inherit;
  cursor: pointer;
}

.profile.is-selected { border-color: rgba(26, 166, 184, 0.7); }

.profile img {
  display: block;
  width: auto;
  height: 280px;
  max-width: 100%;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #101318;
}

.profile h3 { margin: 0 0 4px; font-size: 1.25rem; }

.profile p { margin: 0; color: var(--muted); }

.trigger {
  margin-bottom: 8px !important;
  color: var(--accent) !important;
  font-size: 0.86rem;
}

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

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.widget i { display: block; height: 4px; }

.widget h3 { margin: 14px 16px 4px; font-size: 1.05rem; }

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

.bar-clock { background: #0e7c86; }
.bar-date { background: #c4476a; }
.bar-weather { background: #156f86; }
.bar-switches { background: #6faf3a; }
.bar-rss { background: #c47b2b; }
.bar-apps { background: #3e6b9a; }
.bar-contacts { background: #5c6bc0; }
.bar-calendar { background: #8e4585; }
.bar-battery { background: #4a8f5c; }
.bar-android { background: #3d5a80; }

.privacy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dock {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.points li:last-child { border-bottom: 1px solid var(--line); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.benefits article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.benefits h3 { margin: 0 0 8px; font-size: 1.2rem; }

.benefits p { margin: 0; color: var(--muted); }

.wait {
  padding: 88px 0;
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(26, 166, 184, 0.16), transparent 70%),
    #101318;
  border-top: 1px solid var(--line);
}

.wait-inner { max-width: 640px; }

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 166, 184, 0.16);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.form-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #14171c;
  color: var(--ink);
  font: inherit;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
}

.form-status.is-ok { color: #8dcea0; }
.form-status.is-bad { color: #e7a0b0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p { margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .nav { flex-wrap: wrap; }

  .brand { margin-right: auto; }

  .nav-links {
    order: 3;
    width: 100%;
    margin-right: 0;
  }

  .hero,
  .profiles,
  .benefits,
  .dock { grid-template-columns: 1fr; }

  .hero { padding-top: 36px; }

  .form-row { flex-direction: column; }

  .form-row .btn { width: 100%; }
}

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

  .shot img,
  .reveal { transition: none; }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
