/* ===================== */
/*      WEB FONTS        */
/* ===================== */

/* Pretendard - 한글 최적화 현대적 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* Fira Code - ASCII 아트용 고급 Monospace 폰트 (ligature 지원) */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap');

/* ===================== */
/*      THEME COLORS     */
/* ===================== */

:root {
  /* Modern Dark Theme Colors (from h-code-v7) */
  --bg-main: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --text-main: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #6b7280;

  /* EYUM Brand Colors - Electric Blue Core */
  --brand-primary: #4A8DFF;         /* 브랜드 메인 - Electric Blue */
  --brand-primary-hover: #3b7aeb;   /* 호버 - 진한 Electric Blue */
  --brand-secondary: #7CA8FF;       /* 보조 - 연한 Electric Blue */
  --brand-accent: #6B9FFF;          /* 악센트 - 중간 톤 */

  --accent-primary: #4A8DFF;        /* 주요 버튼 */
  --accent-primary-hover: #3b7aeb;  /* 버튼 호버 */
  --accent-secondary: #7CA8FF;      /* 보조 강조 */
  --accent-purple: #a960ee;         /* 보라색 - 그라데이션용 */
  --accent-cyan: #90e0ff;           /* 시안 - 그라데이션용 */
  --accent-emphasis: #f97316;       /* 중요 강조 - 주황색 (CTA) */
  --accent-danger: #ef4444;         /* 에러/경고 */

  --bg-input: #1f1f1f;
  --bg-hover: #2a2a2a;
  --border-subtle: #333333;
  --border-strong: #404040;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-button: 1rem;          /* Stripe 스타일 둥근 버튼 (16px) */

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --font-size-sm: 0.875rem;      /* 14px → 더 읽기 쉽게 */
  --font-size-base: 1rem;         /* 16px → 기본 크기 증가 */
  --font-size-lg: 1.125rem;       /* 18px */

  /* Header */
  --header-height: 4rem;

  /* Z-index */
  --z-fixed: 100;
  --z-modal: 1000;

  /* Glow Colors - 글로우 효과에 사용되는 색상 (투명도 포함) */
  --glow-purple: 147, 51, 234;        /* #9333ea */
  --glow-purple-light: 192, 132, 252; /* #c084fc */
  --glow-blue: 59, 130, 246;          /* #3b82f6 */
  --glow-blue-light: 96, 165, 250;    /* #60a5fa */
  --glow-cyan: 144, 224, 255;         /* #90e0ff */
  --glow-green: 34, 197, 94;          /* #22c55e */
  --glow-green-light: 74, 222, 128;   /* #4ade80 */
  --glow-orange: 251, 146, 60;        /* #fb923c */
  --glow-orange-light: 251, 191, 36;  /* #fbbf24 */
  --glow-emphasis: 249, 115, 22;      /* #f97316 */
  --glow-indigo: 129, 140, 248;       /* #818cf8 */
  --glow-emerald: 52, 211, 153;       /* #34d399 */

  /* Common alpha values for consistency */
  --alpha-subtle: 0.05;
  --alpha-light: 0.1;
  --alpha-medium: 0.2;
  --alpha-strong: 0.3;
  --alpha-prominent: 0.5;
}

/* Light Mode Theme - AI Startup Inspired */
[data-theme="light"] {
  /* Light Theme Colors - 약간 어두운 배경 (AI 스타트업 느낌) */
  --bg-main: #fafbfc;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #eef1f6;
  --text-main: #0f1419;
  --text-secondary: #57606a;
  --text-muted: #8c959f;

  /* EYUM Brand Colors - Light Mode (Dark와 동일한 Electric Blue) */
  --brand-primary: #4A8DFF;
  --brand-primary-hover: #3b7aeb;
  --brand-secondary: #7CA8FF;
  --brand-accent: #6B9FFF;

  --accent-primary: #4A8DFF;
  --accent-primary-hover: #3b7aeb;
  --accent-secondary: #7CA8FF;
  --accent-purple: #8b5cf6;
  --accent-cyan: #0891b2;
  --accent-emphasis: #ea580c;
  --accent-danger: #dc2626;

  --bg-input: #ffffff;
  --bg-hover: #f5f7fa;
  --border-subtle: #d0d7de;
  --border-strong: #afb8c1;

  /* 깊이감 있는 그림자 (Dark 모드와 균형) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

/* ===================== */
/*    BASE STYLES        */
/* ===================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--accent-emphasis);
  outline-offset: 2px;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===================== */
/*    LAYOUT             */
/* ===================== */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 8rem 0;  /* 6rem → 8rem (더 넉넉한 여백) */
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  position: relative;
}

.section__title.center {
  text-align: center;
}

.section__title-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin-top: 1rem;
  border-radius: var(--radius-sm);
}

