/* ════════════════════════════════════════════════
   002 ENTERTAINMENT — DESIGN SYSTEM
   ════════════════════════════════════════════════ */

:root {
  /* ── Brand (CMS-aligned) ── */
  --primary:         #111111;
  --accent:          #D43333;
  --accent-hover:    #B52B2B;
  --accent-soft:     #E85959;

  /* ── Surfaces (dark) ── */
  --bg:              #0A0A0C;
  --surface:         #131316;
  --surface-2:       #1A1A1E;
  --surface-3:       #232327;

  /* ── Mood gradient (background only) ── */
  --bg-gradient:     linear-gradient(145deg, #111111 0%, #1C0808 45%, #D43333 100%);

  /* ── Text on dark ── */
  --text-main:       #F5F5F7;
  --text-sub:        #A0A0A8;
  --text-muted:      #6B6B72;

  /* ── CMS preview (light context) ── */
  --cms-text-sub:    #666666;
  --cms-text-muted:  #999999;
  --cms-border:      #E0E0E0;

  /* ── Borders / glass ── */
  --border:          rgba(255, 255, 255, 0.07);
  --border-subtle:   rgba(255, 255, 255, 0.04);
  --border-accent:   rgba(212, 51, 51, 0.22);
  --glass-bg:        rgba(255, 255, 255, 0.03);
  --glass-border:    rgba(255, 255, 255, 0.08);

  /* ── Accent helpers ── */
  --accent-10:       rgba(212, 51, 51, 0.10);
  --accent-15:       rgba(212, 51, 51, 0.15);
  --accent-20:       rgba(212, 51, 51, 0.20);
  --accent-30:       rgba(212, 51, 51, 0.30);

  /* Typography */
  --font-display:  'Space Grotesk', 'Pretendard Variable', sans-serif;
  --font-body:     'Pretendard Variable', 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1200px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --dur-fast:   200ms;
  --dur-med:    400ms;
  --dur-slow:   700ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Subtle global mood gradient — fixed, behind content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-gradient);
  opacity: 0.18;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Container ── */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Section ── */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.delay-1 { transition-delay: 120ms; }
.reveal.delay-2 { transition-delay: 240ms; }
.reveal.delay-3 { transition-delay: 360ms; }
.reveal.delay-4 { transition-delay: 480ms; }
.reveal.delay-5 { transition-delay: 600ms; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[class*="delay"],
  [class*="animate"], .marquee-track, .marquee-track-2,
  .diagram-path, .flow-dot, .ham-line,
  .hero-orb, .hero-glow, .hero-spotlight {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
  .hero-spotlight { display: none !important; }
}

/* headless / static 모드: .is-visible 여부와 무관하게 즉시 표시 */
body.static-mode .reveal,
body.static-mode .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 560px;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px 26px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
  }
}
.btn-primary:active { background: var(--accent-hover); transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--glass-bg);
    color: var(--text-main);
    border-color: var(--border-accent);
  }
}
.btn-ghost:active {
  background: var(--glass-bg);
  color: var(--text-main);
  border-color: var(--border-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
@media (hover: hover) {
  .btn-outline:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
  }
}
.btn-outline:active {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-xl { font-size: 16px; padding: 16px 36px; }
.btn-sm { font-size: 14px; padding: 10px 22px; }
.btn-lg { font-size: 16px; padding: 14px 32px; }
.w-full { width: 100%; justify-content: center; }

.glow-btn {
  box-shadow: 0 0 0 0 rgba(212, 51, 51, 0);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}
@media (hover: hover) {
  .glow-btn:hover {
    box-shadow: 0 0 32px 0 rgba(212, 51, 51, 0.45),
                0 0 64px 0 rgba(212, 51, 51, 0.2);
    transform: translateY(-3px);
  }
}

.btn-arrow {
  transition: transform var(--dur-fast) var(--ease-out);
  font-style: normal;
}
@media (hover: hover) {
  .btn:hover .btn-arrow { transform: translateX(4px); }
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding-inline: clamp(20px, 4vw, 48px);
  max-width: var(--container);
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-sub);
}
.brand-logo {
  display: block;
  height: 18px;
  width: auto;
  max-width: 100%;
}
.brand-logo--footer {
  height: 22px;
}
@media (max-width: 560px) {
  .brand-logo { height: 14px; }
  .brand-logo--footer { height: 18px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--text-main); background: var(--glass-bg); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
@media (hover: hover) {
  .lang-toggle:hover { border-color: var(--border-accent); background: var(--accent-10); }
}
.lang-opt { color: var(--text-muted); transition: color var(--dur-fast); }
.lang-opt.active { color: var(--accent); }
.lang-sep { color: var(--text-muted); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color var(--dur-fast);
}
@media (hover: hover) {
  .hamburger:hover { border-color: var(--border-accent); }
}
.ham-line {
  display: block;
  height: 1.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-med) var(--ease-out),
              width var(--dur-med) var(--ease-out);
  transform-origin: center;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-med) var(--ease-out),
              opacity var(--dur-med) var(--ease-out),
              padding var(--dur-med) var(--ease-out);
}
.mobile-menu.open {
  max-height: 480px;
  opacity: 1;
  padding: 16px clamp(20px, 4vw, 48px) 24px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 12px 16px;
  border-radius: 10px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.mobile-nav a:active { color: var(--text-main); background: var(--glass-bg); }
@media (hover: hover) {
  .mobile-nav a:hover { color: var(--text-main); background: var(--glass-bg); }
}

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero-section {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(96px, 14vw, 120px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 51, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 51, 51, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 700px;
  height: 500px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212, 51, 51, 0.22) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-2 {
  width: 460px;
  height: 460px;
  bottom: -60px;
  right: -120px;
  background: radial-gradient(ellipse, rgba(181, 43, 43, 0.18) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite 2s;
}

/* ── Ambient orbs (continuous drift, depth) ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(60px);
  will-change: transform;
}
.hero-orb-a {
  width: 320px;
  height: 320px;
  top: 12%;
  left: 14%;
  background: radial-gradient(circle, rgba(255, 90, 90, 0.55) 0%, rgba(212, 51, 51, 0.18) 45%, transparent 75%);
  animation: orbDriftA 18s ease-in-out infinite;
}
.hero-orb-b {
  width: 260px;
  height: 260px;
  top: 56%;
  left: 72%;
  background: radial-gradient(circle, rgba(232, 89, 89, 0.50) 0%, rgba(181, 43, 43, 0.18) 45%, transparent 75%);
  animation: orbDriftB 22s ease-in-out infinite 1.5s;
}
.hero-orb-c {
  width: 200px;
  height: 200px;
  top: 72%;
  left: 28%;
  background: radial-gradient(circle, rgba(212, 51, 51, 0.55) 0%, rgba(181, 43, 43, 0.18) 50%, transparent 80%);
  animation: orbDriftC 26s ease-in-out infinite 3s;
}
@keyframes orbDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  33%      { transform: translate3d(140px, 60px, 0) scale(1.1); opacity: 1; }
  66%      { transform: translate3d(60px, -90px, 0) scale(0.95); opacity: 0.75; }
}
@keyframes orbDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate3d(-130px, -80px, 0) scale(1.15); opacity: 1; }
}
@keyframes orbDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  33%      { transform: translate3d(90px, -60px, 0) scale(1.08); opacity: 1; }
  66%      { transform: translate3d(-80px, 80px, 0) scale(0.92); opacity: 0.7; }
}

/* ── Cursor spotlight (vivid, sharp) ── */
.hero-spotlight {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 100, 100, 0.55) 0%,
    rgba(232, 89, 89, 0.32) 22%,
    rgba(212, 51, 51, 0.14) 45%,
    transparent 70%);
  filter: blur(24px);
  opacity: 0;
  transform: translate3d(calc(var(--mx, 50vw) - 280px), calc(var(--my, 50vh) - 280px), 0);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s var(--ease-out);
  will-change: transform, opacity;
}
.hero-section:hover .hero-spotlight,
.hero-spotlight.is-active { opacity: 1; }

/* No-hover devices: hide spotlight, keep ambient orbs */
@media (hover: none) {
  .hero-spotlight { display: none; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-glow-2 { animation: glowPulse2 8s ease-in-out infinite 2s; }
@keyframes glowPulse2 {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--accent-10);
  margin-bottom: 28px;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hl-line { display: block; }
.hl-line.accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 44px;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.4;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.6); opacity: 0.8; }
}

