/* JB-Ai-Lab Page Layouts — Reference Matched */

/* === HERO SECTION (Centered + Full BG) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-bottom: 90px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero-3d-cube.png');
  /* cover: PC/태블릿/모바일 모든 비율에서 빈 공간 없이 꽉 채움 */
  background-size: cover;
  /* center 45%: PC화면에서 큐브 상단이 헤더 밑에 가려지거나 잘리지 않도록 안전 배치 */
  background-position: center 34%;
  background-repeat: no-repeat;
  /* 우아한 무중력 플로팅 및 네온 브리딩 애니메이션 결합 */
  animation: heroFloatBreathing 10s infinite ease-in-out;
  will-change: transform, filter;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 19, 29, 0) 0%,
    rgba(15, 19, 29, 0.10) 30%,
    rgba(15, 19, 29, 0.50) 70%,
    rgba(15, 19, 29, 0.90) 100%
  );
  z-index: 1;
}

@keyframes heroFloatBreathing {
  0% {
    transform: translateY(0) scale(1.0);
    filter: brightness(0.95) drop-shadow(0 0 10px rgba(143, 196, 255, 0.05));
  }
  50% {
    transform: translateY(-8px) scale(1.015);
    filter: brightness(1.06) drop-shadow(0 0 20px rgba(143, 196, 255, 0.25));
  }
  100% {
    transform: translateY(0) scale(1.0);
    filter: brightness(0.95) drop-shadow(0 0 10px rgba(143, 196, 255, 0.05));
  }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1000px;
  padding-top: 0;
}
.hero-label {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-label);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease both;
  justify-content: center;
}
.hero-title {
  font-family: var(--font-headline);
  font-size: 54px; font-weight: 800;
  line-height: 64px; letter-spacing: -0.03em;
  color: var(--color-pure-white);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease 0.15s both;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.7), 0 2px 20px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px; line-height: 28px;
  color: rgba(226, 232, 240, 0.8);
  max-width: 640px; margin: 0 auto var(--space-10);
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-stats {
  display: flex; gap: var(--space-12);
  justify-content: center;
  margin-top: var(--space-16);
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stat-value {
  font-family: var(--font-headline);
  font-size: 32px; font-weight: 700;
  color: var(--color-pure-white);
}
.hero-stat-label {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-outline);
  margin-top: var(--space-1);
}

/* === HERO RESPONSIVE (PC / Tablet / Mobile) === */

/* ─ 태블릿: 1024px 이하 */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
  }
  .hero-content {
    max-width: 780px;
    padding-top: 0;
  }
  .hero-subtitle {
    font-size: 16px;
    max-width: 520px;
  }
  .hero-bg {
    /* 태블릿 환경에 맞는 큐브 배치 */
    background-position: center 48%;
  }
}

/* ─ 모바일: 768px 이하 */
@media (max-width: 768px) {
  .hero {
    min-height: 100dvh; /* dynamic viewport height - 주소창 포함 안전 */
    padding: 0;
    /* 모바일에서도 동일 라운딩 유지 */
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
  .hero-bg {
    /* 모바일에서는 큐브가 상단 쪽에 잘 안착하도록 포지션 조정 */
    background-position: center 42%;
  }
  .hero-content {
    padding: 0 20px 40px;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 22px;
    max-width: 90%;
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-10);
  }
  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
  .hero-actions .btn {
    width: min(280px, 90%);
  }
  /* 모바일에서는 Canvas 크기 절약을 위해 스파크 입자 없이 라인만 표시 */
  .cube-electric-canvas {
    opacity: 0.7;
  }
}

/* ─ 소형 모바일: 480px 이하 */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(24px, 8vw, 32px);
  }
  .hero-bg {
    background-position: center 38%;
  }
  .hero {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }
}

