:root {
  --bg: #000000;
  --surface: #16181c;
  --surface-2: #202327;
  --primary: #1d9bf0;
  --primary-soft: #19374d;
  --text: #e7e9ea;
  --muted: #8a939b;
  --muted-2: #71767b;
  --line: rgba(231, 233, 234, 0.1);
  --intro-a: #0d1826;
  --intro-b: #162334;
  --intro-c: #1a222c;
  color-scheme: dark;
}

* {
  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;
  letter-spacing: 0;
}

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--intro-a), var(--intro-b), var(--intro-c));
  transition: opacity 520ms ease, visibility 520ms ease;
  transform: translateZ(0);
  will-change: opacity;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__content {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 32px;
}

.intro__brand {
  min-height: 52px;
  color: #e8eef6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  font-weight: 650;
  white-space: pre;
  transform: translateZ(0);
}

.intro__slogan {
  min-height: 30px;
  color: #9fb1c7;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  will-change: opacity, transform;
}

.intro__slogan.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 1.05rem;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}

.hero__copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 750;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 650px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button--ghost {
  background: var(--surface);
  color: var(--text);
}

.phone {
  justify-self: center;
  width: min(360px, 100%);
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(180deg, #2c3138, #0d1014);
  box-shadow: 0 30px 90px rgba(29, 155, 240, 0.16), 0 24px 80px rgba(0, 0, 0, 0.5);
}

.phone__screen {
  min-height: 640px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.phone__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  font-weight: 760;
}

.phone__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.chat {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 18px;
  color: #fff;
  line-height: 1.35;
}

.bubble--in {
  background: var(--surface);
}

.bubble--out {
  justify-self: end;
  background: var(--primary-soft);
}

.timeline-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 54px;
}

.timeline-preview span {
  min-height: 120px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary-soft), var(--surface-2));
}

.timeline-preview span:first-child {
  grid-column: 1 / -1;
  min-height: 170px;
}

.split,
.timeline,
.premium,
.download,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.text-stack p:last-child,
.premium-list p:last-child {
  margin-bottom: 0;
}

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

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

.feature-grid article p {
  margin-bottom: 0;
}

.timeline__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.moment {
  min-height: 180px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface-2), #101419);
  border: 1px solid var(--line);
}

.moment--wide {
  grid-column: 1 / -1;
  min-height: 260px;
  background: linear-gradient(145deg, var(--primary-soft), #0d1118);
}

.moment--accent {
  background: linear-gradient(145deg, var(--primary), var(--primary-soft));
}

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

.principles div {
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  margin-bottom: 10px;
}

.principles span {
  color: var(--muted);
  line-height: 1.55;
}

.contact-link {
  align-self: center;
  justify-self: start;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 760;
}

.download__panel {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.download__panel p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 44px);
  color: var(--muted-2);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .timeline,
  .premium,
  .download,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .phone__screen {
    min-height: 540px;
  }
}

@media (max-width: 520px) {
  .intro {
    transition-duration: 360ms;
  }

  .intro__content {
    gap: 14px;
  }

  .section {
    width: min(100% - 28px, 1140px);
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone {
    width: min(320px, 100%);
    box-shadow: 0 20px 54px rgba(29, 155, 240, 0.12), 0 18px 54px rgba(0, 0, 0, 0.42);
  }

  .phone__screen {
    min-height: 500px;
  }

  .footer {
    flex-direction: column;
  }
}

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

  .intro,
  .intro__slogan {
    transition-duration: 1ms;
  }
}