.section__title.center .section__title-line {
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.section__subtitle.center {
  text-align: center;
}

/* ===================== */
/*    HEADER & NAV       */
/* ===================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(20, 20, 20, 0.90) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
}

.header.scroll-header {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg,
    rgba(10, 10, 10, 0.98) 0%,
    rgba(20, 20, 20, 0.95) 100%);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.nav__logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-pronunciation {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--text-main);
}

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

.nav__link.active-link {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.theme-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default: Dark mode (show sun icon) */
.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

/* Light mode (show moon icon) */
[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ===================== */
/*  SCROLL PROGRESS BAR  */
/* ===================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--accent-primary) 0%,
    var(--accent-purple) 50%,
    var(--accent-cyan) 100%);
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ===================== */
/*    HOME SECTION       */
/* ===================== */

.home {
  min-height: 100vh; /* fallback */
  min-height: 100dvh; /* 모바일 브라우저 주소창 고려 */
  display: flex;
  align-items: center;
  background: var(--bg-main);
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* 움직이는 그라데이션 배경 (다크 모드) */
.home::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(169, 96, 238, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(144, 224, 255, 0.2) 0%, transparent 50%);
  animation: gradientMove 20s ease infinite;
  pointer-events: none;
}

/* 라이트 모드: 밝은 그라데이션 */
[data-theme="light"] .home::before {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(169, 96, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(144, 224, 255, 0.06) 0%, transparent 50%);
}

@keyframes gradientMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(10%, -10%) scale(1.1);
  }
  66% {
    transform: translate(-10%, 10%) scale(0.9);
  }
}

.home__container {
  position: relative;
  z-index: 1;
}

