:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: rgba(13, 17, 18, 0.78);
  --panel-strong: rgba(20, 26, 28, 0.92);
  --text: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.76);
  --quiet: rgba(247, 244, 239, 0.58);
  --soft: rgba(247, 244, 239, 0.12);
  --line: rgba(247, 244, 239, 0.15);
  --accent: #d8b4fe;
  --accent-2: #77e0c1;
  --accent-3: #f1c35b;
  --danger: #ff6f8a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(119, 224, 193, 0.12), transparent 32rem),
    linear-gradient(180deg, #050607 0%, #0b1112 42%, #050607 100%);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

video {
  pointer-events: none;
  user-select: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
}

.site-header.is-scrolled {
  border-color: transparent;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  position: relative;
  z-index: 23;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.68));
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.78);
}

.brand img {
  width: 48px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.nav-links a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  position: relative;
  z-index: 23;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  filter:
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.9))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.62));
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--text);
  color: #050607;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.44),
    0 5px 14px rgba(0, 0, 0, 0.32);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

.button:hover {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.52),
    0 8px 18px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.button.store {
  min-width: 184px;
  justify-content: flex-start;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.58),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

.store-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.button.secondary .store-icon {
  filter: invert(1);
}

.button small {
  display: block;
  color: rgba(5, 6, 7, 0.62);
  font-size: 11px;
  line-height: 1;
}

.button.secondary small {
  color: rgba(247, 244, 239, 0.62);
}

.button strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #050607;
  pointer-events: none;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-video video.is-playing {
  opacity: 1;
}

.hero-video::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.72) 42%, rgba(5, 6, 7, 0.22) 100%),
    linear-gradient(0deg, #050607 0%, transparent 28%);
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 56px;
  align-items: start;
  width: min(1160px, calc(100% - 40px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 120px 0 96px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 5px 28px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.48;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 244, 239, 0.8);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.phone {
  width: min(100%, 370px);
  margin-left: auto;
  border: 1px solid rgba(247, 244, 239, 0.2);
  border-radius: 34px;
  background: #080a0b;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-bottom: 1px solid rgba(247, 244, 239, 0.08);
}

.speaker {
  width: 72px;
  height: 6px;
  border-radius: 99px;
  background: rgba(247, 244, 239, 0.2);
}

.phone-screen {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 14%, rgba(216, 180, 254, 0.18), transparent 15rem),
    linear-gradient(180deg, #0c1112 0%, #060707 100%);
}

.app-preview {
  display: flex;
  min-height: 630px;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(247, 244, 239, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header span,
.app-mini-card span,
.app-coach > span {
  display: block;
  color: rgba(247, 244, 239, 0.55);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-header strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  letter-spacing: 0;
}

.app-header img {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(216, 180, 254, 0.24));
}

.app-hero-card {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 239, 0.14);
  border-radius: 8px;
  background: #101415;
}

.app-hero-card video {
  width: 100%;
  height: 244px;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.95) contrast(1.05);
}

.app-hero-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 11, 0.12), rgba(8, 10, 11, 0.92)),
    linear-gradient(90deg, rgba(216, 180, 254, 0.18), transparent 64%);
  content: "";
}

.app-hero-overlay {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric {
  padding: 12px 14px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.58);
  backdrop-filter: blur(14px);
}

.metric span {
  display: block;
  color: rgba(247, 244, 239, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
}

.cue {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 16px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.66);
  backdrop-filter: blur(16px);
}

.cue p {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
}

.cue small {
  color: rgba(247, 244, 239, 0.7);
}

