:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --ink: #0c1d45;
  --muted: #58657a;
  --navy: #091f61;
  --blue: #1247c2;
  --blue-dark: #0b3697;
  --sky: #40b7f2;
  --teal: #0da89b;
  --amber: #ffb01f;
  --coral: #ef4f51;
  --line: #dce3ef;
  --shadow: 0 22px 64px rgba(9, 31, 97, 0.14);
}

* {
  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 {
  min-height: 100vh;
  margin: 0;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(18, 71, 194, 0.3);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 227, 239, 0.9);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

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

.nav {
  min-height: 74px;
  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: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.nav-links a {
  color: #29436f;
  text-decoration: none;
}

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

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 9%, rgba(64, 183, 242, 0.2), transparent 27rem),
    radial-gradient(circle at 95% 30%, rgba(13, 168, 155, 0.12), transparent 25rem),
    linear-gradient(150deg, #f9fbff 0%, #eef3fb 100%);
}

.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;
  color: var(--blue-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: 780px;
  margin: 17px 0 20px;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(18, 71, 194, 0.22);
}

.button.primary:hover {
  background: var(--blue-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.15);
  border-radius: 38px;
  color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue) 62%, #087ca7 100%);
  box-shadow: var(--shadow);
}

.preview-orbit {
  position: absolute;
  border-radius: 50%;
  background: rgba(64, 183, 242, 0.3);
}

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

.orbit-two {
  width: 170px;
  height: 170px;
  bottom: -60px;
  left: -60px;
  background: rgba(13, 168, 155, 0.25);
}

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

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

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

.score {
  margin-top: 38px;
  font-size: clamp(4rem, 10vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.preview-content p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), #72eadb);
}

.preview-card {
  margin-top: 42px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.preview-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

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

.section-heading {
  max-width: 700px;
}

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

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

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

.feature {
  padding: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #1683d8);
  font-size: 0.85rem;
  font-weight: 900;
}

.feature p,
.doc-section p,
.notice p {
  margin-bottom: 0;
}

.notice {
  padding: 24px;
  border-left: 5px solid var(--teal);
}

.notice strong {
  color: var(--navy);
  font-size: 1.06rem;
}

.warning {
  border-left-color: var(--amber);
}

.page {
  padding: 72px 0 96px;
}

.page > h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 6vw, 4.7rem);
}

.legal-meta {
  margin-bottom: 30px;
  font-size: 0.94rem;
}

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

.doc-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

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

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

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

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

.site-footer p {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
  font-size: 0.92rem;
}

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

.site-footer.simple p {
  margin: 0;
}

@media (max-width: 850px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 620px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-grid,
  .content-section,
  .page {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

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

  .preview-content {
    padding: 28px;
  }

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

  .footer-links {
    text-align: left;
  }
}
