@font-face {
  font-family: "Doto";
  src: url("./assets/Doto.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: #111111;
  --panel-strong: #1a1a1a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line-red: #d82233;
  --line-blue: #0062cf;
  --line-green: #009952;
  --line-yellow: #f6bc26;
  --line-purple: #9a38a1;
  --line-gray: #7c858c;
  --clock: #ccff33;
  --delay: #ff6b6b;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.38);
  font-family: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

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

.hero {
  min-height: 100svh;
  padding: 20px clamp(18px, 4vw, 56px) 64px;
  background:
    linear-gradient(90deg, var(--line-red), var(--line-green), var(--line-purple), var(--line-blue), var(--line-yellow)) top / 100% 12px no-repeat,
    radial-gradient(circle at 75% 28%, rgba(204, 255, 51, 0.1), transparent 30%),
    var(--bg);
}

.topbar {
  width: min(1120px, 100%);
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.hero-grid {
  width: min(1120px, 100%);
  min-height: calc(100svh - 148px);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
}

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

.hero-app-icon {
  width: clamp(168px, 26vw, 310px);
  height: clamp(168px, 26vw, 310px);
  display: block;
  border-radius: 28px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.line-badge {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.line-badge.red {
  background: var(--line-red);
}

.line-badge.green {
  background: var(--line-green);
}

.line-badge.purple {
  background: var(--line-purple);
}

.line-badge.blue {
  background: var(--line-blue);
}

.line-badge.yellow {
  background: var(--line-yellow);
  color: #0d0d0d;
}

.line-badge.large {
  width: 52px;
  height: 52px;
  font-size: 28px;
}

.line-badge.mini {
  width: 22px;
  height: 22px;
  font-size: 13px;
  flex: 0 0 auto;
}

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

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

h1 {
  max-width: 740px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.35;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.app-store-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.app-store-link {
  border-radius: 8px;
}

.app-store-link.primary {
  min-height: 56px;
}

.app-store-link.compact {
  min-height: 42px;
}

.app-store-badge {
  display: block;
  width: 172px;
  height: auto;
}

.app-store-link.compact .app-store-badge {
  width: 132px;
}

.phone-demo {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 370px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: #050505;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.app-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.feature-band {
  padding: 72px clamp(18px, 4vw, 56px);
}

.section-heading,
.feature-grid,
footer {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

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

.feature-grid article {
  min-height: 220px;
  padding: 18px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 46px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 28px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.countdown-icon {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(204, 255, 51, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.54);
  color: var(--clock);
  font-family: "Doto", Helvetica, Arial, sans-serif;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(204, 255, 51, 0.04);
}

.countdown-icon::after {
  content: "MIN";
  color: rgba(204, 255, 51, 0.7);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 7px;
}

.status-icon {
  width: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.status-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 16px rgba(76, 217, 100, 0.7);
  position: absolute;
  left: 11px;
  top: 12px;
}

.status-icon::after {
  content: "";
  width: 21px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  position: absolute;
  right: 10px;
  top: 15px;
}

.favorite-icon {
  width: 34px;
  border-radius: 8px;
  background: rgba(246, 188, 38, 0.15);
  color: var(--line-yellow);
  font-size: 22px;
}

.network-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.network-icon svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 8px;
  fill: #fff;
}

.network-icon svg:first-child {
  background: var(--line-blue);
}

.network-icon svg:nth-child(2) {
  background: var(--line-green);
}

.network-icon svg:last-child {
  background: var(--line-yellow);
  fill: #111;
}

.feature-grid h3 {
  font-size: 20px;
  line-height: 1.1;
}

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

footer {
  min-height: 86px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer span {
  margin-right: auto;
  color: #fff;
  font-weight: 800;
}

footer a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.app-store-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(204, 255, 51, 0.7);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero {
    padding-bottom: 42px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .phone-demo {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .hero-actions,
  .app-store-link.primary {
    width: 100%;
  }

  .hero-app-icon {
    width: 142px;
    height: 142px;
    border-radius: 24px;
  }

  .app-store-link.primary {
    justify-content: center;
  }

  .app-store-link.compact {
    display: none;
  }

  .phone-frame {
    border-radius: 24px;
  }

  .feature-band {
    padding-block: 52px;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer span {
    margin-right: 0;
  }
}
