:root {
  --bg-deep: #d9e4f2;
  --bg-mid: #eaf0f8;
  --bg-end: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #152033;
  --text-muted: #5a6778;
  --accent: #2f6db5;
  --accent-2: #4aa3d9;
  --accent-deep: #1f4f8a;
  --accent-soft: rgba(47, 109, 181, 0.12);
  --hairline: rgba(47, 109, 181, 0.14);
  --shadow: 0 18px 50px rgba(31, 79, 138, 0.12);
  --shadow-sm: 0 8px 24px rgba(31, 79, 138, 0.1);
  --radius: 20px;
  --focus: #2f6db5;
  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 163, 217, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(47, 109, 181, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 35%, var(--bg-end) 100%);
  background-attachment: scroll;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(247, 249, 252, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav__brand img {
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(47, 109, 181, 0.25);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__download {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 109, 181, 0.28);
}

.nav__download:hover {
  background: var(--accent-deep) !important;
  color: #fff !important;
}

.nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 46rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(247, 249, 252, 0.85) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(47, 109, 181, 0.04) 47px,
      rgba(47, 109, 181, 0.04) 48px
    );
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.55;
}

.hero__orb--a {
  width: 280px;
  height: 280px;
  top: 12%;
  left: 8%;
  background: radial-gradient(circle, rgba(74, 163, 217, 0.55), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}

.hero__orb--b {
  width: 320px;
  height: 320px;
  right: 6%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(47, 109, 181, 0.4), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate-reverse;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__icon {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  margin-bottom: 1.4rem;
  box-shadow:
    0 20px 48px rgba(47, 109, 181, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: float-icon 4.5s ease-in-out infinite;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.meters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin: 0 auto 1.75rem;
  padding: 0.55rem 0.9rem;
  width: fit-content;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(232, 240, 250, 0.7));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.meters__bar {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  height: calc(28% + (var(--i) * 4%));
  animation: meter 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.08s);
  transform-origin: bottom center;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.hero__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, var(--accent-deep));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.45rem;
  box-shadow: 0 10px 28px rgba(47, 109, 181, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(47, 109, 181, 0.42);
}

.btn--light {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 10px 28px rgba(15, 40, 80, 0.18);
}

.btn--light:hover {
  background: #f4f8fc;
}

.btn--ghost {
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn--bmc {
  padding: 0;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn--bmc img {
  display: block;
  width: 200px;
  height: auto;
}

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

/* —— Sections —— */
.section__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section__lede {
  margin: 0 auto;
  max-width: 30rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.features {
  padding: 1rem 0 4.5rem;
}

.features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: 1.45rem 1.35rem 1.55rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 252, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 163, 217, 0.16), transparent 45%, rgba(47, 109, 181, 0.08));
  opacity: 0.85;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--accent-deep);
  background: linear-gradient(145deg, #fff, var(--accent-soft));
  border: 1px solid var(--hairline);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* —— How —— */
.how {
  padding: 1rem 0 4.5rem;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.step__num {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 8px 18px rgba(47, 109, 181, 0.3);
}

.step__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

/* —— CTA band —— */
.cta-band {
  padding: 0 1.5rem 4.5rem;
}

.cta-band__inner {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.75rem;
  border-radius: 28px;
  text-align: center;
  color: #eef5fc;
  background: linear-gradient(135deg, #1f4f8a 0%, #2f6db5 48%, #3d8ec8 100%);
  box-shadow: 0 24px 60px rgba(31, 79, 138, 0.35);
  overflow: hidden;
}

.cta-band__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  pointer-events: none;
}

.cta-band__heading {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-band__text {
  position: relative;
  margin: 0 auto 1.6rem;
  max-width: 30rem;
  color: rgba(238, 245, 252, 0.88);
  line-height: 1.5;
}

.cta-band__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* —— Footer —— */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(247, 249, 252, 0.65);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--d, 0) * 0.07s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Motion —— */
@keyframes meter {
  from { transform: scaleY(0.45); opacity: 0.75; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__download) {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }
}

@media (max-width: 420px) {
  .footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orb,
  .hero__icon,
  .meters__bar {
    animation: none !important;
  }

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

  .card:hover,
  .step:hover,
  .btn--primary:hover,
  .btn--bmc:hover,
  .btn--ghost:hover,
  .btn--light:hover {
    transform: none;
  }

  .btn {
    transition: none;
  }
}
