/* ==========================================================================
   eBS AI GROUP Official Design System & Multi-Page Theme Stylesheet
   Design Philosophy: Cyberpunk Luxury & Modern Glassmorphism
   Strict Compliance with ANTIGRAVITY_INSTRUCTIONS.md
   ========================================================================== */

:root {
  /* Color Palette Tokens */
  --bg-dark: #050608;
  --bg-surface: #0a0c10;
  --bg-card: rgba(16, 20, 28, 0.65);
  --bg-card-hover: rgba(24, 30, 42, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Pillar Accent Colors */
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-glow: rgba(212, 175, 55, 0.25);

  --violet: #a855f7;
  --violet-light: #c084fc;
  --violet-glow: rgba(168, 85, 247, 0.25);

  --cyan: #06b6d4;
  --cyan-light: #67e8f9;
  --cyan-glow: rgba(6, 182, 212, 0.25);

  --emerald: #10b981;
  --emerald-light: #6ee7b7;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --magenta: #ec4899;
  --magenta-light: #f472b6;
  --magenta-glow: rgba(236, 72, 153, 0.25);

  /* Layout Constants */
  --max-width: 1240px;
  --header-height: 116px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Glassmorphism Defaults */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(16px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Noto Sans KR", "Plus Jakarta Sans", -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Background */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* Reusable Glass Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
}

/* Typography & Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

/* 2 Font Sizes Smaller for Video Section Title */
.video-section-title {
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.page-hero-title {
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.75;
}

/* Gradient Text Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-multi {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--violet-light) 40%, var(--cyan-light) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-gold { color: var(--gold-light); }
.highlight-cyan { color: var(--cyan-light); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0b0c0e;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}



.button.youtube {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.button.youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.button.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.button.glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.width-100 { width: 100%; }

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(16px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  opacity: 0.5;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-en {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  line-height: 1.1;
}

.brand-kr {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width var(--transition-fast);
}

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

.nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold-glow);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.nav-cta:hover, .nav-cta.active {
  background: var(--gold);
  color: #0b0c0e;
}

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

/* Mobile Menu Toggle Button */
.menu-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-icon-bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

/* Page Banner Header */
.page-banner {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.page-banner-content {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

/* Section Common Styling */
.section {
  padding: 80px 0 100px;
  position: relative;
}

/* Hero Section (Index Only) */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-banner.png") center/cover no-repeat;
  filter: contrast(1.1) saturate(0.9) brightness(0.45);
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(5,6,8,0.4) 0%, rgba(5,6,8,0.95) 80%),
    linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
  z-index: -2;
}

.hero-content {
  width: min(840px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.system-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blinkDot 1.5s infinite alternate;
}

@keyframes blinkDot {
  from { opacity: 0.4; }
  to { opacity: 1; transform: scale(1.2); }
}

.status-text {
  font-family: "Plus Jakarta Sans", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan-light);
}

.hero-title {
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
  opacity: 0.9;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   PERFECTLY FORMATTED HERO STATS BAR (FIXED CSS & ALIGNMENT)
   ========================================================================== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem;
  padding: 2.2rem 2.5rem;
  background: rgba(16, 20, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-num {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.stat-sub {
  font-family: "Noto Sans KR", "Plus Jakarta Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 260px;
  word-break: keep-all;
}

/* About Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.manifesto-card {
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.manifesto-head {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.manifesto-p {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.principles-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.principle-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
}

.principle-num {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.principle-content strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.principle-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* eBS OS Page Specifics */
.os-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.os-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.8;
}

.os-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.os-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  color: var(--gold-light);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.os-features strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
}

.os-features p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Architecture Graphic */
.architecture-container {
  padding: 2.5rem;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.arch-header {
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.arch-tier {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.arch-card {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.arch-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.arch-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tier 1: Top eBS OS */
.os-core {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(16, 20, 28, 0.9) 100%);
  border-color: var(--gold-light);
  box-shadow: 0 0 30px var(--gold-glow);
}

.os-core strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: var(--gold-light);
}

.os-logo-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gold);
  color: #000;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Tier 2: Middle (VALUE & INTELLIGENCE) */
.tier-middle .arch-card { flex: 1; }
.pillar-value { border-color: rgba(212, 175, 55, 0.4); }
.pillar-value strong { color: var(--gold-light); }
.pillar-intelligence { border-color: rgba(168, 85, 247, 0.4); }
.pillar-intelligence strong { color: var(--violet-light); }

/* Tier 3: Bottom (FOUNDATION, LIFE, CULTURE) */
.tier-bottom .arch-card { flex: 1; }
.pillar-foundation { border-color: rgba(6, 182, 212, 0.4); }
.pillar-foundation strong { color: var(--cyan-light); }
.pillar-life { border-color: rgba(16, 185, 129, 0.4); }
.pillar-life strong { color: var(--emerald-light); }
.pillar-culture { border-color: rgba(236, 72, 153, 0.4); }
.pillar-culture strong { color: var(--magenta-light); }

.node-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

.arch-connector {
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-light), var(--violet-light));
}

.arch-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
}

/* 5 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.pillar-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pillar-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  transition: opacity var(--transition-normal);
}

.pillar-card:hover .pillar-glow { opacity: 0.4; }

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pillar-num {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.pillar-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pillar-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.pillar-list span {
  margin-right: 0.4rem;
  opacity: 0.7;
}

/* Pillar Card Color Themes */
.pillar-card.value { --pillar-accent: var(--gold-light); }
.pillar-card.value:hover { border-color: var(--gold); box-shadow: 0 15px 40px var(--gold-glow); }
.pillar-card.value .pillar-num, .pillar-card.value .pillar-icon, .pillar-card.value .pillar-title, .pillar-card.value .pillar-list span { color: var(--gold-light); }
.pillar-card.value .pillar-glow { background: var(--gold); }

.pillar-card.intelligence { --pillar-accent: var(--violet-light); }
.pillar-card.intelligence:hover { border-color: var(--violet); box-shadow: 0 15px 40px var(--violet-glow); }
.pillar-card.intelligence .pillar-num, .pillar-card.intelligence .pillar-icon, .pillar-card.intelligence .pillar-title, .pillar-card.intelligence .pillar-list span { color: var(--violet-light); }
.pillar-card.intelligence .pillar-glow { background: var(--violet); }

.pillar-card.foundation { --pillar-accent: var(--cyan-light); }
.pillar-card.foundation:hover { border-color: var(--cyan); box-shadow: 0 15px 40px var(--cyan-glow); }
.pillar-card.foundation .pillar-num, .pillar-card.foundation .pillar-icon, .pillar-card.foundation .pillar-title, .pillar-card.foundation .pillar-list span { color: var(--cyan-light); }
.pillar-card.foundation .pillar-glow { background: var(--cyan); }

.pillar-card.life { --pillar-accent: var(--emerald-light); }
.pillar-card.life:hover { border-color: var(--emerald); box-shadow: 0 15px 40px var(--emerald-glow); }
.pillar-card.life .pillar-num, .pillar-card.life .pillar-icon, .pillar-card.life .pillar-title, .pillar-card.life .pillar-list span { color: var(--emerald-light); }
.pillar-card.life .pillar-glow { background: var(--emerald); }

.pillar-card.culture { --pillar-accent: var(--magenta-light); }
.pillar-card.culture:hover { border-color: var(--magenta); box-shadow: 0 15px 40px var(--magenta-glow); }
.pillar-card.culture .pillar-num, .pillar-card.culture .pillar-icon, .pillar-card.culture .pillar-title, .pillar-card.culture .pillar-list span { color: var(--magenta-light); }
.pillar-card.culture .pillar-glow { background: var(--magenta); }

/* Projects & Ecosystem */
.flow-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.flow-step {
  flex: 1;
  min-width: 180px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: var(--step-color);
}

.step-badge {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--step-color);
  margin-bottom: 0.8rem;
}

.flow-step strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.flow-step span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--gold-light);
  opacity: 0.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.project-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(16, 20, 28, 0.85) 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

