:root {
  --mf-blue: #1677ff;
  --mf-indigo: #635bff;
  --mf-ink: #101828;
  --mf-muted: #667085;
  --mf-line: rgba(16, 24, 40, 0.08);
  --mf-shadow: 0 24px 70px -35px rgba(15, 55, 120, 0.35);
}

html {
  scroll-padding-top: 72px;
}

body {
  color: var(--mf-ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #ffffff;
  background: rgba(22, 119, 255, 0.88);
}

main > nav {
  border-color: rgba(16, 24, 40, 0.07) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 32px rgba(15, 42, 90, 0.05);
}

main > nav > div {
  height: 60px !important;
}

main > nav a[aria-label] > span,
footer span.grid,
.legal-card ~ * span.grid,
body main > div > div:first-child span.grid {
  background: linear-gradient(145deg, var(--mf-blue), var(--mf-indigo)) !important;
  box-shadow: 0 8px 20px rgba(52, 99, 255, 0.24);
}

main > nav a[href="#download"] {
  background: linear-gradient(135deg, var(--mf-blue), var(--mf-indigo)) !important;
  box-shadow: 0 8px 22px rgba(45, 104, 255, 0.28);
}

main > nav a[href="#download"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#top {
  isolation: isolate;
  min-height: 760px;
  background:
    radial-gradient(circle at 15% 20%, rgba(90, 166, 255, 0.16), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(126, 87, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 62%);
}

#top::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.36;
  background-image: linear-gradient(rgba(58, 115, 220, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 115, 220, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

#top .hero-glow {
  height: 620px !important;
  background: radial-gradient(circle at 50% 40%, rgba(86, 167, 255, 0.32), rgba(127, 106, 255, 0.13) 42%, transparent 72%) !important;
  filter: blur(18px) !important;
}

#top p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 999px;
  color: #2869e8 !important;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 28px rgba(40, 105, 232, 0.08);
  backdrop-filter: blur(12px);
}

#top p:first-child::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

#top h1 {
  color: #111827;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

#top h1::after {
  display: block;
  width: min(240px, 35vw);
  height: 5px;
  margin: 24px auto 0;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2a8cff 25%, #7667ff 75%, transparent);
  opacity: 0.8;
}

#top a[href="#download"]:not(nav a),
#top a[href="#features"] {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#top a[href="#download"]:not(nav a) {
  background: linear-gradient(135deg, var(--mf-blue), var(--mf-indigo)) !important;
  box-shadow: 0 14px 34px rgba(50, 104, 255, 0.3);
}

#top a[href="#features"] {
  border: 1px solid rgba(22, 119, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 28px rgba(46, 88, 155, 0.08);
  backdrop-filter: blur(12px);
}

#top a[href="#download"]:not(nav a):hover,
#top a[href="#features"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(50, 104, 255, 0.24);
}

.product-stage {
  position: relative;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(220, 235, 255, 0.74)) !important;
  box-shadow: 0 42px 100px -38px rgba(29, 78, 160, 0.48), 0 0 0 1px rgba(68, 118, 200, 0.08) !important;
  backdrop-filter: blur(20px);
}

.product-stage::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(45, 145, 255, 0.35), rgba(130, 91, 255, 0.24), transparent 55%);
  filter: blur(14px);
}

.product-stage img {
  border: 1px solid rgba(14, 44, 90, 0.1);
  box-shadow: 0 20px 50px -30px rgba(11, 38, 83, 0.48);
}

#features,
#pricing,
#faq {
  background: linear-gradient(180deg, #f7faff 0%, #f4f7fb 100%) !important;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3974e9 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

.section-eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mf-blue), var(--mf-indigo));
}

.section-title {
  color: #111827;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(65, 94, 145, 0.1) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 22px 60px -44px rgba(21, 61, 125, 0.5) !important;
  backdrop-filter: blur(16px);
}

.feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #2b8cff, #7567ff);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.feature-card::after {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 190px;
  height: 190px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 140, 255, 0.12), transparent 70%);
  transition: transform 0.38s ease;
}

.feature-card:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(42, 124, 255, 0.18) !important;
  box-shadow: 0 28px 70px -38px rgba(35, 91, 180, 0.42) !important;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  transform: scale(1.16);
}

.feature-card > div:first-child {
  margin-bottom: 48px !important;
}

.feature-card > div:first-child > span {
  background: linear-gradient(145deg, #edf6ff, #eef0ff) !important;
  box-shadow: inset 0 0 0 1px rgba(64, 120, 235, 0.08), 0 10px 25px rgba(52, 105, 220, 0.1);
}

#privacy {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

#privacy::before {
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 620px;
  height: 620px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 150, 255, 0.1), transparent 68%);
  pointer-events: none;
}

#privacy > div > div:last-child,
#download > div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 82% 6%, rgba(68, 124, 255, 0.38), transparent 30%), linear-gradient(145deg, #111827, #101a30 58%, #17142a) !important;
  box-shadow: 0 34px 85px -42px rgba(18, 43, 92, 0.62) !important;
}

#privacy > div > div:last-child::after,
#download > div::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

#privacy > div > div:last-child > *,
#download > div > * {
  position: relative;
  z-index: 1;
}

#pricing article {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 22px 60px -48px rgba(26, 60, 112, 0.45);
}

#pricing article:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 120, 255, 0.25) !important;
  box-shadow: 0 30px 75px -42px rgba(35, 86, 170, 0.38);
}

#pricing article:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #f7faff) !important;
}

#download > div {
  border-radius: 42px !important;
}

#faq > div > div {
  border-top-color: rgba(27, 55, 100, 0.1) !important;
}

#faq button {
  transition: color 0.2s ease;
}

#faq button:hover {
  color: var(--mf-blue);
}

footer {
  background: #f4f7fb !important;
}

footer a:hover {
  color: var(--mf-blue);
}

.legal-card {
  border: 1px solid rgba(73, 107, 160, 0.11) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 30px 90px -52px rgba(24, 61, 120, 0.42) !important;
  backdrop-filter: blur(18px);
}

body main.min-h-screen.bg-\[\#f5f5f7\] {
  background: radial-gradient(circle at 10% 0%, rgba(74, 153, 255, 0.12), transparent 30%), radial-gradient(circle at 95% 12%, rgba(111, 87, 255, 0.1), transparent 28%), #f6f8fc !important;
}

.legal-copy h2 {
  padding-top: 4px;
  color: #172033 !important;
}

.legal-copy a {
  color: var(--mf-blue);
}

.mf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.mf-reveal.mf-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.mf-reveal:nth-child(2),
#pricing article.mf-reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.feature-card.mf-reveal:nth-child(3),
#pricing article.mf-reveal:nth-child(3) {
  transition-delay: 0.14s;
}

@media (max-width: 767px) {
  main > nav > div {
    height: 56px !important;
  }

  #top {
    min-height: auto;
    padding-top: 86px !important;
  }

  #top p:first-child {
    font-size: 10px !important;
    letter-spacing: 0.055em !important;
  }

  #top h1 {
    font-size: clamp(44px, 13vw, 64px) !important;
    line-height: 1.02 !important;
  }

  .product-stage {
    padding: 6px !important;
    border-radius: 24px !important;
  }

  .product-stage img {
    border-radius: 19px !important;
  }

  .feature-card {
    min-height: 300px !important;
  }

  #privacy > div > div:last-child,
  #download > div {
    border-radius: 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-reveal {
    opacity: 1;
    transform: none;
  }
}
