/* ============ Inflection Intelligence — style ============ */
:root {
  --bg: #070B14;
  --bg-2: #0A1120;
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --border: rgba(148, 163, 196, .14);
  --border-strong: rgba(148, 163, 196, .3);
  --text: #EAF0FA;
  --muted: #9AA7C2;
  --muted-2: #76839F;
  --blue: #5B8CFF;
  --violet: #A06BFF;
  --grad: linear-gradient(100deg, #5B8CFF 0%, #8F7BFF 55%, #A06BFF 100%);
  --radius: 18px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .32;
  z-index: -2;
  pointer-events: none;
}
.orb-1 { width: 640px; height: 640px; background: #1B3A8A; top: -260px; left: -180px; }
.orb-2 { width: 560px; height: 560px; background: #3D2A7A; top: 22%; right: -240px; }
.orb-3 { width: 460px; height: 460px; background: #0E4B46; bottom: -220px; left: 28%; }

.container { width: min(1700px, calc(100% - 3rem)); margin-inline: auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.18; font-weight: 700; }
h3 { font-size: 1.22rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #8FB0FF;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-mark { width: 34px; height: 34px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-link { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 120;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.btn-sm { padding: .58rem 1.25rem; font-size: .88rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(91, 140, 255, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(91, 140, 255, .45); }
.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(91, 140, 255, .55); transform: translateY(-2px); }

/* ============ Hero ============ */
.hero-inner { position: relative; }
/* Hero 文字暗底：保证压在 plexus 网任何帧上都清晰 */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -6% -12%;
  z-index: -1;
  background: radial-gradient(58% 62% at 42% 38%, rgba(7, 11, 20, .55), rgba(7, 11, 20, .2) 55%, transparent 75%);
  pointer-events: none;
}
.hero h1, .hero .lede { text-shadow: 0 2px 22px rgba(7, 11, 20, .75); }

.hero { padding: 11.5rem 0 6.5rem; position: relative; }
.hero-inner { text-align: center; }

.hero h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 5rem);
  margin: 1.4rem auto 0;
  max-width: 15ch;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 50rem;
  margin: 1.7rem auto 2.6rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-curve-wrap { margin: 4.2rem auto 0; max-width: none; }
.hero-curve { width: 100%; height: clamp(150px, 18vw, 300px); }
.curve-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s cubic-bezier(.6, 0, .2, 1) .4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.pt-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(3.4); opacity: 0; }
  100% { opacity: 0; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem auto 0;
  text-align: left;
}
.stat { background: rgba(10, 17, 32, .72); padding: 1.5rem 1.3rem; }
.stat-value { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: var(--muted-2); margin-top: .3rem; text-transform: uppercase; letter-spacing: .08em; }
/* ============ Sections ============ */
.section { padding: 7rem 0; scroll-margin-top: 70px; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.032));
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.section-head { max-width: 780px; margin: 0 auto 3.4rem; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); margin-top: 1rem; }
.section-sub { color: var(--muted); margin-top: 1.1rem; font-size: 1.02rem; }

/* ============ Cards & grids ============ */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 140, 255, .4);
  background: var(--card-hover);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
}
.card h3 { margin: 1.3rem 0 .7rem; }
.card p { color: var(--muted); font-size: .95rem; }

.icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(91,140,255,.16), rgba(160,107,255,.16));
  border: 1px solid rgba(91, 140, 255, .28);
  color: #8FB0FF;
}
.icon svg { width: 23px; height: 23px; }

.feature-list { margin-top: 1.2rem; display: grid; gap: .55rem; }
.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: .9rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: .55rem; height: .55rem;
  border-radius: 2px;
  background: var(--grad);
}

.tile h3 { margin-top: 1.2rem; }

.assure { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 3rem; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.4rem; max-width: 38rem; }
.about-copy .mission { color: var(--text); font-weight: 500; border-left: 3px solid; border-image: var(--grad) 1; padding-left: 1.2rem; }

.about-side { display: grid; gap: 1.3rem; }
.founder-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad);
  flex: none;
}
.founder-head h3 { margin: 0; }
.founder-title { color: var(--muted-2); font-size: .85rem; }

