/* ==========================================================================
   InnovEntropy (创想熵联) — Homepage v2
   Cinematic, Tech-Forward, Electric Blue on Deep Space
   ========================================================================== */

/* ==========================================================================
   01. Design Tokens
   ========================================================================== */
:root {
  /* ── Palette ─────────────────────────────────────────────── */
  --bg-deep:         #020617;
  --bg-elevated:     #0a0f1f;
  --bg-card:         #0f172a;
  --bg-card-tint:    rgba(37, 99, 235, 0.03);

  --accent:          #2563eb;
  --accent-bright:   #3b82f6;
  --accent-glow:     #60a5fa;
  --accent-cyan:     #06b6d4;
  --accent-purple:   #8b5cf6;

  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-tertiary:   #475569;

  --border-subtle:   rgba(37, 99, 235, 0.10);
  --border-hover:    rgba(37, 99, 235, 0.25);
  --border-active:   rgba(37, 99, 235, 0.40);

  --glass-bg:        rgba(255, 255, 255, 0.025);
  --glass-border:    rgba(255, 255, 255, 0.06);

  /* ── Typography ──────────────────────────────────────────── */
  --font-heading: 'Space Grotesk', 'Noto Sans SC', system-ui, sans-serif;
  --font-body:    'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-hero:    clamp(3rem, 8vw, 7rem);
  --fs-h1:      clamp(2.5rem, 6vw, 5rem);
  --fs-h2:      clamp(2rem, 5vw, 4rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --fs-body-lg: clamp(1rem, 2vw, 1.25rem);
  --fs-body:    clamp(0.9375rem, 1vw, 1.0625rem);
  --fs-sm:      clamp(0.8125rem, 0.8vw, 0.875rem);
  --fs-xs:      clamp(0.6875rem, 0.7vw, 0.75rem);
  --fs-mono-xs: clamp(0.625rem, 0.65vw, 0.6875rem);

  /* ── Spacing ─────────────────────────────────────────────── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-section: clamp(5rem, 4rem + 4vw, 8rem);

  /* ── Layout ──────────────────────────────────────────────── */
  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 1rem + 1vw, 2rem);

  /* ── Radii ───────────────────────────────────────────────── */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lift:  0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.25);

  /* ── Motion ──────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    150ms;
  --dur-norm:    300ms;
  --dur-slow:    500ms;
  --dur-glacial: 800ms;
}

/* ==========================================================================
   02. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   03. Three.js Canvas
   ========================================================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* AI-generated hero background — subtle depth layer behind particles */
.bg-image-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../assets/hero-bg.png") center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

/* ==========================================================================
   04. Vignette & Scanlines
   ========================================================================== */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 40%,
    rgba(2, 6, 23, 0.6) 75%,
    rgba(2, 6, 23, 0.95) 100%
  );
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  opacity: 0.6;
}

/* ==========================================================================
   05. Custom Cursor
   ========================================================================== */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor {
  width: 4px;
  height: 4px;
  background: var(--accent-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--accent-glow);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out),
              height var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

@media (hover: none) {
  .cursor,
  .cursor-ring { display: none; }
}

/* ==========================================================================
   06. Scroll Progress
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
  transition: width 80ms linear;
}

/* ==========================================================================
   07. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--sp-4) 0;
  background: transparent;
  transition: background var(--dur-norm) var(--ease-out),
              backdrop-filter var(--dur-norm) var(--ease-out),
              border-color var(--dur-norm) var(--ease-out),
              padding var(--dur-norm) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border-subtle);
  padding: var(--sp-3) 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo svg {
  flex-shrink: 0;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--dur-norm) var(--ease-out);
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   08. Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--sp-16) var(--pad-x);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Floating brand triskelion — AI-generated, subtle depth behind hero text */
.hero-brand-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  animation: brand-float 20s ease-in-out infinite;
}
.hero-brand-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(1px);
}
@keyframes brand-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { transform: translate(-50%, -52%) scale(1.05) rotate(3deg); }
  66% { transform: translate(-50%, -48%) scale(0.97) rotate(-2deg); }
}