/* === CAPABILITIES SECTION === */
.capabilities { position: relative; }
.capabilities-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.capabilities-header .headline-lg { margin-bottom: var(--space-4); }
.capabilities-header p {
  color: var(--color-outline);
  font-size: 16px; line-height: 24px;
}
.capabilities-underline {
  width: 48px; height: 3px;
  background: var(--color-primary);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
}

/* === METRICS SECTION === */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.metric-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur-2));
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}
.metric-card:hover {
  border-color: var(--color-neon-border);
  box-shadow: var(--shadow-neon);
}
.metric-value {
  font-family: var(--font-headline);
  font-size: 42px; font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.metric-label {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-outline);
}

@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* === CTA SECTION === */
.cta-section {
  position: relative; text-align: center;
  padding: var(--space-24) 0;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(143, 196, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .headline-lg { margin-bottom: var(--space-4); }
.cta-section p {
  color: var(--color-outline);
  max-width: 500px; margin: 0 auto var(--space-8);
}

/* === COMPANY PAGE HERO (Glass Container) === */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(143, 196, 255, 0.05) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(143, 196, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.page-hero-glass::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(143,196,255,0.2), transparent 40%, rgba(143,196,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* === VALUES SECTION === */
.values-section { position: relative; }
.value-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur-2));
  border: 1px solid rgba(143, 196, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: all var(--transition-base);
  position: relative;
}
.value-card:hover {
  border-color: rgba(143, 196, 255, 0.3);
  box-shadow: 0 0 24px rgba(143, 196, 255, 0.08);
  transform: translateY(-4px);
}
.value-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(143, 196, 255, 0.08);
  border: 1px solid rgba(143, 196, 255, 0.15);
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
  font-size: 20px;
}
.value-title {
  font-family: var(--font-headline);
  font-size: 18px; font-weight: 700;
  color: var(--color-pure-white);
  margin-bottom: var(--space-2);
}
.value-desc {
  color: rgba(226, 232, 240, 0.7);
  font-size: 13.5px; line-height: 20px;
  margin-bottom: var(--space-2);
}

/* === ARCHITECTURE SECTION === */
.arch-section { position: relative; }
.arch-visual {
  background: var(--color-surface-container);
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  position: relative; overflow: hidden;
}
.arch-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(143,196,255,0.03) 0%, transparent 60%);
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative; z-index: 1;
}
.arch-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-charcoal-line);
  border-radius: var(--radius-default);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}
.arch-node:hover {
  border-color: var(--color-neon-border);
  background: rgba(255, 255, 255, 0.06);
}
.arch-node-title {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.arch-node-value {
  font-family: var(--font-headline);
  font-size: 20px; font-weight: 600;
  color: var(--color-pure-white);
}

@media (max-width: 768px) {
  .arch-grid { grid-template-columns: 1fr; }
  .page-hero-glass { padding: var(--space-10) var(--space-6); }
}

/* === SOLUTIONS PAGE === */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.solution-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur-2));
  border: 1px solid rgba(143, 196, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  display: flex; flex-direction: column;
}
.solution-card:hover {
  border-color: rgba(143, 196, 255, 0.3);
  box-shadow: 0 0 30px rgba(143, 196, 255, 0.08);
  transform: translateY(-3px);
}
.solution-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-label);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-background);
  background: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  width: fit-content;
}
.solution-title {
  font-family: var(--font-headline);
  font-size: 22px; font-weight: 700;
  color: var(--color-pure-white);
  margin-bottom: var(--space-3);
}
.solution-desc {
  color: rgba(226, 232, 240, 0.7);
  font-size: 15px; line-height: 24px;
  flex: 1;
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* === SITEMAP PAGE === */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.sitemap-category {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(var(--blur-2));
  border: 1px solid rgba(143, 196, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.sitemap-cat-header {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-charcoal-line);
}
.sitemap-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}
.sitemap-cat-title {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-liquid-silver);
}
.sitemap-links {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.sitemap-links a {
  font-size: 14px; color: var(--color-outline);
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) 0;
  transition: all var(--transition-fast);
}
.sitemap-links a::before {
  content: '—';
  color: rgba(143, 196, 255, 0.4);
  font-size: 12px;
}
.sitemap-links a:hover { color: var(--color-primary); padding-left: var(--space-2); }