.facts .fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}
.facts .fact span { color: var(--muted-2); }
.facts .fact strong { text-align: right; }
.facts .fact-last { border-bottom: 0; padding-bottom: .2rem; }
/* ============ Careers ============ */
.role { display: flex; flex-direction: column; }
.role-tag { align-self: flex-start; font-size: .78rem; letter-spacing: .04em; }
.role .btn { align-self: flex-start; margin-top: auto; padding-top: .62rem; }
.role .feature-list { margin-bottom: 1.6rem; }
.careers-note { text-align: center; color: var(--muted-2); font-size: .9rem; margin-top: 1.6rem; }
.careers-note a { color: #8FB0FF; }
.careers-note a:hover { text-decoration: underline; }

/* ============ Contact ============ */
.contact-card { display: flex; align-items: center; gap: 1.1rem; }
.contact-card h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact-line { color: #8FB0FF; font-size: .95rem; }
a.contact-card:hover .contact-line { text-decoration: underline; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); padding: 4.2rem 0 2.6rem; background: rgba(255,255,255,.012); }
.footer-grid { display: grid; grid-template-columns: 1.7fr .8fr 1fr 1.1fr; gap: 3rem; }
.footer-brand p { color: var(--muted-2); font-size: .9rem; margin-top: 1.1rem; max-width: 26rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer-nav h4, .footer-contact h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted-2);
  margin-bottom: .5rem;
}
.footer-nav a, .footer-contact a, .footer-contact span { color: var(--muted); font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted-2);
}
.footer-note { max-width: 34rem; text-align: right; opacity: .85; }

/* ============ Product Zoo ============ */
.zoo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
@media (min-width: 1200px) { .zoo-grid { grid-template-columns: repeat(6, 1fr); } }
.zoo-card {
  --pz: #5B8CFF;
  --pzs: rgba(91, 140, 255, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}
.zoo-card:hover {
  transform: translateY(-6px);
  border-color: var(--pz);
  background: var(--card-hover);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4), 0 10px 34px var(--pzs);
}
.zoo-icon {
  font-size: 2.55rem;
  line-height: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--pzs);
  border: 1px solid var(--pz);
  margin-bottom: .7rem;
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
}
.zoo-card:hover .zoo-icon { transform: scale(1.14) rotate(-5deg); }
.zoo-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.zoo-desc {
  font-size: .72rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .25rem;
}
.zoo-go {
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--pz);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.zoo-card:hover .zoo-go { opacity: 1; transform: none; }
.zoo-note { text-align: center; color: var(--muted-2); font-size: .85rem; margin-top: 2.4rem; }
.zoo-note a { color: #8FB0FF; }
.zoo-note a:hover { text-decoration: underline; }

/* zoo 卡片滚动入场交错延迟（独立于 .grid 规则） */
.zoo-grid > .reveal:nth-child(2) { transition-delay: .06s; }
.zoo-grid > .reveal:nth-child(3) { transition-delay: .12s; }
.zoo-grid > .reveal:nth-child(4) { transition-delay: .18s; }
.zoo-grid > .reveal:nth-child(5) { transition-delay: .24s; }
.zoo-grid > .reveal:nth-child(6) { transition-delay: .3s; }
.zoo-grid > .reveal:nth-child(7) { transition-delay: .36s; }

/* ============ Reveal ============ */
/* Reveal 健壮性：默认可见，入场动画仅在 .in 时叠加播放——任何时序异常下首屏永不变黑 */
.reveal { opacity: 1; }
.reveal.in { animation: revealIn .7s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.grid > .reveal:nth-child(2).in { animation-delay: .1s; }
.grid > .reveal:nth-child(3).in { animation-delay: .2s; }
.grid > .reveal:nth-child(4).in { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.in { animation: none; }
  .curve-line { animation: none; stroke-dashoffset: 0; }
  .pt-ring { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 2.1rem;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.5, 0, .2, 1);
  }
  .nav-links.open { transform: none; }
  .nav-link { font-size: 1.25rem; }
  .nav-links .btn { font-size: 1.05rem; }
  .hero { padding: 8.5rem 0 4.5rem; }
  .section { padding: 4.6rem 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-note { text-align: left; }
}

/* ============ Wide screens ============ */
@media (min-width: 1400px) {
  .hero { padding: 13rem 0 7.5rem; }
  .section { padding: 8.5rem 0; }
  .grid { gap: 2rem; }
  .card { padding: 2.4rem; }
  .icon { width: 54px; height: 54px; }
  .icon svg { width: 26px; height: 26px; }
  .stat { padding: 1.9rem 1.6rem; }
  .stat-value { font-size: 1.7rem; }
  .assure { gap: 1rem; }
  .chip { padding: .6rem 1.3rem; font-size: .9rem; }
}