/* Glitch line */
.hero-glitch-line {
  width: 100%;
  height: 1px;
  margin-bottom: var(--sp-10);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 99, 235, 0.15) 20%,
    var(--accent) 50%,
    rgba(37, 99, 235, 0.15) 80%,
    transparent 100%
  );
  opacity: 0.5;
  animation: glitch-pulse 4s ease-in-out infinite;
}

@keyframes glitch-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  margin-bottom: var(--sp-8);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

.hero-line {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
.hero-desc {
  max-width: 600px;
  margin: 0 auto var(--sp-10);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur-norm) var(--ease-out);
}

.btn-primary {
  padding: clamp(0.875rem, 1vw, 1rem) clamp(1.75rem, 3vw, 2.5rem);
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-lg) + 2px);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--dur-norm) var(--ease-out);
  z-index: -1;
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-glow-strong), 0 8px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

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

.hero-hint {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--text-tertiary);
}

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    transparent 100%
  );
  opacity: 0.4;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { height: 30px; opacity: 0.3; }
  50% { height: 50px; opacity: 0.7; }
}

/* ==========================================================================
   09. Sections (Shared)
   ========================================================================== */
.section {
  padding: var(--sp-section) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 15, 31, 0.5) 30%,
    rgba(10, 15, 31, 0.5) 70%,
    transparent 100%
  );
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-20);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-lead {
  max-width: 600px;
  margin: var(--sp-6) auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   10. Philosophy Grid
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.philo-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  transition: transform var(--dur-norm) var(--ease-out),
              border-color var(--dur-norm) var(--ease-out),
              box-shadow var(--dur-norm) var(--ease-out);
}

.philo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--dur-norm) var(--ease-out);
}

.philo-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lift), var(--shadow-glow);
}

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

.philo-card-marker {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.06;
  color: var(--text-primary);
  user-select: none;
  pointer-events: none;
}

.philo-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--accent-bright);
  margin-bottom: var(--sp-6);
}

.philo-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.philo-card p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   11. Capability Ring
   ========================================================================== */
.capability-ring-wrap {
  max-width: 500px;
  aspect-ratio: 1;
  margin: var(--sp-16) auto;
  position: relative;
}

.capability-ring {
  width: 100%;
  height: 100%;
  position: relative;
  border: 1px dashed rgba(37, 99, 235, 0.15);
  border-radius: 50%;
}

.cap-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-50%) translateX(
    calc(var(--ring-radius, 50%) * -1 + 80px)
  );
  /* Simpler approach: use direct top/left positioning */
  transition: transform var(--dur-norm) var(--ease-out),
              border-color var(--dur-norm) var(--ease-out),
              box-shadow var(--dur-norm) var(--ease-out);
}

/* Position nodes at cardinal points around the ring */
.cap-node--1 {
  --angle: 0deg;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cap-node--2 {
  --angle: 90deg;
  top: 50%;
  right: 0;
  left: auto;
  transform: translate(50%, -50%);
}

.cap-node--3 {
  --angle: 180deg;
  bottom: 0;
  top: auto;
  left: 50%;
  transform: translate(-50%, 50%);
}

.cap-node--4 {
  --angle: 270deg;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.cap-node:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translate(-50%, -50%) scale(1.1);
}

.cap-node--2:hover { transform: translate(50%, -50%) scale(1.1); }
.cap-node--3:hover { transform: translate(-50%, 50%) scale(1.1); }
.cap-node--4:hover { transform: translate(-50%, -50%) scale(1.1); }

.cap-node-label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  white-space: nowrap;
}

.cap-node-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Core */
.cap-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-strong), 0 0 80px rgba(37, 99, 235, 0.15);
  z-index: 2;
}

