:root {
  color-scheme: dark;
  --bg: #101414;
  --surface: #171d1d;
  --line: #2a3434;
  --text: #f5f7f2;
  --muted: #b8c2bd;
  --red: #e53935;
  --red-soft: #ff6b66;
  --cyan: #73d8ff;
  --amber: #ffb15c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  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;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(16,20,20,.88);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.actions,
.app-head,
.profile-card,
footer {
  display: flex;
  align-items: center;
}

.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 36px);
}

.legal h1 {
  font-size: clamp(3rem, 10vw, 6rem);
}

.legal h2 {
  margin-top: 28px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.legal p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

nav {
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

.nav-button {
  color: var(--text);
  background: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(28px, 7vw, 90px);
  min-height: calc(100vh - 79px);
  padding: clamp(40px, 7vw, 86px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-soft);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 15vw, 8.5rem);
  line-height: .82;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 850;
}

.primary {
  background: var(--red);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.small {
  max-width: 560px;
  color: var(--muted);
  font-size: .95rem;
}

.phone {
  justify-self: center;
  width: min(360px, 88vw);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 36px;
  padding: 14px;
  background: #080b0b;
  box-shadow: 0 36px 90px rgba(229,57,53,.24);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  background: linear-gradient(180deg, #172020, #101414 54%, #1a1212);
}

.app-head {
  gap: 12px;
  margin-bottom: 26px;
}

.app-head span,
.profile-card span,
.chat p {
  color: var(--muted);
}

.profile-card {
  gap: 14px;
  min-height: 92px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-card.dim {
  opacity: .72;
}

.avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--amber));
}

.avatar.alt {
  background: linear-gradient(135deg, var(--cyan), var(--red));
}

.chat {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(115,216,255,.35);
  border-radius: 8px;
  background: rgba(115,216,255,.08);
}

.chat span {
  color: var(--cyan);
  font-weight: 900;
}

.band,
.safety {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

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

article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

article p,
.safety p,
.safety li {
  color: var(--muted);
  line-height: 1.55;
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .8fr);
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.safety ul {
  margin: 0;
  padding: 24px 24px 24px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.safety li + li {
  margin-top: 12px;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: .92rem;
  }

  .hero,
  .safety {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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