@media (max-width: 1024px) {
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* === REFACTORING UTILITY & COMPONENT STYLES === */
.page-hero-glass h1 {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.page-hero-glass p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.8);
}
.page-hero h1.headline-xl {
  font-size: 56px;
  line-height: 64px;
}
.page-hero p.body-lg {
  max-width: 600px;
  margin: var(--space-6) auto 0;
  color: rgba(226, 232, 240, 0.8);
}
.section-title-wrap h2 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.section-title-wrap p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.7);
}
.arch-visual.mt-10 {
  margin-top: var(--space-10);
}
.arch-node.span-all {
  grid-column: span 3;
  padding: var(--space-4);
}
.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}
.timeline-card-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-pure-white);
}
.timeline-card-date {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--color-primary);
}

.page-hero.align-left {
  text-align: left;
}
.page-hero.align-left h1 {
  font-size: 56px;
  font-style: italic;
}
.page-hero.align-left p {
  max-width: 500px;
  margin-top: var(--space-4);
  color: rgba(226, 232, 240, 0.7);
}
.sitemap-footer-group {
  margin-top: var(--space-8);
}
.sitemap-category.max-width-sm {
  max-width: 280px;
}
.footer.sitemap-footer {
  padding-top: var(--space-12);
}
.sitemap-footer .footer-brand-title {
  font-size: 28px;
  margin: 0;
}
.footer-copy-wrapper {
  text-align: center;
  margin-top: var(--space-6);
}

/* hero-actions spacing (page-hero context) */
.page-hero-glass .hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}
/* italic headline modifier */
.headline-lg.italic {
  font-style: italic;
}
/* brand logo accent color */
.logo-accent {
  color: var(--color-primary);
}
/* "New" badge label */
.badge-new {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-left: 8px;
}

/* === COMPANY BRAND STORY & OVERVIEW === */
.info-section {
  position: relative;
}
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

/* === TIMELINE LIST STYLE (Refactored) === */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: var(--space-6);
  text-align: left;
}
.timeline-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-year {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

/* === TEAM STYLE === */
.team-section {
  position: relative;
}
.team-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}
.team-card:hover {
  border-color: rgba(143, 196, 255, 0.2);
  transform: translateY(-2px);
}
.team-card h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.team-card p {
  font-size: 14px;
  line-height: 22px;
  color: rgba(226, 232, 240, 0.7);
}

/* === PAGE HERO TEXT CENTER UTIL === */
.page-hero .body-lg {
  color: rgba(226, 232, 240, 0.78);
}
.page-hero.text-center,
.page-hero [style*="text-align:center"] .headline-xl {
  text-align: center;
}

/* === BODY-MD TYPOGRAPHY === */
.body-md {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-liquid-silver);
}

/* === SECTION common header text-center === */
.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}
.section-header-center .headline-lg { margin-bottom: var(--space-4); }

/* === VALUES SECTION ROW FORCE HORIZONTAL === */
.value-cards-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--space-5) !important;
}

@media (max-width: 992px) {
  .value-cards-row {
    gap: var(--space-3) !important;
  }
  .value-card {
    padding: var(--space-6) var(--space-3) !important;
  }
  .value-title {
    font-size: 16px !important;
  }
  .value-desc {
    font-size: 12.5px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 768px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .value-cards-row {
    gap: 8px !important;
  }
  .value-card {
    padding: 12px 6px !important;
  }
  .value-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
  .value-icon svg {
  }
  .value-title {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }
  .value-desc {
    font-size: 10px !important;
    line-height: 14px !important;
  }
}