.cap-core-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cap-core-label {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.cap-core-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cap-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   12. Capability Details
   ========================================================================== */
.cap-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.cap-detail {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: transform var(--dur-norm) var(--ease-out),
              border-color var(--dur-norm) var(--ease-out),
              box-shadow var(--dur-norm) var(--ease-out);
}

.cap-detail:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.cap-detail-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-3);
}

.cap-detail h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.cap-detail p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.cap-tags li {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: var(--r-full);
  padding: 2px var(--sp-3);
  white-space: nowrap;
}

/* ==========================================================================
   13. Manifesto
   ========================================================================== */
.manifesto-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 700px;
  margin: 0 auto;
}

.manifesto-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: var(--sp-8);
  border-left: 2px solid rgba(37, 99, 235, 0.15);
  transition: border-color var(--dur-norm) var(--ease-out),
              background var(--dur-norm) var(--ease-out);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.manifesto-item:hover {
  border-left-color: var(--accent);
  background: rgba(37, 99, 235, 0.03);
}

.manifesto-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.manifesto-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.manifesto-content p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Big quote */
.manifesto-big {
  text-align: center;
  margin-top: var(--sp-20);
}

.manifesto-big blockquote {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-big blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.manifesto-big blockquote em {
  font-style: italic;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.footer {
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.6);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
}

.footer-brand svg {
  flex-shrink: 0;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-en {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.footer-tagline {
  text-align: center;
}

.footer-tagline p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-1) !important;
}

.footer-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.footer-company {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.footer-beian {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

.beian-link {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  transition: color var(--dur-fast) var(--ease-out);
}

.beian-link:hover {
  color: var(--text-secondary);
}

.beian-divider {
  color: var(--text-tertiary);
  opacity: 0.4;
  font-size: var(--fs-xs);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* ==========================================================================
   15. Animation Initial States (JS Reveals)
   ========================================================================== */
/* Only hide when JS is confirmed active — fallback visible for no-JS */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-glacial) var(--ease-out),
              transform var(--dur-glacial) var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

html.js [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .capability-ring-wrap {
    max-width: 420px;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 40px);
    padding: var(--sp-20) var(--pad-x) var(--sp-12);
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-metrics {
    gap: var(--sp-8);
  }

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

  .cap-detail-grid {
    grid-template-columns: 1fr;
  }

  .capability-ring-wrap {
    max-width: 350px;
    margin: var(--sp-12) auto;
  }

  .cap-node {
    width: 100px;
    padding: var(--sp-2) var(--sp-3);
  }

  .cap-node-label { font-size: var(--fs-xs); }
  .cap-node-desc { display: none; }

  .cap-core {
    width: 90px;
    height: 90px;
  }

  .cap-core-label { font-size: var(--fs-sm); }

  .manifesto-item {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .scroll-hint {
    display: none;
  }
}

/* Small Mobile ≤ 480px */
@media (max-width: 480px) {
  .hero-badge {
    padding: var(--sp-1) var(--sp-3);
  }

  .hero-badge-text {
    font-size: 10px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.5rem);
  }

  .hero-desc {
    font-size: var(--fs-body);
  }

  .section-heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .philo-card {
    padding: var(--sp-6);
  }

  .philo-card-marker {
    font-size: 3.5rem;
  }

  .capability-ring-wrap {
    max-width: 280px;
  }

  .cap-node {
    width: 80px;
    padding: var(--sp-2);
  }

  .cap-core {
    width: 70px;
    height: 70px;
  }

  .manifesto-big blockquote p {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}

/* ==========================================================================
   17. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal],
  html.js [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-glitch-line {
    opacity: 0.5;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   18. Print
   ========================================================================== */
@media print {
  .vignette,
  .scanlines,
  .cursor,
  .cursor-ring,
  .scroll-progress,
  .scroll-hint,
  #bg-canvas,
  .hero-glitch-line,
  .cap-connections {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    page-break-inside: avoid;
  }
}
