/* ============================================
   株式会社円刃 (Yen-Gine) v5.00
   "DNA Helix + Word Cycle" — EDGE / CORE / 0to1
   5000 Particles, Word Dots, Typewriter,
   Holographic Cards, Stats Bar
   ============================================ */

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

:root {
  /* Base (v3.15) */
  --bg: #030308;
  --bg-card: rgba(8, 12, 28, 0.65);
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.3);
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --white: #FFFFFF;
  --white-dim: rgba(255, 255, 255, 0.6);
  --white-muted: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.25);

  /* Holographic (v2.17) */
  --holo-pink: #ff6ec7;
  --holo-purple: #7b68ee;
  --holo-blue: #00d4ff;
  --holo-green: #50fa7b;
  --holo-orange: #ffb86c;

  /* Text */
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;

  /* Frosted */
  --frost: rgba(255, 255, 255, 0.04);
  --frost-border: rgba(255, 255, 255, 0.08);
  --frost-border-hover: rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-jp: 'Noto Sans JP', 'Inter', sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* --- Canvas Layers --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#word-dot-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Prismatic Overlay (v2.17) --- */
.prism-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.12;
  mix-blend-mode: screen;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 110, 199, 0.15),
    rgba(123, 104, 238, 0.1) 25%,
    rgba(0, 212, 255, 0.08) 50%,
    transparent 70%
  );
  transition: opacity 0.3s ease;
}

/* --- Holographic Text (v2.17) --- */
.holo-text {
  background: linear-gradient(
    135deg,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green),
    var(--holo-orange),
    var(--holo-pink)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShift 8s ease infinite;
}

@keyframes holoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--holo-purple), var(--holo-pink));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-dim));
}

.nav-logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--holo-pink), var(--holo-blue), var(--holo-green));
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--cyan-dim);
  border-radius: 100px;
  color: var(--cyan) !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg) !important;
  border-color: var(--cyan) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu (v2.17 overlay style) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-link {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white-dim);
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-menu-link:hover {
  color: var(--white);
}

.mobile-menu-link--cta {
  padding: 12px 32px;
  border: 1px solid var(--holo-purple);
  border-radius: 100px;
  color: var(--white);
}

/* --- Sections (shared) --- */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--white-dim);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Hero --- */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tagline-wrap {
  overflow: hidden;
}

.hero-tagline {
  font-family: var(--font-en);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  min-height: 1.2em;
}

.hero-typewriter {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--holo-pink) 20%,
    var(--holo-purple) 40%,
    var(--holo-blue) 60%,
    #ffffff 80%,
    var(--holo-green) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShift 10s ease infinite;
}

.hero-cursor {
  display: inline-block;
  color: var(--holo-purple);
  animation: cursorBlink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
  letter-spacing: 0.02em;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--holo-purple), var(--holo-blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 104, 238, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green)
  );
  background-size: 300% 300%;
  animation: holoShift 4s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: 0;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(123, 104, 238, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary span,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--white-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--white-muted);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1rem;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 2s forwards;
}

.scroll-hint span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--holo-purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Stats Bar (v2.17) --- */
.stats {
  position: relative;
  z-index: 1;
  padding: 48px 2rem;
  background: rgba(5, 5, 10, 0.6);
}

.stats-holo-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green),
    var(--holo-orange),
    transparent
  );
  background-size: 200% 100%;
  animation: borderShimmer 4s linear infinite;
}

.stats-holo-border--bottom {
  top: auto;
  bottom: 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats-number {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white), var(--holo-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.stats-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--frost-border), transparent);
}

/* --- Services --- */
.section-services {
  padding: 8rem 0;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.services-grid .service-card {
  width: calc((100% - 3rem) / 3);
}

/* Holographic card base (v2.17) */
.holo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
}

.holo-card-foil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    var(--foil-angle, 135deg),
    rgba(255, 110, 199, 0.08) 0%,
    rgba(123, 104, 238, 0.1) 20%,
    rgba(0, 212, 255, 0.12) 40%,
    rgba(80, 250, 123, 0.08) 60%,
    rgba(255, 184, 108, 0.1) 80%,
    rgba(255, 110, 199, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.holo-card:hover .holo-card-foil {
  opacity: 1;
}

/* Service card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(40px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--frost-border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--cyan-glow);
}

.service-card-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--holo-blue);
}

.service-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.service-name-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.8;
}

/* Service card bottom line (v2.17) */
.service-card-line {
  margin-top: 20px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green)
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  border-radius: 2px;
}

