:root {
  color-scheme: light;
  --page: #f6f8f6;
  --surface: #ffffff;
  --ink: #10252d;
  --muted: #58686d;
  --navy: #0b2e40;
  --navy-soft: #164b58;
  --teal: #0d9485;
  --teal-dark: #087267;
  --mint: #c5f5d7;
  --lime: #c4e83f;
  --coral: #ef5948;
  --sand: #f8f2e6;
  --line: #dbe4e2;
  --shadow: 0 22px 60px rgba(11, 46, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(13, 148, 133, 0.34);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 228, 226, 0.88);
  background: rgba(246, 248, 246, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--navy);
  background: var(--lime);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(11, 46, 64, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--navy-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 8%, rgba(196, 232, 63, 0.25), transparent 26rem),
    linear-gradient(150deg, #f8fbf8 0%, #eff6f3 100%);
}

.hero-grid,
.content-section,
.page,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  min-height: 650px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 17px 0 20px;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 670px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

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

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(13, 148, 133, 0.2);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--navy);
  background: var(--surface);
}

.app-preview {
  position: relative;
  min-height: 468px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px;
  color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, #075b60 100%);
  box-shadow: var(--shadow);
}

.preview-orbit {
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 148, 133, 0.34);
}

.orbit-one {
  width: 280px;
  height: 280px;
  top: -105px;
  right: -75px;
}

.orbit-two {
  width: 170px;
  height: 170px;
  bottom: -60px;
  left: -60px;
  background: rgba(196, 232, 63, 0.12);
}

.preview-content {
  position: relative;
  z-index: 1;
  min-height: 468px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.streak {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  letter-spacing: 0;
}

.score {
  margin-top: 24px;
  font-size: clamp(4rem, 8vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.app-preview p {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--lime);
}

.preview-card {
  margin-top: 36px;
  padding: 20px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.preview-card span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.content-section {
  padding: 80px 0;
}

.content-section.compact {
  padding-top: 0;
}

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

.section-heading h2 {
  margin-top: 12px;
}

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

.feature,
.doc-section,
.notice {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.feature {
  padding: 22px;
}

.feature p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--teal-dark);
  background: rgba(197, 245, 215, 0.72);
  font-weight: 900;
}

.notice {
  padding: 22px 24px;
  border-left: 6px solid var(--lime);
  background: var(--sand);
}

.notice.warning {
  margin-top: 26px;
  border-left-color: var(--coral);
}

.notice strong {
  color: var(--navy);
}

.notice p:last-child {
  margin-bottom: 0;
}

.page {
  max-width: 880px;
  padding: 70px 0 84px;
}

.page h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.legal-meta {
  margin: -8px 0 32px;
  font-size: 0.93rem;
}

.doc-section {
  margin-top: 16px;
  padding: 24px;
}

.doc-section h2 {
  font-size: 1.4rem;
}

.doc-section p:last-child,
.doc-section ul:last-child {
  margin-bottom: 0;
}

.support-page {
  max-width: 980px;
}

.support-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-grid .doc-section {
  margin: 0;
}

.not-found {
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer {
  padding: 34px 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-footer.simple {
  display: block;
  text-align: center;
}

@media (max-width: 820px) {
  .hero-grid,
  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 56px 0;
  }

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

  .preview-content {
    min-height: 400px;
  }

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

@media (max-width: 560px) {
  .nav {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-grid,
  .content-section,
  .page,
  .site-footer {
    width: min(100% - 28px, 1080px);
  }

  .hero-grid {
    min-height: auto;
    padding: 46px 0 54px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

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

  .content-section {
    padding: 60px 0;
  }

  .page {
    padding: 48px 0 66px;
  }

  .app-preview,
  .preview-content {
    min-height: 360px;
  }

  .preview-content {
    padding: 26px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .button {
    transition: none;
  }
}

