:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-soft: #171a21;
  --text: #f7f7f8;
  --muted: #b7bac4;
  --quiet: #7e8492;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #e50914;
  --accent-soft: rgba(229, 9, 20, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: #050506;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: 30px;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2)) 72px;
}

.hero-backdrop {
  position: absolute;
  inset: -12% auto auto 51%;
  width: min(52vw, 620px);
  height: 120%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(8px) saturate(1.1);
  transform: rotate(-4deg);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.98) 0%, rgba(5, 5, 6, 0.88) 38%, rgba(5, 5, 6, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.15) 0%, #08090b 100%);
}

.site-nav {
  position: absolute;
  top: 0;
  left: max(20px, calc((100vw - var(--max)) / 2));
  right: max(20px, calc((100vw - var(--max)) / 2));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

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

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 36px);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  appearance: none;
  border: 0;
  min-width: 0;
  height: 28px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: #ff7b84;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 760px;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.store-button {
  min-width: 158px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f5f5f7;
  color: #08090b;
  border-radius: 8px;
  padding: 11px 17px 12px;
  display: grid;
  gap: 2px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.store-button.muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.store-button small {
  font-size: 11px;
  color: currentColor;
  opacity: 0.76;
  line-height: 1;
}

.store-button strong {
  font-size: 18px;
  line-height: 1;
}

.hero-device {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 8px solid #16181d;
  border-radius: 36px;
  background: #000;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 24px;
  background: #060606;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-phone {
  width: 292px;
  height: 635px;
  right: 126px;
  top: 0;
}

.side-phone {
  width: 238px;
  height: 518px;
  right: 0;
  top: 84px;
  opacity: 0.95;
}

.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  z-index: 3;
  color: var(--quiet);
  font-weight: 700;
  font-size: 13px;
}

.story-band {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.split p:last-child,
.section-head + p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.screens,
.features {
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-top: 12px;
  text-align: center;
}

.features {
  background: #0c0e12;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature-grid article {
  min-height: 220px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature-grid span {
  display: block;
  color: #ff7b84;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 26px;
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 15px;
}

.download-band {
  padding: 82px 0;
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.14), transparent 46%),
    #101217;
}

.download-inner {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: center;
}

.download-inner h2 {
  max-width: 720px;
}

.download-inner .store-row {
  margin-top: 0;
  flex-shrink: 0;
}

.site-footer {
  padding: 32px 0;
  background: #07080a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--quiet);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 96px;
  }

  .hero-backdrop {
    inset: 10% auto auto 24%;
    width: 80vw;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.54) 42%, #08090b 100%);
  }

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

  .hero-device {
    min-height: 560px;
    width: min(100%, 520px);
    margin: 8px auto 0;
  }

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

  .side-phone {
    right: 4%;
  }

  .split,
  .download-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

@media (max-width: 640px) {
  .site-nav {
    height: 68px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .lang-switch {
    grid-template-columns: repeat(2, 32px);
  }

  .nav-links a[href="#features"],
  .nav-links a[href="#screens"] {
    display: none;
  }

  .brand span {
    font-size: 18px;
  }

  .hero-shell {
    min-height: auto;
    padding: 94px 20px 56px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .store-button {
    min-width: 144px;
  }

  .hero-device {
    min-height: 456px;
  }

  .main-phone {
    width: 218px;
    height: 474px;
    right: 44%;
  }

  .side-phone {
    width: 178px;
    height: 386px;
    top: 66px;
    right: 0;
  }

  .story-band,
  .screens,
  .features,
  .download-band {
    padding: 58px 0;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .screen-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screen-row figure {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .download-inner .store-row {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