.service-card:hover .service-card-line {
  transform: scaleX(1);
  animation: borderShimmer 3s linear infinite;
}

/* --- About --- */
.section-about {
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-info .section-label {
  padding-left: 0;
}

.about-info .section-label::before {
  display: none;
}

.about-info .section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 2;
  margin-bottom: 2.5rem;
}

.about-lead-sub {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-detail-row {
  display: flex;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.about-detail-row:first-child {
  border-top: 1px solid var(--border);
}

.about-detail-row dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  width: 120px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.about-detail-row dd {
  font-size: 0.92rem;
  color: var(--white-dim);
}

/* About visual */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-stat-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringPulse 4s ease-in-out infinite;
}

.about-stat-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.about-stat-ring::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.05);
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 20px var(--cyan-glow); }
  50% { box-shadow: 0 0 40px var(--cyan-dim); }
}

.stat-ring-inner {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-ring {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 0.25rem;
  display: block;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--white-muted);
  text-transform: uppercase;
}

/* --- Agents (v2.17 card design) --- */
.section-agents {
  padding: 8rem 0;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.agent-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-card:hover {
  border-color: var(--frost-border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(123, 104, 238, 0.06);
}

.agent-card-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.agent-card-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.agent-card-avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green),
    var(--holo-orange),
    var(--holo-pink)
  );
  animation: avatarRingSpin 4s linear infinite;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.agent-card:hover .agent-card-avatar-ring {
  opacity: 1;
}

@keyframes avatarRingSpin {
  to { transform: rotate(360deg); }
}

.agent-card-avatar-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--holo-purple);
}

.agent-card-meta {
  flex-grow: 1;
}

.agent-card-name {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.agent-card-model {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.agent-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--holo-green);
  letter-spacing: 0.05em;
}

.agent-card-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--holo-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(80, 250, 123, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(80, 250, 123, 0); }
}

.agent-card-desc {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.agent-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-card-tags span {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--frost-border);
  color: var(--text-muted);
  background: var(--frost);
  transition: all 0.15s ease;
}

.agent-card:hover .agent-card-tags span {
  border-color: rgba(123, 104, 238, 0.2);
  color: var(--text-secondary);
}

/* --- Philosophy --- */
.section-philosophy {
  padding: 8rem 0;
  min-height: 80vh;
}

.philosophy-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-content .section-label {
  padding-left: 0;
  display: block;
  margin-bottom: 2.5rem;
}

.philosophy-content .section-label::before {
  display: none;
}

.philosophy-tagline {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.philosophy-en {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.philosophy-jp {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.philosophy-jp:last-child {
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* --- Contact --- */
.section-contact {
  padding: 8rem 0;
  min-height: 60vh;
}

.contact-actions {
  text-align: center;
}

/* --- Footer --- */
.section-footer {
  min-height: auto;
  padding: 6rem 0 2rem;
  position: relative;
}

.footer-holo-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--holo-pink),
    var(--holo-purple),
    var(--holo-blue),
    var(--holo-green),
    transparent
  );
  background-size: 200% 100%;
  animation: borderShimmer 6s linear infinite;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  width: 60px;
  height: auto;
  opacity: 0.8;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--cyan-dim));
}

.footer-tagline {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.1em;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1rem;
}

.footer-col li {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-link {
  color: var(--cyan) !important;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--white-muted);
  letter-spacing: 0.02em;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid .service-card {
    width: calc((100% - 1.5rem) / 2);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .services-grid .service-card {
    width: 100%;
  }

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

  .stats-divider {
    display: none;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-tagline {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prism-overlay {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-services,
  .section-about,
  .section-agents,
  .section-philosophy,
  .section-contact {
    padding: 5rem 0;
  }

  .about-stat-ring {
    width: 150px;
    height: 150px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}

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

/* --- Selection --- */
::selection {
  background: rgba(123, 104, 238, 0.3);
  color: var(--white);
}
