:root {
  --color-background-primary: #000000;
  --color-background-secondary: #141414;
  --color-background-card: #1f1f1f;
  --color-background-overlay: rgba(0, 0, 0, 0.5);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.45);
  --color-brand-accent: #f0f0ff;
  --color-separator: rgba(255, 255, 255, 0.1);
  --color-success: #33e666;
  --color-error: #ff4545;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --container-max: 1120px;
  --container-copy: 640px;
  --container-text: 560px;
  --container-section-text: 720px;
  --size-brand-mark: 24px;
  --size-control: 48px;
  --size-header-offset: 64px;
  --size-phone-max: 360px;
  --size-phone-mobile: 320px;
  --size-phone-radius: 40px;
  --size-touch-dot: 32px;
  --size-photo-glow: 96px;
  --size-photo-building-width: 112px;
  --size-photo-building-height: 168px;
  --size-photo-ground-height: 112px;
  --size-pip-face: 40px;
  --size-pip-body: 72px;
  --font-size-caption: 13px;
  --font-size-small: 14px;
  --font-size-control: 15px;
  --font-size-body: 16px;
  --font-size-lead-body: 17px;
  --font-size-screen-title: 18px;
  --font-size-flow-title: 20px;
  --font-size-card-title: 22px;
  --font-size-hero-title: clamp(56px, 9vw, 112px);
  --font-size-hero-lead: clamp(24px, 4vw, 44px);
  --font-size-section-title: clamp(32px, 5vw, 56px);
  --color-page-top: #050505;
  --color-phone-top: #2b2b2f;
  --color-phone-bottom: #070707;
  --color-photo-sky-start: #879bb8;
  --color-photo-sky-end: #33455f;
  --color-photo-dark: #111111;
  --color-photo-building-top: #252c34;
  --color-photo-building-bottom: #0d0d0f;
  --color-photo-ground: #060606;
  --color-pip-top: #363247;
  --color-pip-bottom: #151515;
  --color-pip-face: #d8c2a7;
  --color-pip-body: #1e2430;
  --color-hero-glow: rgba(240, 240, 255, 0.16);
  --color-header-glass: rgba(0, 0, 0, 0.72);
  --color-brand-mark-start: rgba(240, 240, 255, 0.96);
  --color-brand-mark-end: rgba(255, 255, 255, 0.36);
  --color-phone-shadow: rgba(0, 0, 0, 0.48);
  --color-photo-glow: rgba(240, 240, 255, 0.84);
  --color-photo-ground-transparent: rgba(16, 16, 18, 0);
  --color-card-glass: rgba(31, 31, 31, 0.72);
  --color-privacy-glass: rgba(31, 31, 31, 0.64);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background-primary);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text-primary);
  background:
    radial-gradient(circle at 16% 8%, var(--color-hero-glow), transparent 28%),
    linear-gradient(180deg, var(--color-page-top) 0%, var(--color-background-primary) 52%);
  font-family: var(--font-family);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-m);
  background: var(--color-header-glass);
  border-bottom: 1px solid var(--color-separator);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.privacy-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: var(--space-s);
  font-size: var(--font-size-body);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: var(--size-brand-mark);
  height: var(--size-brand-mark);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-s);
  background:
    linear-gradient(135deg, var(--color-brand-mark-start), var(--color-brand-mark-end)),
    var(--color-background-secondary);
  box-shadow: 0 8px 24px var(--color-hero-glow);
}

.site-nav {
  gap: var(--space-l);
}

.site-nav a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text-primary);
}

main {
  width: 100%;
}

.hero-section,
.section-block,
.flow-section,
.privacy-section,
.site-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-right: var(--space-m);
  padding-left: var(--space-m);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--space-xxl);
  align-items: center;
  min-height: calc(100svh - var(--size-header-offset) - var(--space-xxl));
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.hero-copy {
  max-width: var(--container-copy);
  min-width: 0;
  width: 100%;
}

.hero-copy h1 {
  margin: 0;
  font-size: var(--font-size-hero-title);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: var(--container-text);
  margin: var(--space-l) 0 0;
  font-size: var(--font-size-hero-lead);
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.hero-body {
  max-width: var(--container-text);
  margin: var(--space-m) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lead-body);
  overflow-wrap: anywhere;
}

.no-break {
  white-space: nowrap;
}

.privacy-link,
.secondary-link {
  min-height: var(--size-control);
  margin-top: var(--space-xl);
  padding: var(--space-s) var(--space-l);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-pill);
  color: var(--color-background-primary);
  background: var(--color-brand-accent);
  font-size: var(--font-size-control);
  font-weight: 700;
  text-decoration: none;
}