.home__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.home__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.home__logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(74, 141, 255, 0.4);
  animation: logoFloat 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.home__logo-img:hover {
  transform: scale(1.1);
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.home__title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home__title-gradient {
  background: linear-gradient(135deg,
    var(--accent-primary) 0%,
    var(--accent-purple) 50%,
    var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

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

.typing-cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

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

.home__description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ===================== */
/*    BUTTONS            */
/* ===================== */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-button);  /* Stripe 스타일 둥근 버튼 */
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button__primary {
  /* CTA 버튼 - 주황색 강조 (가장 중요한 액션) */
  background: linear-gradient(135deg, var(--accent-emphasis) 0%, #ff8c42 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.button__primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.button__primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* 화살표 아이콘 움직임 */
.button svg {
  transition: transform 0.3s ease;
}

.button:hover svg {
  transform: translateX(4px);
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(8px);
  }
}

.button__primary:hover::before {
  left: 100%;
}

.button__primary:active {
  transform: translateY(0);
}

/* Section CTA */
.section-cta {
  margin-top: 3rem;
  text-align: center;
}

.section-cta .button {
  display: inline-flex;
}

/* ===================== */
/*  TRUST INDICATORS     */
/* ===================== */

.trust-section {
  padding: 3rem 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.trust-stats--three {
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.trust-number {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.trust-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===================== */
/*    ABOUT SECTION      */
/* ===================== */

.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
  animation: gradientMove 25s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.about > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .about {
  background: #f5f7fa;
}

[data-theme="light"] .about::before {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(147, 197, 253, 0.04) 0%, transparent 50%);
}

.about__container {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
}

.about__data {
  padding-right: 2rem;
}

.about__description {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.about__stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(96, 165, 250, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -1px 0 rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about__stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  opacity: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.about__stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

.about__stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg,
    var(--accent-primary) 0%,
    var(--accent-purple) 50%,
    var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.about__stat-unit {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-left: 0.25rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.about__stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.about__stat-text {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.about__status {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(96, 165, 250, 0.03) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
}

.about__status-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.about__status-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about__status-item:last-child {
  margin-bottom: 0;
}

.about__status-label {
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.about__status-item span:last-child {
  color: var(--text-secondary);
}

.about__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__image img {
  max-width: 400px;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.code-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.code-comparison__column {
  background: linear-gradient(135deg,
    rgba(20, 20, 25, 0.98) 0%,
    rgba(15, 15, 18, 1) 100%);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-comparison__column::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.3) 0%,
    rgba(96, 165, 250, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.code-comparison__column--fail::before {
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.3) 0%,
    rgba(220, 38, 38, 0.1) 100%);
}

.code-comparison__column--success::before {
  background: linear-gradient(135deg,
    rgba(34, 197, 94, 0.3) 0%,
    rgba(16, 185, 129, 0.1) 100%);
}

.code-comparison__column:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.code-comparison__column--fail:hover::before {
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.5) 0%,
    rgba(220, 38, 38, 0.2) 100%);
}

.code-comparison__column--success:hover::before {
  background: linear-gradient(135deg,
    rgba(34, 197, 94, 0.5) 0%,
    rgba(16, 185, 129, 0.2) 100%);
}

.code-comparison__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-comparison__icon {
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.code-comparison__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.code-tree {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #b8c5e0;
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  white-space: pre;
  /* 폰트 렌더링 최적화 (GPT-5 제안) */
  font-feature-settings: "tnum" 1, "kern" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 픽셀 정렬 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tree-dim {
  color: #6b7280;
  font-size: 0.85rem;
}

.tree-fail {
  color: #ef4444;
  font-weight: 600;
  display: block;
  margin-top: 1rem;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.tree-success {
  color: #10b981;
  font-weight: 600;
  display: block;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

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

.tree-highlight {
  color: #60a5fa;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.tree-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.2),
    rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graph-demo {
  /* 다크 모드: 중립적인 어두운 배경 */
  background: linear-gradient(135deg,
    rgba(31, 31, 31, 0.8) 0%,
    rgba(20, 20, 20, 0.9) 100%);
  border-radius: 16px;
  padding: 0;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}

/* 라이트 모드: 밝은 배경 */
[data-theme="light"] .graph-demo {
  background: linear-gradient(135deg,
    rgba(249, 250, 251, 0.95) 0%,
    rgba(243, 244, 246, 0.98) 100%);
}

.graph-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.3) 0%,
    rgba(168, 85, 247, 0.3) 50%,
    rgba(34, 197, 94, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 3s ease-in-out infinite;
}

/* 라이트 모드: 테두리 그라데이션 밝게 */
[data-theme="light"] .graph-demo::before {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.4) 0%,
    rgba(168, 85, 247, 0.4) 50%,
    rgba(34, 197, 94, 0.4) 100%);
}

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

.graph-demo__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.graph-demo__icon {
  font-size: 1.8rem;
  animation: rotate 4s linear infinite;
}

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

.graph-demo__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.dependency-graph {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 2;
  color: #b8c5e0;
  margin: 0;
  padding: 2rem;
  overflow-x: auto;
  white-space: pre;
  /* 폰트 렌더링 최적화 (GPT-5 제안) */
  font-feature-settings: "tnum" 1, "kern" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 픽셀 정렬 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.graph-node {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.graph-node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.graph-node:hover::after {
  opacity: 1;
}

.graph-node.api {
  background: linear-gradient(135deg,
    rgba(147, 51, 234, 0.3),
    rgba(168, 85, 247, 0.2));
  color: #e9d5ff;
  border: 1px solid rgba(147, 51, 234, 0.5);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.graph-node.api::after {
  background: radial-gradient(circle,
    rgba(147, 51, 234, 0.4) 0%,
    transparent 70%);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
}

.graph-node.main {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.3),
    rgba(96, 165, 250, 0.2));
  color: #dbeafe;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.graph-node.main::after {
  background: radial-gradient(circle,
    rgba(59, 130, 246, 0.4) 0%,
    transparent 70%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.graph-node.sub {
  background: linear-gradient(135deg,
    rgba(34, 197, 94, 0.25),
    rgba(74, 222, 128, 0.15));
  color: #d1fae5;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.graph-node.sub::after {
  background: radial-gradient(circle,
    rgba(34, 197, 94, 0.3) 0%,
    transparent 70%);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.graph-node.db {
  background: linear-gradient(135deg,
    rgba(251, 146, 60, 0.25),
    rgba(251, 191, 36, 0.15));
  color: #fef3c7;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}

.graph-node.db::after {
  background: radial-gradient(circle,
    rgba(251, 146, 60, 0.3) 0%,
    transparent 70%);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
}

/* 박스 및 화살표 스타일 */
.box-api {
  color: #c084fc;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

.box-main {
  color: #60a5fa;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.box-sub {
  color: #4ade80;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.box-db {
  color: #fb923c;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.4);
}

.arrow-main {
  color: #818cf8;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
  animation: pulseArrow 2s ease-in-out infinite;
}

.arrow-sub {
  color: #34d399;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulseArrow 2.5s ease-in-out infinite;
}

.arrow-db {
  color: #fbbf24;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  animation: pulseArrow 3s ease-in-out infinite;
}

.label-request {
  color: #a5b4fc;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.9;
}

@keyframes pulseArrow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.8);
  }
}

/* SVG Graph 스타일 */
.svg-graph-container {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 다크 모드: 중립적인 어두운 배경 */
  background: linear-gradient(135deg,
    rgba(31, 31, 31, 0.6) 0%,
    rgba(20, 20, 20, 0.4) 100%);
  border-radius: 16px;
  overflow-x: auto;
}

/* 라이트 모드: 밝은 중립 배경 */
[data-theme="light"] .svg-graph-container {
  background: linear-gradient(135deg,
    rgba(249, 250, 251, 0.95) 0%,
    rgba(243, 244, 246, 0.9) 100%);
}

.svg-graph {
  width: 100%;
  max-width: 700px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  /* 다이어그램 자체는 원래 색상 유지 */
  isolation: isolate;
}

/* 라이트 모드: 그림자 밝게 */
[data-theme="light"] .svg-graph {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

.svg-text {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.svg-node {
  transition: all 0.3s ease;
  cursor: pointer;
}

.svg-node:hover {
  /* brightness 제거 - 원래 색상 유지 */
  filter: url(#glow);
  opacity: 0.95;
}

.svg-arrow {
  stroke-dasharray: 4 2;
  animation: flowArrow 2s linear infinite;
}

.svg-arrow-head {
  animation: pulseArrowSVG 2s ease-in-out infinite;
}

@keyframes flowArrow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 12;
  }
}

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

/* ===================== */
/*  SERVICES SECTION     */
/* ===================== */

.services {
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(20, 184, 166, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 70%, rgba(45, 212, 191, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(94, 234, 212, 0.12) 0%, transparent 50%);
  animation: gradientMove 28s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.services > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .services {
  background: #fafbfc;
}

[data-theme="light"] .services::before {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 70%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(94, 234, 212, 0.04) 0%, transparent 50%);
}

.services__grid {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.service__card {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);  /* Stripe 스타일 유리 효과 */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);  /* 깊이감 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(96, 165, 250, 0.04) 100%);
}

.service__card:hover::before {
  transform: scaleX(1);
}

.service__icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(96, 165, 250, 0.1) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.service__icon svg {
  stroke: var(--accent-primary);
}

.service__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service__description {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===================== */
/*  RESEARCH FOCUS       */
/* ===================== */

.research-focus {
  background: var(--bg-secondary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.research-focus::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(96, 165, 250, 0.10) 0%, transparent 50%);
  animation: gradientMove 25s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.research-focus > * {
  position: relative;
  z-index: 1;
}

.research-focus__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.research-focus__card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.research-focus__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  border-radius: 16px;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.research-focus__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.research-focus__description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

[data-theme="light"] .research-focus {
  background: #f5f5f7;
}

[data-theme="light"] .research-focus__card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .research-focus {
    padding: 3rem 0;
  }

  .research-focus__card {
    padding: 2rem 1.5rem;
  }

  .research-focus__title {
    font-size: 1.25rem;
  }

  .research-focus__description {
    font-size: 0.9rem;
  }
}

/* ===================== */
/*  WHY CHOOSE SECTION   */
/* ===================== */

.why-choose {
  background: var(--bg-main);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 45% 25%, rgba(249, 115, 22, 0.17) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 75%, rgba(251, 146, 60, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(253, 186, 116, 0.11) 0%, transparent 50%);
  animation: gradientMove 29s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.why-choose > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .why-choose {
  background: #fafbfc;
}

[data-theme="light"] .why-choose::before {
  background:
    radial-gradient(ellipse at 45% 25%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 75%, rgba(251, 146, 60, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(253, 186, 116, 0.03) 0%, transparent 50%);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
  background: var(--bg-hover);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
  border-radius: 50%;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.why-item:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
}

.why-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.why-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
}

.why-stat {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: var(--font-size-sm);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tablet */

/* Mobile */

/* ===================== */
/*  FEATURES SECTION     */
/* ===================== */

.features {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(147, 51, 234, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(192, 132, 252, 0.12) 0%, transparent 50%);
  animation: gradientMove 30s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.features > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .features {
  background: #f5f7fa;
}

[data-theme="light"] .features::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(192, 132, 252, 0.04) 0%, transparent 50%);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.feature__item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(8px);  /* Stripe 스타일 유리 효과 */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);  /* 깊이감 */
  transition: all 0.3s ease;
}

.feature__item:hover,
.feature__item.in-view {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.feature__item.in-view {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  }
  50% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.18);
  }
}

.feature__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(96, 165, 250, 0.05) 100%);
  border-radius: var(--radius-lg);
  color: var(--accent-primary);
}

.feature__icon svg {
  stroke: var(--accent-primary);
}

.feature__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.feature__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================== */
/*   TECH SECTION        */
/* ===================== */

.tech {
  background: var(--bg-main);
}

.tech__grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.tech__item {
  padding: 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.tech__item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(96, 165, 250, 0.04) 100%);
}

.tech__item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.tech__item p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ===================== */
/*  CONTACT SECTION      */
/* ===================== */

.contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 65%, rgba(251, 113, 133, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(249, 168, 212, 0.1) 0%, transparent 50%);
  animation: gradientMove 27s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.contact > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .contact {
  background: #f5f7fa;
}

[data-theme="light"] .contact::before {
  background:
    radial-gradient(ellipse at 25% 35%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 65%, rgba(251, 113, 133, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(249, 168, 212, 0.03) 0%, transparent 50%);
}

.contact__content {
  max-width: 700px;
  margin: 0 auto;
}

.contact__description {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.contact__info-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(10px);
}

.contact__info-item svg {
  flex-shrink: 0;
  stroke: var(--accent-primary);
}

.contact__info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.contact__info-item p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.contact__form {
  display: grid;
  gap: 1.5rem;
}

.contact__form-group {
  width: 100%;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: var(--font-size-base);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 0 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact__textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===================== */
/*      FOOTER           */
/* ===================== */

.footer {
  background: var(--bg-main);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer__content {
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer__logo img {
  width: 40px;
  height: 40px;
}

.footer__description {
  color: var(--text-secondary);
  line-height: 1.75;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  transition: width 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer__links a:hover::after {
  width: 100%;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: transparent;
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.footer__social-link svg {
  fill: var(--text-secondary);
}

.footer__social-link:hover svg {
  fill: white;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer__copy {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===================== */
/*   SCROLL TO TOP       */
/* ===================== */

.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: var(--z-fixed);
  transition: all 0.4s ease;
}

.scrollup:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.scrollup svg {
  stroke: white;
}

.show-scroll {
  bottom: 2rem;
}

/* ===================== */
/*   RESPONSIVE DESIGN   */
/*   (공통 요소만 - 헤더/푸터/컨테이너)   */
/*   페이지별 컴포넌트는 각 페이지 CSS에서 관리   */
/* ===================== */

/* Medium Devices */

/* Small Devices */

/* ===================== */
/*  ASCII ART 고도화     */
/* ===================== */

/* ASCII 아트 컨테이너 - Fira Code 폰트 적용 */
.code-tree {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-weight: 500;
  font-feature-settings: "liga" 1, "calt" 1; /* ligature 활성화 */
  position: relative;
  overflow: hidden;
}

/* 네온 Glow 효과 강화 */
.code-comparison__column--fail .code-tree {
  text-shadow:
    0 0 5px rgba(239, 68, 68, 0.3),
    0 0 10px rgba(239, 68, 68, 0.2),
    0 0 15px rgba(239, 68, 68, 0.1);
  box-shadow:
    inset 0 0 20px rgba(239, 68, 68, 0.1),
    0 0 30px rgba(239, 68, 68, 0.15);
}

.code-comparison__column--success .code-tree {
  text-shadow:
    0 0 5px rgba(34, 197, 94, 0.3),
    0 0 10px rgba(34, 197, 94, 0.2),
    0 0 15px rgba(34, 197, 94, 0.1);
  box-shadow:
    inset 0 0 20px rgba(34, 197, 94, 0.1),
    0 0 30px rgba(34, 197, 94, 0.15);
}

/* 타이핑 애니메이션 - 한 줄씩 나타남 */
@keyframes typingReveal {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* 각 라인에 순차적 애니메이션 적용 */
.code-tree.animate-typing {
  animation: none; /* 컨테이너 자체는 애니메이션 없음 */
}

.code-tree.animate-typing > * {
  opacity: 0;
  animation: typingReveal 0.3s ease-out forwards;
}

/* 라인별 딜레이 (nth-child 사용) */
.code-tree.animate-typing > *:nth-child(1) { animation-delay: 0.1s; }
.code-tree.animate-typing > *:nth-child(2) { animation-delay: 0.2s; }
.code-tree.animate-typing > *:nth-child(3) { animation-delay: 0.3s; }
.code-tree.animate-typing > *:nth-child(4) { animation-delay: 0.4s; }
.code-tree.animate-typing > *:nth-child(5) { animation-delay: 0.5s; }
.code-tree.animate-typing > *:nth-child(6) { animation-delay: 0.6s; }
.code-tree.animate-typing > *:nth-child(7) { animation-delay: 0.7s; }
.code-tree.animate-typing > *:nth-child(8) { animation-delay: 0.8s; }
.code-tree.animate-typing > *:nth-child(9) { animation-delay: 0.9s; }
.code-tree.animate-typing > *:nth-child(10) { animation-delay: 1.0s; }
.code-tree.animate-typing > *:nth-child(11) { animation-delay: 1.1s; }
.code-tree.animate-typing > *:nth-child(12) { animation-delay: 1.2s; }
.code-tree.animate-typing > *:nth-child(13) { animation-delay: 1.3s; }
.code-tree.animate-typing > *:nth-child(14) { animation-delay: 1.4s; }
.code-tree.animate-typing > *:nth-child(15) { animation-delay: 1.5s; }

/* 그라데이션 텍스트 (박스 테두리) */
.ascii-box-border {
  background: linear-gradient(90deg, #3b82f6, #a960ee, #90e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* 성공/실패 메시지 Pulse 애니메이션 */
@keyframes messagePulse {
  0%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px currentColor,
      0 0 10px currentColor,
      0 0 15px currentColor;
  }
  50% {
    opacity: 0.8;
    text-shadow:
      0 0 10px currentColor,
      0 0 20px currentColor,
      0 0 30px currentColor;
  }
}

.tree-fail, .tree-success {
  animation: messagePulse 2s ease-in-out infinite;
  font-weight: 600;
}

/* 파일 아이콘 그라데이션 */
.tree-highlight {
  background: linear-gradient(90deg, #22c55e, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* 배지 네온 효과 */
.tree-badge {
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8), 0 0 25px rgba(59, 130, 246, 0.4);
  }
}

/* 커서 깜빡임 효과 (타이핑 끝나면 보이는 커서) */
.typing-cursor-ascii {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  background: #3b82f6;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* 모바일 대응 - 애니메이션 간소화 */

/* ===================== */
/*  SVG COMPARISON       */
/* ===================== */

.svg-comparison-container {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  /* 다크 모드: 중립적인 어두운 배경 */
  background: linear-gradient(135deg,
    rgba(31, 31, 31, 0.6) 0%,
    rgba(20, 20, 20, 0.4) 100%);
}

/* 라이트 모드: 밝은 중립 배경 */
[data-theme="light"] .svg-comparison-container {
  background: linear-gradient(135deg,
    rgba(249, 250, 251, 0.95) 0%,
    rgba(243, 244, 246, 0.9) 100%);
}

.svg-comparison {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  /* 다이어그램 자체는 원래 색상 유지 */
  isolation: isolate;
}

/* 라이트 모드: 그림자 밝게 */
[data-theme="light"] .svg-comparison {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

/* SVG 텍스트 폰트 통일 */
.svg-comparison text {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

.svg-graph text {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 20px;
}

/* SVG 요소 애니메이션 */
.svg-box {
  animation: fadeInScale 0.5s ease-out;
}

.svg-file-item, .svg-file-label, .svg-header {
  animation: fadeInSlide 0.3s ease-out backwards;
}

.svg-file-item:nth-child(5) { animation-delay: 0.1s; }
.svg-file-item:nth-child(6) { animation-delay: 0.15s; }
.svg-file-item:nth-child(7) { animation-delay: 0.2s; }
.svg-file-item:nth-child(8) { animation-delay: 0.25s; }
.svg-file-item:nth-child(9) { animation-delay: 0.3s; }
.svg-file-item:nth-child(10) { animation-delay: 0.35s; }
.svg-file-item:nth-child(11) { animation-delay: 0.4s; }

.svg-error-msg, .svg-success-msg {
  animation: pulseSvgMessage 2s ease-in-out infinite;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Hover 효과 */
.svg-comparison:hover .svg-box {
  /* brightness 제거 - 원래 색상 유지 */
  opacity: 0.98;
}

/* 반응형 */

/* =====================
   PRICING SECTION
   ===================== */

.pricing {
  background: var(--bg-main);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(34, 197, 94, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 55%, rgba(74, 222, 128, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 30%, rgba(134, 239, 172, 0.11) 0%, transparent 50%);
  animation: gradientMove 26s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.pricing > * {
  position: relative;
  z-index: 1;
}

/* 라이트 모드: 밝은 배경 보장 */
[data-theme="light"] .pricing {
  background: #fafbfc;
}

[data-theme="light"] .pricing::before {
  background:
    radial-gradient(ellipse at 35% 45%, rgba(34, 197, 94, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 55%, rgba(74, 222, 128, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 30%, rgba(134, 239, 172, 0.03) 0%, transparent 50%);
}

.pricing__container {
  max-width: 1200px;
}

.section__description {
  text-align: center;
  max-width: 600px;
  margin: 1rem auto 3rem;
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

.section__description.center {
  text-align: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

/* Pricing Card */
.pricing__card {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pricing__card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

/* Featured Card (Pro Plan) */
.pricing__card--featured {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.05),
    rgba(96, 165, 250, 0.05)
  );
  border-color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.pricing__card--featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.3);
}

/* Badge */
.pricing__badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Header */
.pricing__header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.pricing__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing__currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.pricing__amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.pricing__period {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Features List */
.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-size: var(--font-size-md);
}

.pricing__feature svg {
  flex-shrink: 0;
  color: var(--accent-primary);
  margin-top: 0.15rem;
}

.pricing__feature span {
  line-height: 1.5;
}

/* CTA Button */
.pricing__cta {
  width: 100%;
  text-align: center;
  padding: 0.875rem 2rem;
  margin-top: auto;
}

/* Responsive */

/* =====================
   TESTIMONIALS SECTION
   ===================== */

.testimonials {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.testimonials__container {
  max-width: 1400px;
}

.testimonials-swiper {
  margin-top: 3rem;
  padding: 0 0 4rem 0;
}

/* Testimonial Card */
.testimonial__card {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial__card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

/* Quote Icon */
.testimonial__quote {
  color: var(--accent-primary);
  opacity: 0.3;
}

.testimonial__quote svg {
  width: 40px;
  height: 40px;
}

/* Testimonial Text */
.testimonial__text {
  font-size: var(--font-size-md);
  line-height: 1.8;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Author Section */
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1),
    rgba(96, 165, 250, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.testimonial__avatar svg {
  width: 28px;
  height: 28px;
}

.testimonial__info {
  flex-grow: 1;
}

.testimonial__name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.testimonial__role {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Swiper Navigation Buttons */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-prev:after,
.testimonials-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

.testimonials-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Swiper Pagination */
.testimonials-swiper .swiper-pagination {
  bottom: 0;
}

.testimonials-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border-subtle);
  opacity: 1;
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--accent-primary);
  width: 30px;
  border-radius: 5px;
}

/* Responsive */

/* =====================
   DEMO VIDEO SECTION
   ===================== */

.demo-video {
  background: var(--bg-main);
  padding: 5rem 0;
}

.demo-video__container {
  max-width: 1000px;
}

.demo-video__wrapper {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Placeholder */
.demo-video__placeholder {
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.05),
    rgba(96, 165, 250, 0.05)
  );
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 400px;
  justify-content: center;
}

.demo-video__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1),
    rgba(96, 165, 250, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

.demo-video__icon svg {
  width: 60px;
  height: 60px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
}

.demo-video__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.demo-video__text {
  font-size: var(--font-size-md);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.demo-video__placeholder .button {
  margin-top: 1rem;
}

/* Video Player (when ready) */
.demo-video__player {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Responsive */

/* ===================== */
/*  LIGHT MODE OVERRIDES */
/* ===================== */

/* Light Mode Card Enhancements - AI Startup Feel */
[data-theme="light"] .service__card,
[data-theme="light"] .feature__item,
[data-theme="light"] .why-item {
  background: linear-gradient(135deg,
    rgba(74, 141, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(74, 141, 255, 0.12);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .service__card:hover,
[data-theme="light"] .feature__item:hover,
[data-theme="light"] .why-item:hover {
  border-color: rgba(74, 141, 255, 0.3);
  box-shadow: 0 12px 28px -4px rgba(74, 141, 255, 0.18),
              0 8px 16px -4px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg,
    rgba(74, 141, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.98) 100%);
}

[data-theme="light"] .trust-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 141, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

/* ===================== */
/* TYPOGRAPHY HIERARCHY  */
/* ===================== */

/* Section Titles - Extrabold */
.section__title {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Card Titles - Semibold */
.service__title,
.feature__title,
.why-title,
.demo-video__title {
  font-weight: 600 !important;
}

/* ===================== */
/* SECTION SPACING       */
/* ===================== */

/* Desktop: 96px (6rem), Mobile: 64px (4rem) */
.section {
  padding: 6rem 0 !important;
}

/* ===================== */
/* LOGO ENHANCEMENTS     */
/* ===================== */

.logo-text {
  letter-spacing: -0.04em !important;
  font-weight: 900 !important;
}

.logo-pronunciation {
  display: none !important;
}

.footer-pronunciation {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
  opacity: 0.7;
}

/* Footer spacing improvement */
.footer {
  padding: 5rem 0 2rem !important;
}

.footer__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Footer link improvements */
.footer__link {
  font-weight: 500 !important;
  transition: all 0.3s ease;
}

.footer__link:hover {
  color: var(--brand-primary) !important;
  transform: translateX(4px);
}

.footer__title {
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

/* ===================== */
/* ICON SYSTEM UNIFIED   */
/* ===================== */

/* All SVG icons: Lucide style (Stroke 2px, Outlined) */
svg {
  stroke-width: 2 !important;
}

/* Icon colors consistency */
.service__icon svg,
.feature__icon svg,
.why-icon svg {
  color: var(--brand-primary);
  stroke: currentColor;
}

.contact__info-item svg {
  color: var(--brand-primary);
  stroke: currentColor;
}

/* Social icons in footer */
.footer__social-link svg {
  stroke-width: 2 !important;
  transition: all 0.3s ease;
}

.footer__social-link:hover svg {
  color: var(--brand-primary) !important;
  transform: scale(1.1);
}

/* ===================== */
/* FORM UI IMPROVEMENTS  */
/* ===================== */

.contact__input,
.contact__textarea {
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(74, 141, 255, 0.1) !important;
  outline: none !important;
}

.contact__form-group {
  margin-bottom: 1.5rem !important;
}

/* Light mode form adjustments */
[data-theme="light"] .contact__input,
[data-theme="light"] .contact__textarea {
  background: var(--bg-main);
  border-color: var(--border-subtle);
}

[data-theme="light"] .contact__input:focus,
[data-theme="light"] .contact__textarea:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
}

/* ===================== */
/* MOBILE OPTIMIZATION   */
/* Galaxy Fold 접힘 모드 전용 */
/* JS에서 .narrow 클래스 추가 시 적용 */
/* 조건: DPI > 2 + 비율 < 0.5 + viewport > 500px */
/* ===================== */

/* 모바일 좁은 화면: 전체 페이지 오버플로우 방지 */
.narrow body {
  overflow-x: hidden;
}

/* 모바일 좁은 화면: 기본 컨테이너 (screen.width 기준) */
.narrow .container {
  width: 100%;
  max-width: 100%;
  padding-left: calc(var(--screen-width) * 0.03); /* screen.width의 3% */
  padding-right: calc(var(--screen-width) * 0.03);
}

.narrow .section {
  padding: calc(var(--screen-width) * 0.06) 0; /* screen.width의 6% */
  width: 100%;
  max-width: 100%;
}

.narrow .grid {
  gap: calc(var(--screen-width) * 0.025); /* screen.width의 2.5% */
}

/* 모바일 좁은 화면: Hero 섹션 */
.narrow .home {
  padding-top: calc(var(--header-height) + calc(var(--screen-width) * 0.03));
  min-height: auto;
  width: 100%;
  max-width: 100%;
}

.narrow .home__content {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.narrow .home__logo {
  margin-bottom: calc(var(--screen-width) * 0.03);
}

.narrow .home__logo-img {
  width: calc(var(--screen-width) * 0.19); /* screen.width의 19% */
  height: calc(var(--screen-width) * 0.19);
}

.narrow .home__title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.narrow .home__title-gradient {
  font-size: 1.25rem;
  display: block;
}

.narrow .home__description {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* 폴드 접힘: 버튼 */
.narrow .button {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

/* 폴드 접힘: 섹션 제목 */
.narrow .section__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.narrow .section__description {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* 모바일 좁은 화면: 서비스/제품 카드 */
.narrow .services__grid {
  gap: calc(var(--screen-width) * 0.025);
}

.narrow .service__card {
  padding: calc(var(--screen-width) * 0.04);
  margin: 0;
}

.narrow .service__header {
  gap: calc(var(--screen-width) * 0.02);
  margin-bottom: calc(var(--screen-width) * 0.02);
}

.narrow .service__icon svg {
  width: calc(var(--screen-width) * 0.1); /* screen.width의 10% */
  height: calc(var(--screen-width) * 0.1);
}

.narrow .service__title {
  font-size: 1rem;
}

.narrow .service__description {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* 모바일 좁은 화면: Why Choose 섹션 */
.narrow .why-grid {
  gap: calc(var(--screen-width) * 0.03);
}

.narrow .why-item {
  padding: calc(var(--screen-width) * 0.04);
}

.narrow .why-icon svg {
  width: calc(var(--screen-width) * 0.125); /* screen.width의 12.5% */
  height: calc(var(--screen-width) * 0.125);
}

.narrow .why-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.narrow .why-description {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* 모바일 좁은 화면: Contact 섹션 */
.narrow .contact__content {
  padding: 0;
}

.narrow .contact__description {
  font-size: 0.875rem;
}

.narrow .contact__info-item {
  padding: calc(var(--screen-width) * 0.03);
  gap: calc(var(--screen-width) * 0.025);
}

.narrow .contact__info-item h4 {
  font-size: 0.875rem;
}

.narrow .contact__info-item p {
  font-size: 0.75rem;
}

.narrow .contact__input,
.narrow .contact__textarea {
  padding: calc(var(--screen-width) * 0.03) !important;
  font-size: 0.875rem !important;
}

/* 모바일 좁은 화면: Footer */
.narrow .footer {
  padding: calc(var(--screen-width) * 0.06) 0 calc(var(--screen-width) * 0.03);
}

.narrow .footer__content {
  gap: calc(var(--screen-width) * 0.05);
}

.narrow .footer__title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.narrow .footer__links li {
  margin-bottom: 0.5rem;
}

.narrow .footer__links a {
  font-size: 0.75rem;
}

.narrow .footer__description {
  font-size: 0.75rem;
}

/* 폴드 접힘: 헤더/네비게이션 */
.narrow .header {
  padding: 0 calc(var(--screen-width) * 0.03);
  width: 100%;
  max-width: 100%;
}

.narrow .nav__logo img {
  width: 28px;
  height: 28px;
}

.narrow .nav__logo .logo-text {
  font-size: 1rem;
}

/* ===================== */
/*   FOLD FORCED MODE    */
/* ===================== */
/* 삼성 브라우저가 viewport를 강제 확대할 때 보정 */
/* screen.width=320, CSS viewport=1089 → 3.4배 축소됨 */
/* zoom으로 확대하여 상쇄 */

.fold-forced body {
  zoom: var(--fold-zoom-ratio, 1);
  width: 100%;
  overflow-x: hidden;
}

/* 폴드 접힘: 헤더 2줄 레이아웃 */
.fold-forced .nav {
  flex-wrap: wrap;
  height: auto;
  padding: 0.5rem 0;
  gap: 0.25rem;
}

.fold-forced .nav__logo {
  width: 100%;
  justify-content: center;
}

.fold-forced .nav__menu {
  width: 100%;
  order: 3;
}

.fold-forced .nav__list {
  width: 100%;
  justify-content: center;
  gap: 1.5rem;
}

.fold-forced .nav__actions {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
}

.fold-forced .nav__link {
  font-size: 0.875rem;
}

/* 폴드 접힘: 히어로 높이 조정 (zoom 보정) */
.fold-forced .home {
  min-height: calc(100dvh / var(--fold-zoom-ratio, 1));
  height: calc(100dvh / var(--fold-zoom-ratio, 1));
}

/* 폴드 접힘: 텍스트 줄바꿈 최적화 */
.fold-forced .home__title {
  font-size: 1.75rem;
  word-break: keep-all;
}

.fold-forced .home__title-gradient {
  font-size: 1.25rem;
}

.fold-forced .home__description {
  font-size: 0.875rem;
  word-break: keep-all;
}

.fold-forced .section__title {
  font-size: 1.5rem;
  word-break: keep-all;
}

.fold-forced .section__description {
  font-size: 0.875rem;
  word-break: keep-all;
}

.fold-forced .service__title {
  font-size: 1rem;
}

.fold-forced .service__description {
  font-size: 0.8rem;
  word-break: keep-all;
}