.project-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.project-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.project-pillars-used {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-pillars-used span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Master Roadmap Timeline */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.timeline-card {
  padding: 2.2rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.timeline-marker {
  font-family: "Plus Jakarta Sans", monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--cyan-light);
  margin-bottom: 0.4rem;
}

.timeline-phase {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.timeline-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 1.5rem;
}

.contact-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.contact-title-badge {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
}

.field-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.field-value {
  color: var(--text-main);
  font-weight: 700;
}

.field-link {
  color: var(--gold-light);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.field-link:hover { text-decoration: underline; }

/* ==========================================================================
   FULL-WIDTH YOUTUBE VIDEO HUB (AT BOTTOM OF MAIN CONTENT)
   ========================================================================== */
.video-hub-section {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, rgba(5,6,8,0.7) 0%, rgba(10,12,16,0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.video-hub-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.video-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}


.video-card.youtube {
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.08) 0%, rgba(16, 20, 28, 0.9) 100%);
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.1);
}

.video-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.video-brand-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}


.video-brand-title h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.video-live-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
}


.video-card.youtube .video-live-tag {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4d4d;
  border: 1px solid rgba(255, 0, 0, 0.4);
}

/* Video Player Container (16:9 Aspect Ratio) */
.video-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.95), rgba(5, 6, 8, 0.98));
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.video-preview-link {
  cursor: pointer;
}

.video-preview-only {
  justify-content: center;
  padding: 0;
  background: transparent;
  gap: 0;
}

.video-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.play-button-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}


.video-card.youtube .play-button-ring {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4d4d;
  border: 2px solid #ff4d4d;
}

