/* ============ EIDREAM ============ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk.woff2') format('woff2');
}

:root {
  --bg: #060709;
  --ink: #eef0f3;
  --ink-2: #9aa0ab;
  --ink-3: #5c626d;
  --accent: #7cb8ff;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --font-latin: 'Space Grotesk';
  --font-cn: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font: var(--font-latin), var(--font-cn);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124, 184, 255, 0.25); }

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

/* ---- 背景层 ---- */

#cube-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.horizon {
  position: fixed;
  left: 50%;
  bottom: -42vh;
  width: 160vw;
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(46, 84, 138, 0.28) 0%, rgba(20, 34, 56, 0.12) 45%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- 顶部导航 ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 4.5vw, 64px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(6, 7, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-latin), sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.34em;
}

.nav__mark { width: 22px; height: 22px; color: var(--accent); }

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
}

.nav__links a { transition: color 0.25s; }
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  transition: border-color 0.25s, background 0.25s;
}

.nav__cta i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.nav__cta:hover { border-color: rgba(124, 184, 255, 0.5); background: rgba(124, 184, 255, 0.06); }

/* ---- 左侧锚点导航 ---- */

.rail {
  position: fixed;
  left: clamp(24px, 4.5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rail__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  transition: color 0.3s;
}

.rail__item b {
  width: 5px;
  height: 5px;
  background: currentColor;
  align-self: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.rail__item span {
  font-size: 10px;
  letter-spacing: 0.26em;
  opacity: 0.55;
  font-family: var(--font-latin), sans-serif;
}

.rail__item:hover { color: var(--ink-2); }

.rail__item.is-active { color: var(--ink); }
.rail__item.is-active b { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---- 通用 ---- */

main { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-latin), var(--font-cn);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: all 0.3s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: #0a0b0d;
  font-weight: 500;
}

.btn--solid:hover { background: var(--accent); box-shadow: 0 0 36px rgba(124, 184, 255, 0.35); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

.btn--ghost:hover { border-color: rgba(124, 184, 255, 0.5); color: var(--ink); }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

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

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 24px 14vh;
}

.hero__inner { max-width: 880px; }

.hero__title {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 60px rgba(6, 7, 9, 0.9);
}

.hero__sub {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: 0.04em;
}

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

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--ink-3));
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollcue 2.2s var(--ease) infinite;
}

@keyframes scrollcue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---- Section ---- */

.section {
  position: relative;
  padding: clamp(110px, 16vh, 180px) clamp(24px, 8vw, 120px);
  max-width: 1480px;
  margin: 0 auto;
}

.section__head h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section__head { margin-bottom: clamp(48px, 7vh, 84px); }

/* ---- 产品卡片 ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  background: rgba(8, 10, 13, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(28px, 2.6vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: background 0.4s;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 184, 255, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }
.card:hover { background: rgba(11, 14, 18, 0.88); }

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.card__index {
  font-family: var(--font-latin), sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.2em;
}

.card__tag {
  font-family: var(--font-latin), sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--accent);
  border: 1px solid rgba(124, 184, 255, 0.25);
  padding: 5px 10px;
}

.card--soon .card__tag { color: var(--ink-3); border-color: var(--line-2); }

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0.9;
}

.card__icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.card > p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.card__list {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__list li {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: none;
}

.card--soon .card__list li::before { background: var(--ink-3); }

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  transition: color 0.25s, gap 0.25s;
}

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

.card__link:hover { color: var(--accent); }
.card__link:hover svg { transform: translate(3px, -3px); }

.card__link--mute { color: var(--ink-3); cursor: default; }
.card__link--mute:hover { color: var(--ink-3); }
.card__link--mute:hover svg { transform: none; }

/* ---- 规模 ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}

.stat {
  padding: 44px 28px 8px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-family: var(--font-latin), var(--font-cn);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
}

/* ---- 关于 ---- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__grid .section__head { margin-bottom: 0; }

.about__body p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.about__body em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-latin), sans-serif;
}

.about__body .btn { margin-top: 18px; }

/* ---- 页脚 ---- */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 72px clamp(24px, 8vw, 120px) 36px;
}

.footer__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__logo {
  font-family: var(--font-latin), sans-serif;
  font-size: 19px;
  letter-spacing: 0.34em;
  font-weight: 500;
}

.footer__brand p {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 13.5px;
  letter-spacing: 0.1em;
}

.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 12px;
  transition: color 0.25s;
}

.footer__col a:hover { color: var(--ink); }

.footer__base {
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.footer__base a:hover { color: var(--ink-2); }

/* ---- 响应式 ---- */

@media (max-width: 1100px) {
  .rail { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 36px; }
  .stat:nth-child(even) { border-right: none; padding-left: 28px; }
  .about__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .br-desktop { display: none; }
  .hero { padding-bottom: 18vh; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; padding-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