.app-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-mini-card,
.app-start,
.app-coach,
.app-tabs {
  border: 1px solid rgba(247, 244, 239, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.app-mini-card {
  min-height: 96px;
  padding: 14px;
}

.app-mini-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 30px;
}

.app-mini-card small,
.app-coach small {
  color: rgba(247, 244, 239, 0.62);
}

.app-start {
  display: block;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(216, 180, 254, 0.24), rgba(119, 224, 193, 0.12)),
    rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-start:hover {
  border-color: rgba(216, 180, 254, 0.48);
  transform: translateY(-1px);
}

.app-start span {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-start strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.app-coach {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.app-coach > span {
  flex: 0 0 82px;
}

.app-coach strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: auto;
  padding: 10px 8px;
  color: rgba(247, 244, 239, 0.55);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.app-tabs span:first-child {
  color: var(--accent);
}

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

.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.feature-grid,
.download-grid {
  display: grid;
  gap: 16px;
}

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

.feature,
.download-panel,
.legal-card {
  border: 1px solid rgba(247, 244, 239, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(8, 10, 11, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.feature {
  min-height: 250px;
  padding: 24px;
  transition:
    opacity 700ms ease,
    transform 320ms ease,
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}

.feature:hover,
.legal-card:hover {
  border-color: rgba(247, 244, 239, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(8, 10, 11, 0.6);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.icon {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 24px;
  padding: 0 11px;
  border: 1px solid rgba(247, 244, 239, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.feature h3 {
  max-width: 260px;
  margin-bottom: 14px;
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.06;
}

.feature p,
.download-panel p,
.legal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.download {
  padding-bottom: 72px;
}

.download-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
}

.download-panel {
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(247, 244, 239, 0.1), rgba(216, 180, 254, 0.075)),
    rgba(255, 255, 255, 0.045);
}

.download-panel h2 {
  margin-bottom: 18px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mini-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: rgba(247, 244, 239, 0.62);
  font-size: 13px;
}

.mini-legal a {
  color: var(--accent);
}

.legal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition:
    opacity 700ms ease,
    transform 320ms ease,
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}

.legal-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: rgba(247, 244, 239, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: rgba(247, 244, 239, 0.7);
  text-decoration: none;
}

.legal-page {
  width: min(790px, calc(100% - 40px));
  margin: 0 auto;
  padding: 122px 0 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
  font-size: clamp(40px, 7vw, 72px);
}

.legal-page h2 {
  margin: 36px 0 10px;
  font-size: 24px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page a {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.section .feature,
.section .download-panel,
.section .legal-card {
  opacity: 0;
  transform: translateY(14px);
  transition-delay: 80ms;
}

.section.is-visible .feature,
.section.is-visible .download-panel,
.section.is-visible .legal-card {
  opacity: 1;
  transform: translateY(0);
}

.section.is-visible .feature:nth-child(2),
.section.is-visible .legal-card {
  transition-delay: 160ms;
}

.section.is-visible .feature:nth-child(3) {
  transition-delay: 240ms;
}

.section.is-visible .feature:hover,
.section.is-visible .legal-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    z-index: 22;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 84px 20px 22px;
    border-bottom: 0;
    background: rgba(5, 6, 7, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -120px 180px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px) saturate(1.18);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 0;
    color: rgba(247, 244, 239, 0.9);
    font-size: 16px;
    font-weight: 800;
    text-align: left;
    text-shadow:
      0 4px 16px rgba(0, 0, 0, 0.92),
      0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .nav-links .button {
    width: 100%;
    margin: 8px 0 0;
  }

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

  .hero-inner {
    gap: 34px;
    padding-top: 112px;
  }

  .phone {
    width: min(100%, 350px);
    margin: 0;
  }

  .phone-screen {
    min-height: 568px;
  }

  .app-preview {
    min-height: 568px;
  }

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

@media (max-width: 620px) {
  .nav,
  .hero-inner,
  .section,
  .footer-inner,
  .legal-page {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 82svh;
  }

  .hero-inner {
    display: flex;
    min-height: 82svh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding: 104px 0 26px;
  }

  .hero-video::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.58) 0%, rgba(5, 6, 7, 0.18) 32%, rgba(5, 6, 7, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0.18));
  }

  .hero-copy {
    display: flex;
    min-height: calc(82svh - 130px);
    flex-direction: column;
    max-width: 100%;
    padding-top: 8px;
  }

  .lead {
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.42;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
  }

  .button.store {
    min-width: 0;
    width: auto;
    min-height: 54px;
    padding: 0 12px;
  }

  .store-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .button strong {
    font-size: 14px;
  }

  .button small {
    font-size: 10px;
  }

  .trust-row {
    gap: 8px;
    margin-top: 14px;
  }

  .pill {
    min-height: 31px;
    padding: 0 10px;
    font-size: 12px;
  }

  .phone {
    display: none;
  }

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

  .section {
    padding: 38px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section h2 {
    margin-bottom: 10px;
  }

  .feature {
    min-height: 0;
    padding: 16px;
  }

  .icon {
    margin-bottom: 16px;
  }

  .download {
    padding-bottom: 44px;
  }

  .download-panel {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .app-header strong {
    font-size: 22px;
  }

  .app-hero-card,
  .app-hero-card video {
    min-height: 228px;
    height: 228px;
  }
}

@media (max-width: 360px) {
  .cta-row {
    grid-template-columns: 1fr;
  }

  .button.store {
    width: 100%;
  }
}

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

  .button:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