.privacy-link:hover,
.privacy-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, var(--size-phone-max));
  padding: var(--space-s);
  border: 1px solid var(--color-separator);
  border-radius: var(--size-phone-radius);
  background: linear-gradient(180deg, var(--color-phone-top), var(--color-phone-bottom));
  box-shadow: 0 32px 80px var(--color-phone-shadow);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--color-background-primary);
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-m);
  font-size: var(--font-size-screen-title);
  font-weight: 700;
}

.mock-dot {
  width: var(--size-touch-dot);
  height: var(--size-touch-dot);
  border-radius: var(--radius-pill);
  background: var(--color-background-card);
}

.photo-stack {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  background: var(--color-background-secondary);
}

.main-photo,
.pip-photo,
.photo-sky,
.photo-building,
.photo-ground,
.pip-face,
.pip-body {
  position: absolute;
}

.main-photo {
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-photo-sky-start) 0%,
    var(--color-photo-sky-end) 48%,
    var(--color-photo-dark) 100%
  );
}

.photo-sky {
  top: 32px;
  right: 32px;
  width: var(--size-photo-glow);
  height: var(--size-photo-glow);
  border-radius: var(--radius-pill);
  background: var(--color-photo-glow);
  filter: blur(16px);
}

.photo-building {
  right: 40px;
  bottom: 72px;
  width: var(--size-photo-building-width);
  height: var(--size-photo-building-height);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  background: linear-gradient(180deg, var(--color-photo-building-top), var(--color-photo-building-bottom));
}

.photo-ground {
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--size-photo-ground-height);
  background: linear-gradient(180deg, var(--color-photo-ground-transparent), var(--color-photo-ground) 64%);
}

.pip-photo {
  top: var(--space-s);
  left: var(--space-s);
  width: 32%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 3px solid var(--color-separator);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--color-pip-top), var(--color-pip-bottom));
}

.pip-face {
  top: 24px;
  left: 50%;
  width: var(--size-pip-face);
  height: var(--size-pip-face);
  border-radius: var(--radius-pill);
  background: var(--color-pip-face);
  transform: translateX(-50%);
}

.pip-body {
  right: 16px;
  bottom: -8px;
  left: 16px;
  height: var(--size-pip-body);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: var(--color-pip-body);
}

.location-chip {
  position: absolute;
  right: var(--space-s);
  bottom: var(--space-m);
  left: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-pill);
  background: var(--color-background-overlay);
  color: var(--color-text-primary);
  font-size: var(--font-size-caption);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.mock-caption {
  margin-top: var(--space-s);
  padding: var(--space-m);
  border-radius: var(--radius-m);
  color: var(--color-text-secondary);
  background: var(--color-background-secondary);
  font-size: var(--font-size-small);
}

.section-block,
.flow-section,
.privacy-section {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxxl);
}

.section-heading {
  max-width: var(--container-section-text);
  margin-bottom: var(--space-xl);
}

.section-heading h2,
.privacy-section h2 {
  margin: 0;
  font-size: var(--font-size-section-title);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.privacy-section p {
  margin: var(--space-m) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
}

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

.feature-card {
  padding: var(--space-l);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-m);
  background: var(--color-card-glass);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  color: var(--color-background-primary);
  background: var(--color-brand-accent);
  font-size: var(--font-size-small);
  font-weight: 800;
}

.feature-card h3 {
  margin: var(--space-l) 0 var(--space-s);
  font-size: var(--font-size-card-title);
  line-height: 1.24;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-control);
}

.flow-list {
  display: grid;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-l);
  align-items: start;
  padding: var(--space-l);
  border-top: 1px solid var(--color-separator);
  counter-increment: flow;
}

.flow-list li::before {
  content: "0" counter(flow);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-small);
  font-weight: 800;
}

.flow-list span {
  font-size: var(--font-size-flow-title);
  font-weight: 700;
}

.flow-list p {
  margin: 0;
  color: var(--color-text-secondary);
}

.privacy-section {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-l);
  background: var(--color-privacy-glass);
}

.privacy-section .secondary-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--color-separator);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-small);
}

@media (max-width: 840px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    min-height: auto;
  }

  .hero-copy,
  .hero-lead,
  .hero-body {
    max-width: 320px;
  }

  .hero-lead {
    font-size: var(--font-size-flow-title);
    word-break: break-all;
  }

  .hero-body {
    font-size: var(--font-size-control);
    word-break: break-all;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

  .privacy-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-m);
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--space-s);
  }

  .site-nav a {
    padding-right: var(--space-s);
  }

  .hero-section,
  .section-block,
  .flow-section,
  .privacy-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .flow-list li {
    grid-template-columns: 1fr;
    gap: var(--space-s);
    padding-right: 0;
    padding-left: 0;
  }

  .phone-shell {
    width: min(100%, var(--size-phone-mobile));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-s);
  }
}

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

  .privacy-link,
  .secondary-link {
    transition: none;
  }
}
