:root {
  --home-bg: #08111f;
  --home-bg-deep: #060d18;
  --home-panel: rgba(255, 255, 255, 0.047);
  --home-panel-strong: rgba(255, 255, 255, 0.068);
  --home-line: rgba(188, 220, 255, 0.115);
  --home-line-strong: rgba(121, 203, 255, 0.24);
  --home-blue: #269dff;
  --home-blue-soft: #86d3ff;
  --home-shadow: 0 24px 70px rgba(0, 5, 15, 0.3);
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(30, 149, 255, 0.095), transparent 68%),
    var(--home-bg) !important;
  color: #f7fbff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(73, 177, 255, 0.32);
  color: white;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--home-blue-soft);
  outline-offset: 3px;
}

/* Header: same layout, cleaner glass and interaction hierarchy. */
#siteHeader {
  border-color: rgba(188, 220, 255, 0.1) !important;
  background: rgba(7, 15, 27, 0.82) !important;
  box-shadow: 0 10px 35px rgba(0, 5, 15, 0.16);
  backdrop-filter: saturate(145%) blur(20px);
}

#siteHeader > div:first-child {
  min-height: 62px;
}

#siteHeader > div:first-child > a > div {
  border: 1px solid rgba(255, 255, 255, 0.19);
  box-shadow:
    0 8px 24px rgba(30, 149, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#siteHeader > div:first-child > a > span {
  letter-spacing: -0.025em;
}

.site-nav-desktop a {
  position: relative;
  padding: 0.6rem 0;
  transition: color 160ms ease;
}

.site-nav-desktop a::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 203, 255, 0.9), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav-desktop a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header-download,
#downloadHero,
#downloadPricingAnnual,
#downloadFooter {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #39a8ff, #1387ed) !important;
  box-shadow:
    0 12px 30px rgba(30, 149, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.site-header-download:hover,
#downloadHero:hover,
#downloadPricingAnnual:hover,
#downloadFooter:hover {
  filter: brightness(1.07);
  box-shadow:
    0 15px 35px rgba(30, 149, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  border-color: var(--home-line) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.mobile-menu {
  border-color: rgba(188, 220, 255, 0.14);
  background: rgba(7, 15, 27, 0.975);
  box-shadow: 0 26px 80px rgba(0, 4, 12, 0.55);
  backdrop-filter: blur(22px);
}

/* Hero: preserve the content and composition, refine contrast and depth. */
html[data-platform] .gradient-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(920px 540px at 10% -8%, rgba(38, 157, 255, 0.2), transparent 64%),
    radial-gradient(760px 460px at 96% 10%, rgba(116, 143, 191, 0.13), transparent 68%),
    linear-gradient(180deg, #08111f 0%, #0d192b 56%, #08111f 100%);
}

.gradient-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(153, 205, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 205, 255, 0.027) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
}

#platformBadge {
  border-color: rgba(188, 220, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

#platformBadge > span:first-child {
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1), 0 0 18px rgba(52, 211, 153, 0.38);
}

#heroTitle {
  max-width: 690px;
  text-wrap: balance;
  text-shadow: 0 16px 45px rgba(0, 4, 12, 0.2);
}

#heroTitle span {
  background: linear-gradient(115deg, #8bd6ff 0%, #49b1ff 45%, #81b9ff 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#heroBody {
  color: rgba(235, 244, 255, 0.72) !important;
}

#platformAvailabilityStrip a,
#platformAvailabilityStrip > span:not(:first-child) {
  border-color: rgba(188, 220, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

#platformAvailabilityStrip a:hover {
  border-color: rgba(121, 203, 255, 0.34) !important;
  background: rgba(73, 177, 255, 0.09) !important;
}

#downloadHero + a {
  border-color: rgba(188, 220, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

#downloadHero + a:hover {
  border-color: rgba(121, 203, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateY(-1px);
}

#home [class~="grid-cols-3"] > div {
  border-color: rgba(188, 220, 255, 0.105) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.027)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.platform-shell {
  border-color: rgba(188, 220, 255, 0.14) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    0 34px 90px rgba(0, 4, 13, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(16px);
}

.platform-shell > div:nth-child(2) {
  border-color: rgba(188, 220, 255, 0.12) !important;
  box-shadow: 0 16px 42px rgba(0, 4, 12, 0.22);
}

#platformCardBullets li {
  border: 1px solid rgba(188, 220, 255, 0.075);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.026);
  padding: 0.65rem 0.75rem;
}

/* Consistent section and card rhythm, using the existing content order. */
#pain-points,
#different,
#how,
#faq {
  border-color: rgba(188, 220, 255, 0.085) !important;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(30, 149, 255, 0.045), transparent 68%),
    rgba(16, 28, 48, 0.48) !important;
}

#features,
#pricing {
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.9), rgba(10, 21, 37, 0.76));
}

#pain-points + section {
  border-color: rgba(188, 220, 255, 0.09) !important;
  background: linear-gradient(180deg, rgba(30, 149, 255, 0.045), rgba(8, 17, 31, 0.82)) !important;
}

#pain-points + section > div > div {
  border-color: rgba(121, 203, 255, 0.18) !important;
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(30, 149, 255, 0.08), transparent 72%),
    #0b1729 !important;
}

