/* ==========================================================================
   有星 Uoxn · uoxn.com
   Brand: #1515AF + White
   ========================================================================== */

:root {
  --brand: #1515af;
  --brand-500: #2b2bd6;
  --brand-600: #10109a;
  --brand-700: #0c0c78;
  --brand-800: #08085a;
  --brand-900: #05053a;
  --brand-050: #eef0ff;
  --brand-025: #f6f7ff;

  --ink: #0b0b28;
  --muted: #5a5a7a;
  --line: rgba(21, 21, 175, 0.12);
  --line-soft: rgba(21, 21, 175, 0.08);

  --white: #ffffff;
  --bg: #ffffff;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;

  --maxw: 1160px;
  --shadow-sm: 0 2px 10px rgba(11, 11, 40, 0.05);
  --shadow: 0 18px 44px -22px rgba(21, 21, 175, 0.45);
  --shadow-lg: 0 40px 80px -40px rgba(21, 21, 175, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

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

.btn--sm {
  --btn-h: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(21, 21, 175, 0.85);
}

.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: 0 20px 40px -16px rgba(21, 21, 175, 0.9);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--ghost {
  color: var(--brand);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  border-color: rgba(21, 21, 175, 0.35);
  box-shadow: var(--shadow-sm);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__text em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-left: 2px;
}

.brand--light {
  color: #fff;
}

.brand--light .brand__text em {
  color: rgba(255, 255, 255, 0.7);
}

.brand__mark--light {
  filter: brightness(0) invert(1);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav .brand {
  color: #fff;
}

.nav .brand__text em {
  color: rgba(255, 255, 255, 0.72);
}

.nav .brand__mark {
  filter: brightness(0) invert(1);
}

/* scrolled state */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -24px rgba(11, 11, 40, 0.5);
}

.nav.is-scrolled .nav__links a {
  color: var(--muted);
}

.nav.is-scrolled .nav__links a:hover {
  color: var(--brand);
}

.nav.is-scrolled .brand {
  color: var(--ink);
}

.nav.is-scrolled .brand__text em {
  color: var(--brand);
}

.nav.is-scrolled .brand__mark {
  filter: none;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: background-color 0.25s var(--ease);
}

.nav.is-scrolled .nav__toggle {
  border-color: var(--line);
  background: rgba(21, 21, 175, 0.06);
}

.nav.is-scrolled .nav__toggle span {
  background: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 224px 0 268px;
  background: radial-gradient(120% 120% at 50% -10%, #3535e0 0%, #1515af 42%, #08085a 100%);
  color: #fff;
  text-align: center;
}

.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero__glow--a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: rgba(120, 120, 255, 0.45);
}

.hero__glow--b {
  width: 560px;
  height: 560px;
  bottom: -260px;
  right: -140px;
  background: rgba(80, 80, 240, 0.4);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero__badge img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__title .grad {
  background: linear-gradient(100deg, #ffffff 0%, #c7c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 26px;
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 12%,
    rgba(255, 255, 255, 0.08) 24%,
    rgba(255, 255, 255, 0.15) 36%,
    rgba(255, 255, 255, 0.25) 48%,
    rgba(255, 255, 255, 0.38) 58%,
    rgba(255, 255, 255, 0.54) 68%,
    rgba(255, 255, 255, 0.71) 78%,
    rgba(255, 255, 255, 0.86) 88%,
    rgba(255, 255, 255, 0.96) 95%,
    #ffffff 100%
  );
}

/* ---------- Section base ---------- */
.products,
.why {
  padding: 108px 0;
}

.products {
  background: #fff;
}

.why {
  background: linear-gradient(180deg, var(--brand-025) 0%, #ffffff 100%);
}

.section__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section__sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- Product card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 38px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 100% 0%, rgba(21, 21, 175, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 21, 175, 0.34);
  box-shadow: var(--shadow-lg);
}

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

.card__bar {
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover .card__bar {
  opacity: 1;
}

.card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  color: var(--brand);
  background: linear-gradient(150deg, var(--brand-050), #dfe2ff);
  box-shadow: inset 0 0 0 1px rgba(21, 21, 175, 0.08);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease),
    background 0.4s var(--ease);
}

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

.card:hover .card__icon {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(150deg, var(--brand-500), var(--brand));
}

.card__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card__tag {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.card__desc {
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.card__features {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}

.card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: #33335a;
}

.card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--brand-050)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%231515AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.card__link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--brand-025);
  border: 1px solid var(--line-soft);
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.card__link-url {
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.card__link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease);
}

.card__link:hover {
  background: var(--brand-050);
  border-color: rgba(21, 21, 175, 0.28);
}

.card__link:hover svg {
  transform: translateX(5px);
}

/* ---------- Feature (why) ---------- */
.feature {
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 21, 175, 0.22);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-050);
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 108px 0 120px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-025) 100%);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  padding: 38px 22px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.contact-card--static {
  cursor: default;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 21, 175, 0.28);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 6px;
  color: var(--brand);
  background: var(--brand-050);
  transition: color 0.35s var(--ease), background 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
}

.contact-card:hover .contact-card__icon {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(150deg, var(--brand-500), var(--brand));
}

.contact-card__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-card__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.contact-card__hint {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brand);
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}

.contact-card.is-copied {
  border-color: rgba(21, 21, 175, 0.45);
}

.contact-card.is-copied .contact-card__hint {
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 76px 0 30px;
}

.footer__inner {
  display: flex;
  justify-content: center;
  padding-bottom: 52px;
}

.brand--stacked {
  flex-direction: column;
  gap: 18px;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-align: center;
}

.brand--stacked .brand__mark {
  width: 76px;
  height: 76px;
}

.brand--stacked .brand__text em {
  font-size: 15px;
  letter-spacing: 0.2em;
  margin-left: 4px;
}

.footer__icp-wrap {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__icp {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s var(--ease);
}

.footer__icp:hover {
  color: #fff;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

/* stagger inside grids */
.grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .nav.is-open {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--line-soft), 0 20px 40px -28px rgba(11, 11, 40, 0.6);
  }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line-soft);
  }

  .nav.is-open .nav__links a {
    color: var(--ink);
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav.is-open .nav__links a::after {
    display: none;
  }

  .nav.is-open .brand {
    color: var(--ink);
  }

  .nav.is-open .brand__text em {
    color: var(--brand);
  }

  .nav.is-open .brand__mark {
    filter: none;
  }

  .nav.is-open .nav__toggle {
    border-color: var(--line);
    background: rgba(21, 21, 175, 0.06);
  }

  .nav.is-open .nav__toggle span {
    background: var(--brand);
  }

  .hero {
    padding: 184px 0 212px;
  }

  .hero__fade {
    height: 180px;
  }

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

  .products,
  .why {
    padding: 84px 0;
  }

  .contact {
    padding: 84px 0 96px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .card {
    padding: 32px 24px 28px;
  }

  .card__bar {
    left: 24px;
    right: 24px;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    padding-bottom: 40px;
  }

  .brand--stacked .brand__mark {
    width: 64px;
    height: 64px;
  }

  .btn {
    --btn-h: 50px;
    padding: 0 22px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .hero__stars {
    display: none;
  }
}
