.home-page {
  --home-bg: #031027;
  --home-bg-deep: #020817;
  --home-surface: #091b3d;
  --home-surface-strong: #0d2451;
  --home-text: #f8fbff;
  --home-muted: #aabbdc;
  --home-soft: #7f95bf;
  --home-line: rgba(142, 177, 238, 0.2);
  --home-cyan: #30d7f3;
  --home-blue: #4c83ff;
  --home-green: #36d57a;
  --home-orange: #ff9b42;
  min-width: 320px;
  color: var(--home-text);
  background: var(--home-bg-deep);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

html[data-theme="light"] .home-page {
  --home-bg: #eaf3ff;
  --home-bg-deep: #f8fbff;
  --home-surface: #ffffff;
  --home-surface-strong: #dceaff;
  --home-text: #061633;
  --home-muted: #43577d;
  --home-soft: #60749a;
  --home-line: rgba(38, 77, 139, 0.18);
  background: #f8fbff;
}

.home-page * {
  box-sizing: border-box;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page figure {
  margin-top: 0;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  color: var(--home-text);
  letter-spacing: 0;
}

.home-page a {
  color: inherit;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid var(--home-cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 10px 14px;
  color: #04122f;
  background: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-shell,
.nav-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(142, 177, 238, 0.14);
  background: rgba(3, 16, 39, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
}

html[data-theme="light"] .landing-header {
  background: rgba(248, 251, 255, 0.88);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-header .brand,
.landing-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--home-text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.landing-footer .brand {
  width: max-content;
  justify-self: center;
  margin-inline: auto;
}

.landing-header .app-mark,
.landing-footer .app-mark {
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.landing-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.landing-navigation nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.landing-navigation nav a,
.landing-footer nav a {
  color: var(--home-muted);
  font-weight: 650;
  text-decoration: none;
}

.landing-navigation nav a:hover,
.landing-footer nav a:hover {
  color: var(--home-cyan);
}

.landing-header .theme-toggle {
  position: static;
  min-height: 38px;
  border-color: var(--home-line);
  color: var(--home-text);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

html[data-theme="light"] .landing-header .theme-toggle {
  background: rgba(6, 22, 51, 0.05);
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(48, 215, 243, 0.46);
  border-radius: 7px;
  padding: 9px 15px;
  color: #031027 !important;
  background: var(--home-cyan);
  box-shadow: 0 12px 30px rgba(48, 215, 243, 0.16);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.guide-button:hover {
  background: #70e9fa;
  text-decoration: none;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  padding: 10px;
  color: var(--home-text);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 28%, rgba(48, 215, 243, 0.2), transparent 25%),
    radial-gradient(circle at 18% 22%, rgba(76, 131, 255, 0.24), transparent 32%),
    linear-gradient(180deg, #06183b 0%, #031027 100%);
}

.home-page [id] {
  scroll-margin-top: 96px;
}

html[data-theme="light"] .hero-section {
  background:
    radial-gradient(circle at 77% 28%, rgba(48, 215, 243, 0.22), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(76, 131, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #eff6ff 0%, #dceaff 100%);
}

.hero-layout {
  position: relative;
  top: -24px;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 72px;
  padding-block: 58px 34px;
}

.hero-copy {
  position: relative;
  top: 24px;
  z-index: 2;
  max-width: 740px;
  opacity: var(--hero-copy-opacity, 1);
  transform: translate3d(0, var(--hero-copy-shift, 0), 0);
}

.section-label {
  margin-bottom: 18px;
  color: var(--home-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 66px;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 26px;
  color: #c5d4f1;
  font-size: 22px;
  line-height: 1.5;
}

html[data-theme="light"] .hero-lede {
  color: var(--home-muted);
}

.store-link {
  display: inline-flex;
}

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

.store-badge {
  display: block;
  width: 180px;
  height: auto;
}

.purchase-note {
  margin: 13px 0 0;
  color: var(--home-soft);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  align-self: end;
  height: 540px;
  margin-bottom: -16px;
  display: grid;
  place-items: start center;
  opacity: var(--hero-visual-opacity, 1);
  transform: translate3d(0, var(--hero-visual-shift, 0), 0);
}

.hero-visual::before {
  position: absolute;
  top: 16%;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(48, 215, 243, 0.2);
  border-radius: 50%;
  background: rgba(48, 215, 243, 0.08);
  box-shadow: 0 0 80px rgba(48, 215, 243, 0.16);
  content: "";
}

.hero-visual img {
  position: relative;
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 36px 52px rgba(0, 0, 0, 0.45));
}

.trust-strip {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #071938;
}

html[data-theme="light"] .trust-strip {
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid p {
  min-width: 0;
  margin: 0;
  padding: 24px 26px;
  border-left: 1px solid var(--home-line);
}

.trust-grid p:last-child {
  border-right: 1px solid var(--home-line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--home-text);
  font-size: 15px;
}

.trust-grid span {
  margin-top: 3px;
  color: var(--home-soft);
  font-size: 13px;
}

.features-intro {
  max-width: 800px;
  padding-block: 112px 68px;
  text-align: center;
}

.features-intro h2,
.privacy-panel h2,
.purchase-panel h2,
.final-cta h2 {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1.08;
  text-wrap: balance;
}

.features-intro > p:last-child {
  max-width: 690px;
  margin-inline: auto;
  color: var(--home-muted);
  font-size: 20px;
}

.feature-section {
  border-top: 1px solid rgba(142, 177, 238, 0.09);
  background: var(--home-bg-deep);
}

.feature-section-tinted {
  background: var(--home-bg);
}

.feature-row {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 110px;
  padding-block: 90px;
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-visual {
  order: 1;
}

.feature-copy {
  max-width: 570px;
}

.feature-number {
  margin-bottom: 18px;
  color: var(--home-cyan);
  font-size: 15px;
  font-weight: 800;
}

.feature-copy h2 {
  margin-bottom: 20px;
  font-size: 44px;
  line-height: 1.1;
  text-wrap: balance;
}

.feature-copy > p:not(.feature-number) {
  color: var(--home-muted);
  font-size: 20px;
}

.feature-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--home-muted);
  list-style: none;
}

.feature-points li {
  position: relative;
  padding-left: 26px;
}

.feature-points li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 14px rgba(54, 213, 122, 0.36);
  content: "";
}

.feature-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  margin: 0;
}

.feature-visual::before {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(48, 215, 243, 0.08);
  box-shadow: 0 0 90px rgba(48, 215, 243, 0.14);
  content: "";
}

.feature-visual img {
  position: relative;
  width: min(100%, 350px);
  height: auto;
  filter: drop-shadow(0 38px 54px rgba(0, 0, 0, 0.4));
}

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

.feature-visual-stack img {
  grid-area: 1 / 1;
  width: min(78%, 310px);
}

.feature-screen-back {
  z-index: 1;
  opacity: 0.72;
  transform: translate3d(-62px, 4px, 0) scale(0.94);
}

.feature-screen-front {
  z-index: 2;
  transform: translate3d(64px, -4px, 0) scale(0.96);
}

.privacy-section {
  padding-block: 110px;
  background:
    radial-gradient(circle at 82% 50%, rgba(54, 213, 122, 0.1), transparent 28%),
    #020817;
}

html[data-theme="light"] .privacy-section {
  background:
    radial-gradient(circle at 82% 50%, rgba(54, 213, 122, 0.13), transparent 30%),
    #dceaff;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 80px;
  align-items: center;
  border: 1px solid rgba(48, 215, 243, 0.22);
  border-radius: 8px;
  padding: 64px;
  background: rgba(8, 28, 65, 0.78);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .privacy-panel {
  background: rgba(255, 255, 255, 0.78);
}

.privacy-panel > div > p:not(.section-label) {
  color: var(--home-muted);
  font-size: 19px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
  color: var(--home-cyan) !important;
  font-weight: 750;
  text-decoration: none;
}

.privacy-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  border-bottom: 1px solid var(--home-line);
  padding: 14px 0 14px 30px;
  color: var(--home-text);
  font-weight: 700;
}

.privacy-list li::before {
  position: absolute;
  left: 0;
  color: var(--home-green);
  content: "✓";
}

.purchase-section {
  padding-block: 100px;
  background: var(--home-bg);
}

.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.purchase-panel > div > p:not(.section-label) {
  max-width: 760px;
  color: var(--home-muted);
  font-size: 19px;
}

.lifetime-update-note {
  color: var(--home-text) !important;
  font-weight: 750;
}

.final-cta {
  padding-block: 110px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(48, 215, 243, 0.18), transparent 34%),
    linear-gradient(180deg, #06183b, #020817);
}

html[data-theme="light"] .final-cta {
  background:
    radial-gradient(circle at 50% 45%, rgba(48, 215, 243, 0.22), transparent 36%),
    linear-gradient(180deg, #dceaff, #f8fbff);
}

.final-cta-inner {
  max-width: 760px;
}

.final-cta-inner > p:not(.section-label) {
  color: var(--home-muted);
  font-size: 20px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.guide-button {
  min-height: 54px;
  padding-inline: 22px;
  color: var(--home-text) !important;
  background: transparent;
  box-shadow: none;
}

.guide-button:hover {
  color: #031027 !important;
}

.landing-footer {
  border-top: 1px solid var(--home-line);
  padding-block: 34px;
  background: #020817;
}

html[data-theme="light"] .landing-footer {
  background: #fff;
}

.footer-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.landing-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.landing-footer p {
  margin: 0;
  color: var(--home-soft);
  font-size: 13px;
}

.independent-heart {
  color: #30bff3;
  font-size: 1.1em;
}

.landing-footer .social-icon {
  color: var(--home-muted);
}

@media (max-width: 960px) {
  .landing-navigation {
    gap: 14px;
  }

  .landing-navigation nav {
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-layout {
    gap: 40px;
  }

  .feature-row {
    gap: 60px;
  }

  .feature-copy h2,
  .features-intro h2,
  .privacy-panel h2,
  .purchase-panel h2,
  .final-cta h2 {
    font-size: 40px;
  }

  .privacy-panel {
    padding: 48px;
  }

  .footer-layout {
    grid-template-columns: auto 1fr;
  }

  .landing-footer p {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .nav-shell {
    width: min(calc(100% - 36px), 620px);
  }

  .nav-shell {
    position: relative;
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .landing-navigation {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 36px));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(5, 20, 48, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  }

  html[data-theme="light"] .landing-navigation {
    background: rgba(255, 255, 255, 0.98);
  }

  .landing-navigation.is-open {
    display: flex;
  }

  .landing-navigation nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .landing-navigation nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--home-line);
  }

  .landing-navigation .theme-toggle {
    align-self: flex-start;
  }

  .hero-layout {
    top: 0;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 38px 0;
    text-align: center;
  }

  .hero-copy {
    top: 0;
    max-width: 570px;
    margin-inline: auto;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .hero-visual {
    height: 270px;
    margin-bottom: -30px;
    overflow: hidden;
  }

  .hero-visual img {
    width: 245px;
  }

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

  .trust-grid p,
  .trust-grid p:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .features-intro {
    padding-block: 84px 50px;
  }

  .feature-row,
  .feature-row-reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 72px;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-visual {
    order: initial;
  }

  .feature-copy {
    max-width: 600px;
  }

  .feature-copy h2,
  .features-intro h2,
  .privacy-panel h2,
  .purchase-panel h2,
  .final-cta h2 {
    font-size: 36px;
  }

  .feature-copy > p:not(.feature-number),
  .features-intro > p:last-child {
    font-size: 18px;
  }

  .feature-visual {
    min-height: 490px;
  }

  .feature-visual img {
    width: 300px;
  }

  .feature-visual-stack img {
    width: 245px;
  }

  .feature-screen-back {
    transform: translate3d(-36px, 2px, 0) scale(0.94);
  }

  .feature-screen-front {
    transform: translate3d(36px, -2px, 0) scale(0.96);
  }

  .privacy-section,
  .purchase-section,
  .final-cta {
    padding-block: 80px;
  }

  .privacy-panel,
  .purchase-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .privacy-panel {
    padding: 34px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .landing-footer nav {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .section-label {
    font-size: 12px;
  }

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

  .trust-grid p {
    padding: 17px 4px;
    border-left: 0;
  }

  .feature-copy h2,
  .features-intro h2,
  .privacy-panel h2,
  .purchase-panel h2,
  .final-cta h2 {
    font-size: 32px;
  }

  .feature-visual {
    min-height: 440px;
  }

  .feature-visual img {
    width: 270px;
  }

  .feature-visual-stack img {
    width: 225px;
  }

  .feature-screen-back {
    transform: translate3d(-30px, 2px, 0) scale(0.94);
  }

  .feature-screen-front {
    transform: translate3d(30px, -2px, 0) scale(0.96);
  }

  .privacy-panel {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual {
    will-change: opacity, transform;
  }

  .home-page a,
  .home-page button,
  .store-link,
  .feature-visual img {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .feature-visual:not(.feature-visual-stack):hover img {
    transform: translateY(-5px);
  }

  .feature-visual-stack:hover .feature-screen-back {
    transform: translate3d(-66px, 0, 0) scale(0.94);
  }

  .feature-visual-stack:hover .feature-screen-front {
    transform: translate3d(68px, -9px, 0) scale(0.96);
  }
}

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