:root {
  color-scheme: light;
  --page: #f1fbf9;
  --surface: #ffffff;
  --surface-alt: #e8faf5;
  --stroke: #bfece2;
  --accent: #2bd1ae;
  --accent-dark: #2880d7;
  --accent-soft: #d8f6ee;
  --text: #123b4a;
  --muted: #5a7b89;
  --text-on-accent: #ffffff;
  --shadow: rgba(15, 39, 64, 0.12);
  --header: rgba(241, 251, 249, 0.88);
  --warning: #e67e22;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #09151d;
    --surface: #10212b;
    --surface-alt: #142934;
    --stroke: #234453;
    --accent: #2bd1ae;
    --accent-dark: #6cb6ff;
    --accent-soft: #163a34;
    --text: #eaf7fb;
    --muted: #91acb9;
    --text-on-accent: #06161b;
    --shadow: rgba(0, 0, 0, 0.36);
    --header: rgba(9, 21, 29, 0.9);
    --warning: #f0a24a;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f1fbf9;
  --surface: #ffffff;
  --surface-alt: #e8faf5;
  --stroke: #bfece2;
  --accent: #2bd1ae;
  --accent-dark: #2880d7;
  --accent-soft: #d8f6ee;
  --text: #123b4a;
  --muted: #5a7b89;
  --text-on-accent: #ffffff;
  --shadow: rgba(15, 39, 64, 0.12);
  --header: rgba(241, 251, 249, 0.88);
  --warning: #e67e22;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #09151d;
  --surface: #10212b;
  --surface-alt: #142934;
  --stroke: #234453;
  --accent: #2bd1ae;
  --accent-dark: #6cb6ff;
  --accent-soft: #163a34;
  --text: #eaf7fb;
  --muted: #91acb9;
  --text-on-accent: #06161b;
  --shadow: rgba(0, 0, 0, 0.36);
  --header: rgba(9, 21, 29, 0.9);
  --warning: #f0a24a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, transparent 31px, color-mix(in srgb, var(--stroke) 18%, transparent) 32px),
    linear-gradient(180deg, transparent 0, transparent 31px, color-mix(in srgb, var(--stroke) 18%, transparent) 32px);
  background-size: 32px 32px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px 32px;
  background: var(--header);
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86svh;
  overflow: hidden;
  padding: 92px 32px 72px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  content: "";
  background: var(--surface);
  border-top: 1px solid var(--stroke);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}

.hero__lead {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 650;
}

.hero__actions,
.cta-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  border: 1px solid transparent;
}

.button--primary {
  color: var(--text-on-accent);
  background: var(--accent);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.button--primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--accent-dark));
}

.button--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--stroke);
}

.button--secondary:hover {
  border-color: var(--accent-dark);
}

.button--with-icon {
  gap: 10px;
}

.button--with-icon img {
  width: 22px;
  height: 22px;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phone {
  position: absolute;
  width: 286px;
  border: 1px solid color-mix(in srgb, var(--stroke) 86%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 34px 80px var(--shadow);
  overflow: hidden;
}

.phone--primary {
  top: 96px;
  right: max(32px, calc((100vw - 1180px) / 2));
  transform: rotate(3deg);
}

.phone--secondary {
  right: max(280px, calc((100vw - 1180px) / 2 + 230px));
  bottom: 92px;
  width: 226px;
  transform: rotate(-6deg);
  opacity: 0.92;
}

.phone__bar {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--accent);
}

.phone__bar span {
  width: 46px;
  height: 5px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text-on-accent) 82%, transparent);
}

.phone__screen {
  padding: 16px;
  background: var(--surface);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.app-top img {
  width: 36px;
  height: 36px;
}

.app-top strong,
.app-top span {
  display: block;
}

.app-top strong {
  font-size: 14px;
  line-height: 1.1;
}

.app-top span {
  color: var(--muted);
  font-size: 12px;
}

.chart-stage,
.body-stage {
  display: grid;
  place-items: center;
  min-height: 296px;
  background: var(--surface-alt);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
}

.chart-stage img {
  width: 154px;
  max-height: 280px;
}

.chart--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chart--light {
    display: none;
  }

  :root:not([data-theme="light"]) .chart--dark {
    display: block;
  }
}

:root[data-theme="dark"] .chart--light {
  display: none;
}

:root[data-theme="dark"] .chart--dark {
  display: block;
}

.body-stage {
  min-height: 222px;
}

.body-stage img {
  width: 100px;
}

.mini-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}

.mini-list strong {
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.mini-list--blue strong {
  color: var(--warning);
}

.section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0;
}

.section--intro {
  padding: 0 0 72px;
}

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

.metric-card,
.feature-card,
.privacy-item {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--shadow) 58%, transparent);
}

.metric-card {
  padding: 20px;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.metric-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section__header {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.section__header p:last-child,
.split-section p,
.cta-section p {
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  padding: 24px;
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--text-on-accent);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-item {
  padding: 18px;
}

.privacy-item strong,
.privacy-item span {
  display: block;
}

.privacy-item strong {
  font-size: 17px;
}

.privacy-item span {
  margin-top: 4px;
  color: var(--muted);
}

.cta-section {
  justify-content: space-between;
  padding: 36px;
  margin-bottom: 72px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
}

.cta-section > div {
  width: min(640px, 100%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  font-size: 14px;
}

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

  .main-nav {
    display: none;
  }

  .theme-toggle {
    justify-self: end;
  }

  .hero {
    min-height: 820px;
    padding-top: 86px;
    align-items: start;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .phone--primary {
    top: 372px;
    right: 32px;
  }

  .phone--secondary {
    right: 244px;
    bottom: 52px;
  }

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

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

  .section h2 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 18px;
  }

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

  .theme-toggle__label {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding: 76px 20px 52px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(320px, 100%);
  }

  .button {
    width: 100%;
  }

  .phone--primary {
    top: 384px;
    right: -42px;
    width: 242px;
  }

  .phone--secondary {
    right: 146px;
    bottom: 12px;
    width: 184px;
  }

  .chart-stage {
    min-height: 228px;
  }

  .chart-stage img {
    width: 122px;
  }

  .body-stage {
    min-height: 176px;
  }

  .body-stage img {
    width: 78px;
  }

  .section {
    width: calc(100% - 36px);
    padding: 64px 0;
  }

  .section--intro {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .metric-card,
  .feature-card {
    padding: 18px;
  }

  .section h2 {
    font-size: 28px;
  }

  .section__header p:last-child,
  .split-section p,
  .cta-section p {
    font-size: 16px;
  }

  .cta-section {
    align-items: stretch;
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
