/* ============================================================
   Gen ex Gen — Layout System
   ============================================================ */

#particle-canvas { position:fixed; inset:0; z-index:0; pointer-events:none; }

/* ── Hero ──────────────────────────────── */
.hero {
  padding: 20vh 0 2vh; text-align: center;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-md); opacity: 0; transform: translateY(40px);
  animation: heroIn 1s var(--ease-out) 0.2s forwards;
}
@keyframes heroIn { to { opacity:1; transform:translateY(0); } }
.hero-title {
  font-family: var(--font-cn); font-size: clamp(5rem, 12vw, 11rem); font-weight: 900;
  line-height: 1; letter-spacing: -0.02em; color: var(--text-primary);
}
.hero-subtitle {
  font-family: var(--font-en); font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600; letter-spacing: 0.1em; color: var(--accent);
  text-transform: uppercase;
}
.hero-divider { width:48px; height:1px; background:rgba(255,255,255,0.18); margin:8px 0; }
.hero-tagline { font-size: 1.15rem; font-weight: 500; letter-spacing:0.06em; color: var(--text-secondary); }

/* ── Fluid Section ─────────────────────── */
.fluid-section {
  width: 100%; height: 65vh; position: relative; overflow: hidden;
  background: var(--bg-primary);
}
#fluid-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: auto; cursor: none;
}
@media (max-width: 768px) { .fluid-section { height: 60vh; } }

/* ── Sections ──────────────────────────── */
.section {
  position: relative; z-index:1;
  padding: var(--space-2xl) var(--space-md);
  display: flex; flex-direction: column; align-items: center;
}
.section-header {
  text-align: center; margin-bottom: var(--space-xl);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
}
.section-header .section-label {
  font-family: var(--font-en); font-size: var(--text-small); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); opacity: 0.8;
}
.section-header .section-title {
  font-family: var(--font-cn); font-size: var(--text-h1); font-weight: 700;
  line-height: var(--leading-tight); letter-spacing: var(--tracking-tight);
}
.section-header .section-subtitle {
  font-size: var(--text-caption); color: var(--text-secondary); max-width: 480px;
}

/* ── Software Grid ─────────────────────── */
.software-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-md); width: 100%; max-width: var(--max-width);
  padding: 0 var(--space-md);
}
@media (max-width:1024px) { .software-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:768px)  { .software-grid { grid-template-columns: 1fr; gap: var(--space-sm); } }

/* ── Philosophy ─────────────────────────── */
.philosophy-flow {
  position: relative; width: 100%; max-width: 880px;
  padding: 0 var(--space-md); display: flex; flex-direction: column;
  gap: var(--space-2xl);
}
.pf-block {
  display: flex; align-items: flex-start; gap: var(--space-lg);
  position: relative; z-index: 1;
}
.pf-block.pf-left  { flex-direction: row; }
.pf-block.pf-right { flex-direction: row-reverse; }
.pf-block.pf-center { flex-direction: column; align-items: center; text-align: center; }
.pf-block.pf-center .pf-text { max-width: 520px; }
.pf-visual { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pf-num {
  font-family: var(--font-en); font-size: 6rem; font-weight: 900;
  color: rgba(255,255,255,0.025); letter-spacing: -0.04em; line-height: 1;
  user-select: none; pointer-events: none;
}
.pf-block.visible .pf-num { animation: numGlow 3s var(--ease-out) forwards; }
@keyframes numGlow {
  0% {color:rgba(255,255,255,0.025)} 40% {color:rgba(94,168,218,0.12)} 100% {color:rgba(255,255,255,0.025)}
}
.pf-deco {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0; top:50%; left:50%;
  transform: translate(-50%,-50%);
}
.pf-block.visible .pf-deco { animation: dotPulse 1.2s var(--ease-out) 0.3s forwards; }
@keyframes dotPulse {
  0% {opacity:0;transform:translate(-50%,-50%)scale(0)}
  50% {opacity:1;transform:translate(-50%,-50%)scale(3)}
  100% {opacity:0;transform:translate(-50%,-50%)scale(8)}
}
.pf-text { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-md); }
.pf-title { font-family: var(--font-cn); font-size: var(--text-h2); font-weight: 600; line-height: var(--leading-tight); }
.pf-title em { font-style: normal; color: var(--accent); }
.pf-text p { font-size: var(--text-caption); color: var(--text-secondary); line-height: 1.9; max-width: 360px; }
.pf-line {
  position: absolute; top:0; bottom:0; left:50%; width:1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  z-index:0; opacity:0.5;
}
@media (max-width: 768px) {
  .pf-block, .pf-block.pf-left, .pf-block.pf-right { flex-direction: column; align-items: center; text-align: center; }
  .pf-text p { max-width: 100%; }
  .pf-line { left: 2rem; }
  .pf-num { font-size: 3.5rem; }
}

/* ── About ─────────────────────────────── */
.about-inner { max-width: 620px; text-align: center; display: flex; flex-direction: column; gap: var(--space-md); }
.about-inner .body-text { font-size: var(--text-body); line-height: var(--leading-body); color: var(--text-secondary); }

/* ── Footer ────────────────────────────── */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.footer-text { font-size: var(--text-small); color: var(--text-tertiary); }
.footer-name { font-size: var(--text-caption); color: var(--text-secondary); }