.video-placeholder:hover .play-button-ring {
  transform: scale(1.12);
}

.video-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.video-info-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  margin-top: auto;
}

.video-date-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.video-action-group .button {
  padding: 0.78rem 1rem;
  font-size: 0.82rem;
}

.video-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.video-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}


.youtube-inline {
  background: rgba(255, 0, 0, 0.14);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ffb3b3;
}

/* Footer */
.site-footer {
  background-color: #030406;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 0 40px;
  position: relative;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-logo strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: var(--gold-light);
}

.footer-kr {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--gold-light); }

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 2.2rem;
}

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

.footer-tagline {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.footer-bottom small {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 20, 28, 0.85);
  border: 1px solid var(--gold-glow);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-4px);
}

/* Scroll Animation Observer Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0s);
}

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

/* Media Queries & Responsive Layouts */
@media (max-width: 1024px) {
  .intro-grid, .os-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.2rem;
  }

  .stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .pillars-grid, .projects-grid, .roadmap-timeline {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .flow-container {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .video-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Company, department and channel page additions */
.text-link { display:inline-flex; margin-top:1rem; color:var(--gold-light); font-weight:700; }
.channel-meta { margin-bottom:2rem; }
.channel-meta h2 { margin:.8rem 0; font-size:clamp(2rem,5vw,3.5rem); }
.channel-content-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); gap:1.5rem; align-items:start; }
.transcript-panel,.video-view-panel { overflow:hidden; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.25rem; border-bottom:1px solid rgba(255,255,255,.1); font-weight:800; }
.panel-heading small { color:var(--gold-light); letter-spacing:.12em; }
.transcript-body,.video-info { padding:1.5rem; }
.transcript-body { max-height:520px; overflow:auto; line-height:1.9; }
.transcript-placeholder { margin-top:1.5rem; padding:1rem; border-left:3px solid var(--magenta-light); background:rgba(255,255,255,.035); color:var(--text-muted); }
.channel-video-frame { aspect-ratio:16/9; background:#06070b; display:grid; place-items:center; }
.channel-video-frame iframe { width:100%; height:100%; border:0; }
.channel-video-placeholder { max-width:420px; padding:2rem; text-align:center; color:var(--text-muted); }
.channel-video-placeholder strong { display:block; margin-bottom:.7rem; color:white; font-size:1.2rem; }
@media(max-width:850px){.channel-content-grid{grid-template-columns:1fr}.transcript-panel{order:2}.video-view-panel{order:1}}
/* Full-card company navigation */
.arch-card.pillar-node,
.pillar-card { position: relative; }
.company-card-link { position: absolute; inset: 0; z-index: 10; border-radius: inherit; cursor: pointer; }
.company-card-link:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
/* Fixed header clearance for every page type */
.page-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.page-hero-content {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

section[id], article[id], div[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 44px;
  }
}
/* Highlighted in-page YouTube playback button */
.button.video-link {
  background: linear-gradient(135deg, #ffe45c 0%, #ffd700 55%, #e4b900 100%);
  color: #050608;
  border: 1px solid #ffeb7a;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.28);
}

.button.video-link:hover {
  background: #fff07a;
  color: #000;
  border-color: #fff4a3;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.42);
}

.button.video-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* Local-file notice for YouTube error 153 */
.local-player-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .65rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(20, 22, 28, .98), rgba(5, 6, 8, .98));
  color: var(--text-muted);
}
.local-player-notice strong { color: var(--gold-light); font-size: 1.2rem; }
.local-player-notice b { color: #fff; }
/* Global language switcher */
.language-switcher {
  position: fixed;
  top: 5px;
  right: 22px;
  z-index: 125;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(5,6,8,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.language-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dbe4f0;
  font: 700 .68rem/1.2 "Noto Sans KR", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.language-switcher button:hover,
.language-switcher button:focus-visible {
  background: var(--gold-light);
  color: #050608;
  transform: translateY(-1px);
  outline: none;
}
.language-switcher button span { font-size: .9rem; }
.google-translate-host { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.goog-te-banner-frame.skiptranslate, .goog-te-gadget { display: none !important; }
body { top: 0 !important; }

/* Keep the main navigation and language controls on separate header rows. */
.site-header { align-items: flex-start; }
.header-container { position: relative; height: 80px; }
.language-switcher { position: absolute; top: 82px; right: 0; left: auto; }

/* Remove Google Translate's injected banner, tooltip and option balloon. */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-yAWNEb-L7lbkb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
html, body { top: 0 !important; margin-top: 0 !important; }

@media (max-width: 768px) {
  .language-switcher {
    top: 82px;
    left: 0;
    right: 0;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .language-switcher::-webkit-scrollbar { display: none; }
  .language-switcher button { padding: 4px 6px; font-size: .62rem; }
}
.language-flag {
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.footer-website {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.footer-website:hover,
.footer-website:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}