/* ══════════════════════════════════════
   VALUES SECTION
══════════════════════════════════════ */
.values-section { background: var(--surface); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.values-card {
  padding: 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--glass-bg);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .values-card:hover { transform: translateY(-4px); }
}

.values-before { border-color: rgba(255,255,255,0.06); }
.values-before::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
}

.values-after {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(212,51,51,0.06) 0%, rgba(10,10,12,0.4) 60%);
}
.values-after::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.values-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.values-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 100px;
}
.before-tag {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.after-tag {
  background: var(--accent-15);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.values-icon {
  font-size: 22px;
  font-weight: 700;
}
.before-icon { color: var(--text-muted); }
.after-icon { color: var(--accent); }

.values-list { display: flex; flex-direction: column; gap: 14px; }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.values-before .values-list li { color: var(--text-muted); }
.values-before .values-list li::before {
  content: '—';
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 1px;
}
.values-after .values-list li { color: var(--text-main); }
.values-after .values-list li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

/* ══════════════════════════════════════
   DIFFERENTIATORS
══════════════════════════════════════ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-card {
  padding: 40px 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .diff-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(212, 51, 51, 0.08),
                0 0 0 1px var(--border-accent);
  }
  .diff-card:hover::before { opacity: 1; }
}

.diff-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-10);
  border: 1px solid var(--border-accent);
  margin-bottom: 24px;
}
.diff-icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diff-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.diff-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
}

.diff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.diff-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
}

/* ══════════════════════════════════════
   DIAGRAM SECTION
══════════════════════════════════════ */
.diagram-section { background: var(--surface); }

.diagram-wrapper {
  display: flex;
  justify-content: center;
}

.diagram-canvas {
  width: 100%;
  max-width: 800px;
  position: relative;
}

/* SVG diagram built by JS */
.diagram-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.diagram-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.2s var(--ease-out) forwards;
  filter: drop-shadow(0 0 4px rgba(212,51,51,0.5));
}
.diagram-path.delay-1 { animation-delay: 0.2s; }
.diagram-path.delay-2 { animation-delay: 0.5s; }
.diagram-path.delay-3 { animation-delay: 0.8s; }
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.flow-dot {
  fill: var(--accent);
  r: 5;
  filter: drop-shadow(0 0 6px rgba(212,51,51,0.8));
  opacity: 0;
}
.flow-dot.animating {
  animation: travelDot 2.4s ease-in-out infinite;
}
@keyframes travelDot {
  0% { opacity: 0; offset-distance: 0%; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

.diagram-node {
  position: relative;
}
.node-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  cursor: default;
}
@media (hover: hover) {
  .node-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 40px rgba(212,51,51,0.12);
    transform: translateY(-4px);
  }
}
.node-card.center-node {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(212,51,51,0.08), var(--surface-2));
}
.node-card.center-node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.node-icon-ring {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-10);
  border: 1px solid var(--border-accent);
  margin-bottom: 14px;
  font-size: 22px;
}

