:root {
  --ink: #f8fbff;
  --ink-soft: rgba(248,251,255,.78);
  --cyan: #8ed8ff;
  --deep-blue: #06142c;
  --gold: #ffd56b;
  --warm: #fff2bf;
  --line: rgba(255,255,255,.26);
  --shadow: 0 28px 80px rgba(0,0,0,.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #07142d;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(5,14,35,.30), rgba(6,19,46,.58) 50%, rgba(2,7,20,.80)),
    linear-gradient(180deg, rgba(2,7,20,.08), rgba(2,7,20,.72)),
    url("background-starry-oil.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,7,20,.10), rgba(2,7,20,.42) 52%, rgba(2,7,20,.78)),
    linear-gradient(118deg, rgba(255,213,107,.16), transparent 34%, rgba(142,216,255,.14));
  backdrop-filter: saturate(1.12);
}

.site-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand, .nav-download {
  color: #fff;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-download {
  padding: 11px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 42px;
  align-items: center;
  padding: 16px 0 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #10213e;
  background: rgba(255,225,150,.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0,0,0,.22);
}
h1 span { display: block; }

.lead {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.9;
  text-shadow: 0 6px 20px rgba(0,0,0,.22);
  overflow-wrap: anywhere;
}

.download-panel { margin-top: 34px; }
.download-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  min-width: 420px;
  min-height: 104px;
  padding: 22px 32px;
  border-radius: 12px;
  text-decoration: none;
  color: #081631;
  background: linear-gradient(135deg, #fff6c8 0%, #ffd86d 34%, #71b7ff 100%);
  box-shadow: 0 26px 60px rgba(16,91,191,.42), 0 0 0 1px rgba(255,255,255,.55) inset;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

.download-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 34px 78px rgba(16,91,191,.55), 0 0 0 1px rgba(255,255,255,.70) inset;
}

.download-button:active { transform: translateY(-1px) scale(.99); }

.button-glow {
  position: absolute;
  inset: -80px -60px;
  z-index: -1;
  background: conic-gradient(from 180deg, transparent, rgba(255,255,255,.62), transparent, rgba(255,255,255,.48), transparent);
  animation: rotate 5.8s linear infinite;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #fff8dc;
  background: rgba(6,20,44,.92);
  box-shadow: 0 14px 30px rgba(6,20,44,.26);
}

.button-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-main {
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}
.button-sub {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 750;
  opacity: .78;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}
.trust-line span {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}

.showcase { min-width: 0; }
.carousel-card {
  position: relative;
  border-radius: 8px;
  padding: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: var(--shadow), 0 0 80px rgba(255,211,105,.10);
  backdrop-filter: blur(22px);
  overflow: visible;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 1600 / 850;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f6f8fc;
  opacity: 0;
  transform: translateX(0) scale(1);
  transform-origin: center;
  backface-visibility: hidden;
  filter: saturate(.98) contrast(1.02);
  transition: none;
}
.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}
.slide.enter-next {
  animation: slideInFromRight .48s ease both;
  z-index: 3;
}
.slide.leave-next {
  animation: slideOutToLeft .48s ease both;
  z-index: 2;
}
.slide.enter-prev {
  animation: slideInFromLeft .48s ease both;
  z-index: 3;
}
.slide.leave-prev {
  animation: slideOutToRight .48s ease both;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  z-index: 8;
  top: 52%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  color: #0b1f42;
  background: rgba(255,255,255,.90);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.prev { left: -18px; }
.next { right: -18px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.active {
  width: 28px;
  background: var(--gold);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 74px;
}
.feature-strip article {
  min-height: 148px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 20px 54px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}
.feature-strip strong {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
}
.feature-strip span {
  color: rgba(255,255,255,.74);
  line-height: 1.75;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 44px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.footer p { margin: 0; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes slideInFromRight {
  from {
    opacity: 1;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(-100%);
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutToRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .site-shell { width: min(100% - 28px, 760px); }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 18px;
  }
  .hero-copy { text-align: center; }
  h1 { max-width: 100%; font-size: 54px; }
  .lead { margin-left: auto; margin-right: auto; font-size: 17px; }
  .button-copy { align-items: flex-start; }
  .trust-line { justify-content: center; }
  .download-button { width: min(100%, 420px); }
  .feature-strip { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .nav { height: 66px; }
  .nav-download { display: none; }
  h1 { font-size: 39px; }
  .lead {
    font-size: 16px;
    line-height: 1.75;
    word-break: break-word;
  }
  .eyebrow { font-size: 12px; }
  .download-button {
    min-width: 0;
    min-height: 92px;
    padding: 18px 14px;
    gap: 12px;
  }
  .button-icon { width: 42px; height: 42px; }
  .button-icon svg { width: 27px; height: 27px; }
  .button-main { font-size: 21px; }
  .button-sub { font-size: 12px; }
  .trust-line {
    gap: 7px;
    font-size: 12px;
  }
  .trust-line span { padding: 7px 9px; }
  .carousel-card { padding: 0; }
  .carousel-btn { display: none; }
  .feature-strip { margin-bottom: 42px; }
}

@media (max-width: 390px) {
  h1 { font-size: 36px; }
  .button-main { font-size: 20px; }
  .button-copy { min-width: 0; }
}

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