#pain-points article,
#features article,
#different figure,
#different .sm\:col-span-2,
#pricing > div > .mt-10 > div,
#how > div > .mt-10,
#faq details,
#pricing + section .overflow-x-auto {
  border-color: rgba(188, 220, 255, 0.105) !important;
}

#pain-points article,
#features article,
#different figure,
#different .sm\:col-span-2,
#pricing > div > .mt-10 > div {
  box-shadow:
    0 18px 55px rgba(0, 4, 13, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 190ms ease, transform 190ms ease, background 190ms ease;
}

@media (hover: hover) {
  #pain-points article:hover,
  #features article:hover,
  #different figure:hover,
  #pricing > div > .mt-10 > div:hover {
    border-color: rgba(121, 203, 255, 0.22) !important;
    transform: translateY(-3px);
  }
}

#features article {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.023), transparent) !important;
}

#features > div > .mt-10:last-child {
  border-color: rgba(188, 220, 255, 0.1) !important;
  background: rgba(5, 12, 22, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#demo {
  border-color: rgba(188, 220, 255, 0.085) !important;
  background:
    radial-gradient(520px 250px at 50% 100%, rgba(30, 149, 255, 0.07), transparent 72%),
    rgba(255, 255, 255, 0.018) !important;
}

#demoVideoContainer {
  border-color: rgba(188, 220, 255, 0.15) !important;
  background: #050b14 !important;
  box-shadow: 0 26px 70px rgba(0, 4, 12, 0.42) !important;
}

.demo-pill {
  backdrop-filter: blur(10px);
}

.demo-pill.active {
  border-color: rgba(73, 177, 255, 0.42);
  background: rgba(30, 149, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #86d3ff;
}

#how > div > .mt-10 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026)) !important;
  box-shadow:
    0 24px 68px rgba(0, 4, 13, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

#pricing > div > .mt-10 > div {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

#pricing > div > .mt-10 > div:nth-child(2) {
  border-color: rgba(110, 231, 183, 0.34) !important;
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(30, 149, 255, 0.16), transparent 74%),
    linear-gradient(180deg, rgba(52, 211, 153, 0.075), rgba(255, 255, 255, 0.036)) !important;
  box-shadow:
    0 28px 80px rgba(0, 5, 15, 0.26),
    0 0 0 1px rgba(52, 211, 153, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

#downloadPricingFree,
#downloadPricingMonthly {
  border-color: rgba(188, 220, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

#downloadPricingFree {
  margin-top: 2rem !important;
}

#downloadPricingFree:hover,
#downloadPricingMonthly:hover {
  border-color: rgba(121, 203, 255, 0.3) !important;
  background: rgba(73, 177, 255, 0.08) !important;
  transform: translateY(-1px);
}

#pricing + section {
  border-color: rgba(188, 220, 255, 0.085) !important;
  background: rgba(12, 24, 42, 0.52) !important;
}

#pricing + section .overflow-x-auto {
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: var(--home-shadow) !important;
}

#pricing + section tbody tr {
  transition: background 150ms ease;
}

#pricing + section tbody tr:hover {
  background: rgba(73, 177, 255, 0.035);
}

#faq > div > div {
  border-color: rgba(188, 220, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow:
    0 24px 70px rgba(0, 4, 13, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#faq details {
  transition: background 160ms ease;
}

#faq details:hover,
#faq details[open] {
  background: rgba(73, 177, 255, 0.045) !important;
}

#faq summary {
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#languageSuggestion > div {
  border-color: rgba(188, 220, 255, 0.15) !important;
  background: rgba(7, 15, 27, 0.96) !important;
  box-shadow: 0 24px 70px rgba(0, 4, 12, 0.52) !important;
}

footer {
  border-color: rgba(188, 220, 255, 0.085) !important;
  background:
    radial-gradient(680px 240px at 85% 0%, rgba(30, 149, 255, 0.055), transparent 70%),
    var(--home-bg-deep) !important;
}

footer a {
  transition: color 150ms ease;
}

/* Mobile tuning keeps the original information while reducing visual crowding. */
@media (max-width: 799px) {
  #siteHeader > div:first-child {
    min-height: 60px;
  }

  .hero-shell {
    padding-top: 3.8rem;
    padding-bottom: 4.8rem;
  }

  #heroTitle {
    font-size: clamp(2.55rem, 11.5vw, 3.75rem);
    line-height: 0.98;
  }

  #platformBadge {
    line-height: 1.45;
  }

  .platform-shell {
    border-radius: 1.65rem;
  }
}

@media (max-width: 520px) {
  .hero-shell {
    padding-top: 3.1rem;
    padding-bottom: 4rem;
  }

  #heroBody {
    font-size: 1.08rem;
  }

  #home [class~="grid-cols-3"] {
    gap: 0.5rem;
  }

  #home [class~="grid-cols-3"] > div {
    min-width: 0;
    padding: 0.72rem 0.65rem;
  }

  #home [class~="grid-cols-3"] > div > div:first-child {
    font-size: 0.78rem;
  }

  #home [class~="grid-cols-3"] > div > div:last-child {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  #downloadHero,
  #downloadHero + a {
    justify-content: center;
    width: 100%;
  }

  #platformCardBullets {
    grid-template-columns: 1fr;
  }

  #platformCardBullets li {
    padding: 0.58rem 0.68rem;
  }

  #pain-points article,
  #features article,
  #different figure,
  #pricing > div > .mt-10 > div {
    border-radius: 1.45rem;
  }

  #faq details {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