.node-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  word-break: keep-all;
}
.node-subtitle {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.diagram-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
}

.diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  position: relative;
}
.connector-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(212,51,51,0.8);
  animation: slideFlow 2s ease-in-out infinite;
}
@keyframes slideFlow {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.connector-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.diagram-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.diagram-bottom .node-card {
  min-width: 260px;
}

.diagram-vert-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vert-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border), var(--accent));
  position: relative;
  overflow: hidden;
}
.vert-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(212,51,51,0.8);
  animation: slideDown 2s ease-in-out infinite 1s;
}
@keyframes slideDown {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

/* ══════════════════════════════════════
   CMS SECTION
══════════════════════════════════════ */
.cms-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cms-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.cms-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-sub);
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .cms-feature-item:hover { color: var(--text-main); }
}
.feature-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-15);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}

/* CMS Window Mock — light theme, matches real CMS */
.cms-preview { position: relative; }
.cms-window {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--border);
}

.cms-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F4F4F6;
  border-bottom: 1px solid var(--cms-border);
}
.titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.titlebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--cms-text-muted);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.cms-body {
  display: flex;
  min-height: 360px;
  background: #FAFAFA;
  color: var(--primary);
}

.cms-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid var(--cms-border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #FFFFFF;
}
.sidebar-item {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--cms-text-sub);
  padding: 8px 16px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.sidebar-item:first-child {
  color: var(--accent);
  background: var(--accent-10);
  border-right: 2px solid var(--accent);
  margin-right: -1px;
  font-weight: 600;
}

.cms-main-area {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.cms-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--cms-border);
  border-radius: var(--r-sm);
  padding: 12px;
}
.stat-mini-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--cms-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.stat-mini-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-mini-change {
  font-family: var(--font-display);
  font-size: 10px;
  color: #1AA853;
  font-weight: 600;
}

.cms-chart-area {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--cms-border);
  border-radius: var(--r-sm);
  padding: 14px;
}
.chart-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cms-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--cms-text-sub);
  font-weight: 500;
  width: 44px;
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 6px;
  background: var(--cms-border);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 1s var(--ease-out);
}
.bar-pct {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--cms-text-muted);
  font-weight: 600;
  width: 28px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   GLOBAL SECTION
