:root {
  --sky-0: #071018;
  --sky-1: #0c1a2b;
  --sky-2: #12324a;
  --ice: #7ce8f4;
  --mint: #5eead4;
  --violet: #8b7cff;
  --gold: #f3c56a;
  --text: #eef6ff;
  --muted: #9bb3c9;
  --line: rgba(124, 232, 244, 0.22);
  --card: rgba(10, 24, 40, 0.78);
  --shadow: 0 22px 48px rgba(3, 10, 18, 0.42);
  --wrap: 1120px;
  --radius: 0;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  background: var(--sky-0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #c8fbff;
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 0.55rem 0.9rem;
  background: var(--ice);
  color: #06202a;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.geo-sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 124, 255, 0.28), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(124, 232, 244, 0.2), transparent 28%),
    linear-gradient(180deg, #10263d 0%, var(--sky-1) 42%, var(--sky-0) 100%);
}

.geo-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}

.range,
.facet,
.crystal {
  position: absolute;
  pointer-events: none;
}

.range {
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
}

.r1 {
  clip-path: polygon(0 100%, 8% 54%, 22% 78%, 34% 36%, 48% 70%, 62% 22%, 78% 64%, 90% 40%, 100% 72%, 100% 100%);
  background: linear-gradient(180deg, #245a78 0%, #123046 100%);
}

.r2 {
  height: 38%;
  clip-path: polygon(0 100%, 14% 48%, 28% 82%, 42% 30%, 58% 68%, 73% 18%, 88% 58%, 100% 34%, 100% 100%);
  background: linear-gradient(165deg, #3ec6d6 0%, #1a5c72 46%, #102838 100%);
  opacity: 0.78;
}

.r3 {
  height: 30%;
  clip-path: polygon(0 100%, 18% 42%, 36% 88%, 52% 28%, 70% 76%, 86% 36%, 100% 70%, 100% 100%);
  background: linear-gradient(180deg, #8b7cff 0%, #2a2d6a 58%, #10182c 100%);
  opacity: 0.55;
}

.r4 {
  height: 22%;
  clip-path: polygon(0 100%, 12% 62%, 26% 18%, 40% 72%, 56% 8%, 74% 64%, 92% 24%, 100% 78%, 100% 100%);
  background: linear-gradient(180deg, rgba(243, 197, 106, 0.55), rgba(16, 28, 42, 0.2));
}

.crystal {
  width: 34px;
  height: 48px;
  background: linear-gradient(160deg, #d9fbff, #5eead4 46%, #2f6d88);
  clip-path: polygon(50% 0, 100% 32%, 78% 100%, 22% 100%, 0 32%);
  opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(124, 232, 244, 0.35));
}

.c1 { top: 18%; left: 8%; transform: rotate(-12deg); animation: facet-float 7s ease-in-out infinite; }
.c2 { top: 24%; right: 12%; width: 22px; height: 32px; animation: facet-float 9s ease-in-out infinite reverse; }

@keyframes facet-float {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}

.topbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.55);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(7, 16, 24, 0.72);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img,
.logo-block img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #12324a;
}

.brand small,
.logo-block small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(14, 32, 48, 0.8);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-panel ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
}

.nav-panel a[aria-current="page"] {
  color: var(--ice);
  box-shadow: inset 0 -2px 0 var(--ice);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  color: #06222c !important;
  font-weight: 800;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero,
.page-hero {
  position: relative;
  z-index: 1;
  padding: 3.4rem 0 4.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: rgba(8, 24, 36, 0.55);
}

.tag.alt {
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

h2 { font-size: 1.55rem; }
h3 { font-size: 1.08rem; }

.lead,
.section-head p,
.anno {
  color: var(--muted);
}

.lead { font-size: 1.05rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  font-weight: 800;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.button {
  background: linear-gradient(135deg, #67e8f9, #34d399);
  color: #052028;
}

.button-alt {
  border: 1px solid var(--line);
  background: rgba(10, 24, 38, 0.7);
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric,
.card,
.seo-card,
.platform,
.step,
.figure {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric {
  padding: 0.85rem 0.9rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.metric strong {
  display: block;
  color: var(--ice);
  font-size: 1.05rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-art,
.figure {
  position: relative;
  padding: 0.7rem;
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}

.hero-art img,
.figure img {
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.poly-icon {
  width: 42px;
  height: 42px;
  color: var(--ice);
}

section {
  position: relative;
  padding: 3.2rem 0;
}

section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(18, 50, 74, 0.28), transparent 70%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-head p { max-width: 36rem; margin: 0; }

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card,
.seo-card,
.platform,
.step {
  padding: 1.1rem 1.05rem 1.15rem;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.seo-card {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.seo-card:hover,
.card:focus-within,
.platform:focus-within {
  border-color: rgba(124, 232, 244, 0.55);
}

.kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.anno {
  padding-left: 0.85rem;
  border-left: 3px solid var(--violet);
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 1.05rem;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "▾";
  float: right;
  color: var(--ice);
}

.faq details[open] summary::after { content: "▴"; }

.faq details p {
  margin: 0;
  padding: 0 1.05rem 1.05rem;
  color: var(--muted);
}

.crumbs {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.warn {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(243, 197, 106, 0.4);
  background: rgba(243, 197, 106, 0.08);
  color: #f8e3b4;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

footer {
  border-top: 1px solid var(--line);
  background: #061018;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 1.4rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

footer h3 { font-size: 0.95rem; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin: 0.32rem 0; }
footer p { color: var(--muted); }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero,
  .detail,
  .footer-grid,
  .grid-4,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 6px);
    background: #0b1c2c;
    border: 1px solid var(--line);
    padding: 0.7rem;
  }

  .nav-panel.is-open { display: block; }
  .nav-panel ul { flex-direction: column; align-items: stretch; }
  .nav-cta { justify-content: center; }

  .hero,
  .detail,
  .footer-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .metrics,
  .section-head,
  .topbar-inner,
  .legal {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
