/* Design tokens — premium black + GINHE signature blue accents */
:root {
  --bg:              #000000;
  --bg-soft:         #070708;
  --surface:         #0B0B0C;
  --surface-2:       #121214;
  --text:            #F5F5F7;
  --text-2:          rgba(245, 245, 247, 0.72);
  --text-3:          rgba(245, 245, 247, 0.45);
  --border:          rgba(255, 255, 255, 0.1);
  --border-strong:   rgba(255, 255, 255, 0.18);
  --border-mute:     rgba(255, 255, 255, 0.06);

  --navy:            #050506;
  /* 鲸跃银河品牌蓝 — 用于强调、描边、微光，不作大面积底色 */
  --accent:          #3DA8FF;
  --accent-hover:    #6BC0FF;
  --accent-deep:     #1A7FE0;
  --accent-soft:     rgba(61, 168, 255, 0.1);
  --accent-mid:      rgba(61, 168, 255, 0.2);
  --accent-line:     rgba(61, 168, 255, 0.4);
  --cta:             var(--accent);
  --cta-hover:       var(--accent-hover);
  --cta-text:        #0a0a0a;
  --gain:            #00C896;
  --gain-soft:       rgba(0, 200, 150, 0.14);
  --violet:          #7B5CFF;
  --violet-soft:     rgba(123, 92, 255, 0.14);
  --glow-cyan:       0 0 28px rgba(61, 168, 255, 0.28);
  --glow-cyan-lg:    0 0 48px rgba(61, 168, 255, 0.18), 0 0 96px rgba(61, 168, 255, 0.08);

  --muted-line:      rgba(255, 255, 255, 0.055);

  /* 高级黑渐变：主体纯黑/炭灰，仅含微量品牌蓝气韵 */
  --bg-gradient:
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(61, 168, 255, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(255, 255, 255, 0.028) 0%, transparent 48%),
    linear-gradient(180deg, #000000 0%, #09090a 48%, #000000 100%);

  --bg-gradient-soft:
    radial-gradient(ellipse 75% 48% at 48% 0%, rgba(61, 168, 255, 0.045) 0%, transparent 52%),
    radial-gradient(ellipse 40% 32% at 0% 85%, rgba(255, 255, 255, 0.02) 0%, transparent 48%),
    linear-gradient(180deg, #060607 0%, #000000 55%, #080809 100%);

  --bg-gradient-deep:
    radial-gradient(ellipse 65% 42% at 72% 0%, rgba(61, 168, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #0b0b0c 52%, #000000 100%);

  --sans:
    "SF Pro Display", "SF Pro Text",
    -apple-system, BlinkMacSystemFont,
    "Geist",
    "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC",
    "Helvetica Neue", Helvetica,
    "Segoe UI", sans-serif;

  --mono:
    "SF Mono", "Geist Mono",
    ui-monospace, Menlo, Consolas, monospace;

  --nav-h:           52px;
  --nav-max-w:       min(1120px, calc(100vw - 48px));
  --max:             1120px;
  --section-y:       clamp(100px, 12vw, 168px);
  --radius:          12px;
  --radius-sm:       10px;
  --radius-md:       14px;
  --radius-lg:       18px;
  --radius-xl:       22px;
  --pill:            999px;

  --nav-glass:       rgba(8, 8, 10, 0.72);
  --nav-glass-scrolled: rgba(4, 4, 6, 0.92);
  --nav-glass-border: rgba(255, 255, 255, 0.12);
  --shadow-nav:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

/* Same-origin multipage soft crossfade (Chromium) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--bg-gradient);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.011em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* fixed attachment causes paint jank on nav/scroll; keep scroll for perf */
  background-attachment: scroll;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ol, ul { list-style: none; }
::selection { background: var(--accent-mid); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(22px, 4.5vw, 40px);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Soft panel corners — description / content blocks sitewide */
.panel-soft,
.hero-metric,
.home-link-card,
.home-prove-side,
.home-case-card,
.track-matrix-card,
.method-layer,
.company-culture-card,
.info-card,
.info-role,
.prove-why-item,
.prove-definition,
.solution-roi-item,
.privacy-toc,
.cta-form,
.product-card,
.truth-col,
.track-item,
.contrast-col,
.prove-note-col {
  border-radius: var(--radius-md);
}

/* Outline-only cards — no filled surface blocks */
.truth-col,
.track-matrix-card,
.home-case-card,
.method-layer,
.company-culture-card,
.info-card,
.info-role,
.prove-why-item,
.prove-note-col,
.prove-definition,
.solution-roi-item,
.privacy-toc,
.home-link-card,
.home-prove-side,
.track-item,
.contrast-col,
.hero-metric,
.cta-form {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.truth-col--good {
  border-color: rgba(61, 168, 255, 0.28);
}

.is-card:hover,
.track-matrix-card:hover,
.home-case-card:hover,
.home-link-card:hover,
.company-culture-card:hover,
.track-item:hover,
.method-layer:hover,
.info-card:hover,
.prove-why-item:hover {
  background: transparent !important;
}

/* Contiguous flow strips: round the outer shell only */
.loop-flow,
.prove-steps,
.standards-list,
.prove-alias-list {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), #fff 45%, rgba(61, 168, 255, 0.85));
  box-shadow: none;
}

/* ── Premium card interaction ── */
.is-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 45%,
    transparent 100%
  );
}

.is-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.is-card:hover::before {
  opacity: 1;
}

.is-card > * {
  position: relative;
  z-index: 2;
}

/* Flush cells inside overflow strips — no lift */
.is-card--flush:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Soft pointer sheen — neutral white, not cyan glow */
.has-spotlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  --spot-x: 50%;
  --spot-y: 50%;
}

.has-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(
    300px circle at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.075),
    transparent 60%
  );
}

.has-spotlight:hover::after {
  opacity: 1;
}

.is-magnetic {
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease, background 0.15s ease;
}

.hero-orb,
.hero-streak,
.hero-glow,
.hero-grid {
  transition: translate 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: translate;
}

/* Ambient pointer — barely visible */
.ambient-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.028), transparent 70%);
  transition: opacity 0.5s ease;
}

.ambient-cursor.is-on {
  opacity: 1;
}

/* Keep page content above ambient glow */
body > section,
body > [data-partial="footer"] {
  position: relative;
  z-index: 2;
}

/* Overlays must sit above footer / page content */
body > [data-partial="contact-modal"] {
  position: relative;
  z-index: 400;
}

body > [data-partial="mobile-drawer"] {
  position: relative;
  z-index: 250;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .reveal { opacity: 1; transform: none; transition: none; will-change: auto; }
  .intro-band .intro-rotate,
  .hero-streak,
  .hero-orb,
  .cap-visual--grid .cap-grid-scan { animation: none !important; }
  .scroll-progress,
  .has-spotlight::after,
  .ambient-cursor,
  .is-card::before { display: none !important; }
  .is-magnetic { transition: none; }
  .is-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .is-card:hover {
    transform: none;
    box-shadow: none;
  }
  .hero-orb,
  .hero-streak,
  .hero-glow,
  .hero-grid { transition: none; }
}