══════════════════════════════════════ */
.global-section {
  background: var(--surface);
  overflow: hidden;
}

.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  margin-top: 40px;
}
.marquee-container + .marquee-container { margin-top: 16px; }

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track-2 {
  animation: marqueeRev 40s linear infinite;
}
.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
@media (hover: hover) {
  .platform-chip:hover {
    border-color: var(--border-accent);
    color: var(--text-main);
  }
}
.platform-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.platform-logos {
  margin: 56px auto 0;
  max-width: 1080px;
  padding: 16px 0 0;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 32px;
}
.platform-logo-item {
  flex: 0 0 180px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-logo-item img {
  max-height: 32px;
  max-width: 160px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}
@media (hover: hover) {
  .platform-logo-item:hover img { opacity: 1; }
}
@media (max-width: 900px) {
  .platform-logos {
    gap: 28px 24px;
  }
  .platform-logo-item {
    flex: 0 0 150px;
    height: 52px;
  }
  .platform-logo-item img {
    max-height: 28px;
    max-width: 130px;
  }
}
@media (max-width: 560px) {
  .platform-logos {
    margin-top: 32px;
    gap: 22px 18px;
  }
  .platform-logo-item {
    flex: 0 0 130px;
    height: 44px;
  }
  .platform-logo-item img {
    max-height: 24px;
    max-width: 110px;
  }
}

/* ══════════════════════════════════════
   PROCESS SECTION
══════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent) 50%, var(--border));
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 0;
  position: relative;
}

.step-number-wrap {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .process-step:hover .step-number-wrap {
    border-color: var(--border-accent);
    background: var(--accent-10);
    box-shadow: 0 0 24px rgba(212,51,51,0.2);
  }
}

.step-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-body {
  display: flex;
  flex-direction: column;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════ */
.faq-section { background: var(--surface); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  text-align: left;
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .faq-question:hover { color: var(--accent-soft); }
}
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  transition: transform var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
.faq-icon::before {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med);
}
.faq-question[aria-expanded="true"] .faq-icon {
  border-color: var(--border-accent);
  background: var(--accent-10);
  transform: rotate(45deg);
}
.faq-question[aria-expanded="true"] .faq-icon::before { color: var(--accent); }

.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height var(--dur-med) var(--ease-out);
}
.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ══════════════════════════════════════
   FINAL CTA SECTION
