:root {
  color-scheme: light;
  --ink: #05070b;
  --surface: #111722;
  --surface-2: #182033;
  --blue: #0a8cff;
  --cyan: #10d6ff;
  --violet: #7c4dff;
  --magenta: #d84cff;
  --orange: #ff6a2a;
  --green: #24c66a;
  --yellow: #ffb332;
  --text-dark: #f5f7fb;
  --muted-dark: #aab3c2;
  --light: #f7fafc;
  --paper: #ffffff;
  --text: #111827;
  --muted: #566173;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(5, 7, 11, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: var(--text-dark);
  background: rgba(5, 7, 11, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text-dark);
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.button--primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 32px rgba(10, 140, 255, 0.3);
}

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

.button--small {
  min-height: 42px;
  padding-inline: 16px;
  background: rgba(10, 140, 255, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: min(820px, calc(100vh - 140px));
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
  color: var(--text-dark);
  background:
    radial-gradient(circle at 78% 28%, rgba(16, 214, 255, 0.22), transparent 28%),
    radial-gradient(circle at 48% 72%, rgba(124, 77, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #05070b 0%, #0b1020 58%, #111827 100%);
  overflow: hidden;
}

.hero__copy {
  max-width: 680px;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__dek {
  margin: 24px 0 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero__body {
  max-width: 58ch;
  margin: 18px 0 30px;
  color: var(--muted-dark);
  font-size: 1.08rem;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero__visual::before {
  position: absolute;
  inset: 8% 7% 3% 4%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(16, 214, 255, 0.16);
  border-radius: 36px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-4deg);
}

.phone {
  position: absolute;
  width: min(44vw, 292px);
  min-width: 190px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  background: #070a12;
  box-shadow: var(--shadow);
}

.phone img,
.screen-pair img,
.care-section__image img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  object-fit: cover;
}

.phone--primary {
  right: 18%;
  top: 5%;
  z-index: 3;
}

.phone--walk {
  left: 0;
  top: 18%;
  z-index: 2;
  transform: rotate(-8deg) scale(0.86);
}

.phone--home {
  right: 2%;
  bottom: 2%;
  z-index: 1;
  transform: rotate(7deg) scale(0.78);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.feature-strip article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
}

.feature-strip h2,
.split-section h2,
.care-section h2,
.activity-section h2,
.download-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-strip h2 {
  margin-top: 22px;
  font-size: 1.35rem;
}

.feature-strip p,
.section-copy p,
.activity-section p {
  color: var(--muted);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  color: #053448;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(16, 214, 255, 0.18);
}

.feature-chip--alert {
  color: #5c1d05;
  background: rgba(255, 106, 42, 0.2);
}

.split-section,
.care-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: center;
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.split-section--dark {
  color: var(--text-dark);
  background:
    linear-gradient(160deg, rgba(10, 140, 255, 0.14), transparent 42%),
    var(--ink);
}

.split-section--dark h2,
.split-section--dark .section-copy p,
.split-section--dark .check-list {
  color: var(--text-dark);
}

.split-section--dark .section-copy > p {
  color: var(--muted-dark);
}

.section-copy {
  max-width: 680px;
}

.section-copy > p {
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
}

.screen-pair img,
.care-section__image img {
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #070a12;
  box-shadow: var(--shadow);
}

.screen-pair img:nth-child(2) {
  margin-top: 54px;
}

.screen-pair--reverse img:nth-child(1) {
  margin-top: 54px;
}

.screen-pair--reverse img:nth-child(2) {
  margin-top: 0;
}

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

.stat-grid div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.care-section {
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  background: #edf7fb;
}

.care-section__image {
  max-width: 340px;
}

.activity-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: var(--text-dark);
  background:
    linear-gradient(135deg, rgba(255, 106, 42, 0.22), transparent 42%),
    linear-gradient(115deg, #111722, #0d1422);
}

.activity-section h2,
.activity-section p {
  max-width: 900px;
  color: var(--text-dark);
}

.activity-section p {
  color: var(--muted-dark);
  font-size: 1.12rem;
}

.download-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(38px, 6vw, 70px) clamp(18px, 5vw, 72px);
  color: var(--text-dark);
  background: var(--ink);
}

.download-section img {
  border-radius: 20px;
}

.download-section h2 {
  max-width: 760px;
  color: var(--text-dark);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted-dark);
  background: #030508;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-dark);
  background: var(--ink);
}

.not-found__panel {
  max-width: 620px;
}

.not-found__panel img {
  border-radius: 16px;
}

.not-found__panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.96;
}

.not-found__panel p:not(.eyebrow) {
  color: var(--muted-dark);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .care-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    min-height: 440px;
  }

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

  .download-section {
    grid-template-columns: auto 1fr;
  }

  .download-section .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand span {
    max-width: 12ch;
    white-space: normal;
    line-height: 1;
  }

  .button {
    width: 100%;
  }

  .site-header .button {
    width: auto;
  }

  .hero {
    padding: 32px 16px 38px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__visual {
    display: none;
  }

  .hero::after {
    position: absolute;
    right: 12px;
    bottom: 20px;
    width: 116px;
    height: 174px;
    content: "";
    border: 8px solid #070a12;
    border-radius: 24px;
    opacity: 0.34;
    background: url("/assets/img/screens/home-dashboard.jpg") center / cover no-repeat;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  .hero__copy {
    position: relative;
    z-index: 1;
  }

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

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

  .split-section,
  .care-section,
  .activity-section,
  .download-section {
    padding: 48px 16px;
  }

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

  .screen-pair img:nth-child(2),
  .screen-pair--reverse img:nth-child(1) {
    margin-top: 34px;
  }

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