══════════════════════════════════════ */
.final-cta-section {
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.final-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212, 51, 51, 0.18) 0%, rgba(181,43,43,0.06) 40%, transparent 70%);
  filter: blur(40px);
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-inline: auto;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.final-cta-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
  margin-bottom: 44px;
  line-height: 1.65;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col { min-width: 220px; }

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.family-sites {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.015);
}
.family-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.family-placeholder {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.footer-address p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.footer-address a {
  color: var(--text-sub);
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .footer-address a:hover { color: var(--accent-soft); }
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-policy {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .footer-policy:hover { color: var(--text-sub); }
}
.footer-copyright {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-primary { display: none; }

  .nav-inner { gap: 16px; }

  .values-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cms-layout { grid-template-columns: 1fr; gap: 48px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET-PORTRAIT (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(64px, 12vw, 96px);
  }

  .nav-inner { height: 64px; }
  .navbar.scrolled .nav-inner { height: 64px; }

  /* Slightly reduce headline pressure */
  .section-heading { font-size: clamp(28px, 6vw, 44px); }
  .hero-headline   { font-size: clamp(38px, 9vw, 64px); }

  .badge { font-size: 10px; padding: 5px 12px; }

  .values-card { padding: 28px 24px; }
  .values-card-header { margin-bottom: 22px; }

  .diff-grid { gap: 14px; }

  /* Diagram — compact triangle (preserve 3-way visual on tablet) */
  .diagram-layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .diagram-connector {
    flex-direction: column;
    min-width: 0;
    align-self: center;
    gap: 6px;
  }
  .diagram-connector .connector-line {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  }
  .diagram-connector .connector-line::after { display: none; }
  .diagram-vert-connector { margin-block: 12px; }
  .vert-line { height: 36px; }

  .node-card { padding: 18px 12px; }
  .node-icon-ring {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .node-title { font-size: 15px; }
  .node-subtitle { font-size: 10px; margin-bottom: 8px; }
  .node-desc { font-size: 11px; line-height: 1.45; }
  .diagram-bottom { margin-top: 8px; }
  .diagram-bottom .node-card { min-width: 0; width: 88%; padding: 22px 18px; }

  .cms-window { transform: none; }
  .cms-body { min-height: auto; }
  .cms-stat-row { grid-template-columns: repeat(3, 1fr); }

  .marquee-track { animation-duration: 28s; }
  .marquee-track-2 { animation-duration: 32s; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-section { padding-top: clamp(88px, 18vw, 110px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { width: 100%; }
  .stat-item { padding: 16px 20px; flex: 1; min-width: 33%; }
  .hero-scroll-hint { display: none; }

  .diff-grid { grid-template-columns: 1fr; }
  .diff-card { padding: 26px 22px; }

  /* Diagram on small mobile — keep compact triangle */
  .diagram-layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  .diagram-connector .connector-line { width: 18px; }
  .diagram-connector .connector-label { font-size: 8px; }
  .diagram-vert-connector { margin-block: 10px; }
  .vert-line { height: 28px; }
  .node-card { padding: 14px 8px; }
  .node-icon-ring {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    font-size: 13px;
  }
  .node-title { font-size: 12px; margin-bottom: 2px; }
  .node-subtitle { font-size: 9px; letter-spacing: 0.06em; margin-bottom: 5px; }
  .node-desc { font-size: 10px; line-height: 1.35; word-break: keep-all; }
  .diagram-bottom { margin-top: 6px; }
  .diagram-bottom .node-card { min-width: 0; width: 92%; padding: 16px 12px; }

  /* CMS preview — keep readable, hide sidebar, stretch chart */
  .cms-sidebar { display: none; }
  .cms-stat-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cms-stat-row .stat-mini-card:last-child { grid-column: span 2; }
  .stat-mini-card { padding: 10px; }
  .stat-mini-value { font-size: 14px; }
  .cms-titlebar { padding: 10px 12px; }
  .titlebar-title { font-size: 10px; }
  .cms-main-area { padding: 12px; gap: 12px; }
  .bar-label { width: 36px; font-size: 9px; }
  .bar-pct { width: 26px; font-size: 9px; }

  /* Process — vertical row layout */
  .process-steps { grid-template-columns: 1fr; gap: 18px; }
  .process-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding: 0; }
  .step-number-wrap { width: 56px; height: 56px; flex-shrink: 0; margin-bottom: 0; }
  .step-number { font-size: 18px; }
  .step-body { flex: 1; padding-top: 4px; }

  /* FAQ — slightly smaller, tighter */
  .faq-question { padding: 18px 0; font-size: 15px; gap: 14px; }
  .faq-answer-inner { font-size: 14px; padding-bottom: 18px; }

  .final-cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-actions .btn { width: 100%; max-width: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .cms-window { font-size: 12px; }

  /* Touch target boost for small buttons */
  .btn-sm { min-height: 40px; padding: 10px 18px; }
  .lang-toggle { min-height: 40px; padding: 10px 12px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤ 390px)
══════════════════════════════════════ */
@media (max-width: 390px) {
  :root {
    --section-pad: clamp(56px, 14vw, 80px);
  }

  .container { padding-inline: 16px; }
  .nav-inner { padding-inline: 16px; }
  .mobile-menu { padding-inline: 16px; }
  .mobile-menu.open { padding: 14px 16px 20px; }

  .hero-section { padding-top: 96px; }
  .hero-headline { font-size: clamp(32px, 11vw, 44px); margin-bottom: 22px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .badge { margin-bottom: 20px; }

  /* Stack stats fully on tiny screens */
  .hero-stats { flex-direction: column; width: 100%; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 18px; }
  .stat-item:last-child { border-bottom: none; }

  .section-heading { font-size: clamp(24px, 7vw, 32px); }

  .diff-card { padding: 22px 18px; }
  .diff-title { font-size: 18px; }

  .values-card { padding: 22px 18px; }

  .step-number-wrap { width: 48px; height: 48px; margin-right: 4px; }
  .step-number { font-size: 16px; }
  .step-title { font-size: 16px; }

  .stat-mini-value { font-size: 13px; }
  .stat-mini-label { font-size: 9px; }
  .chart-title { font-size: 10px; }

  .platform-chip { padding: 8px 14px; font-size: 12px; }

  .final-cta-headline { font-size: clamp(28px, 9vw, 40px); }
  .final-cta-sub { font-size: 14px; margin-bottom: 32px; }

  .footer-info-col .footer-address p { font-size: 12px; }
}
