/* ============================================================
   MEDILINX Design System — shared.css
   Version: 2.0 (Commercial Redesign)
   Based on: Unlearn.ai patterns + Medilinx brand guide
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Brand Colors */
  --primary: #1440ED;
  --primary-hover: #0F30B8;
  --primary-light: #E8EEFF;
  --primary-lightest: #F4F7FF;
  --deep-blue: #0F30B8;
  --accent-purple: #7c3aed;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1440ED 0%, #7c3aed 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1440ED 100%);
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --gradient-cta: linear-gradient(135deg, #1440ED 0%, #0F30B8 100%);
  --gradient-green: linear-gradient(135deg, #1440ED 0%, #059669 100%);
  --gradient-text: linear-gradient(135deg, #1440ED, #7c3aed);

  /* Dark Mode */
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-card-hover: #334155;
  --dark-border: rgba(255,255,255,0.08);
  --dark-text: #e2e8f0;
  --dark-text-muted: #94a3b8;

  /* Light Mode */
  --light-bg: #ffffff;
  --light-bg-alt: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e2e8f0;
  --light-text: #0f172a;
  --light-text-muted: #64748b;

  /* Status / Feedback */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Layout */
  --max-width: 1200px;
  --max-text: 740px;
  --section-padding: 120px;
  --section-padding-sm: 80px;
  --header-height: 72px;

  /* Typography */
  --font-heading: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(20,64,237,0.15);
  --shadow-glow-strong: 0 0 60px rgba(20,64,237,0.25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--light-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }

p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--light-text-muted);
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-text);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--sm {
  padding: var(--section-padding-sm) 0;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section--dark p {
  color: var(--dark-text-muted);
}

.section--alt {
  background: var(--light-bg-alt);
}

.section--gradient {
  background: var(--gradient-hero);
  color: #ffffff;
}

.section--gradient h1,
.section--gradient h2,
.section--gradient h3 {
  color: #ffffff;
}

.section--gradient p {
  color: rgba(255,255,255,0.8);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: var(--max-text);
  margin: 0 auto 64px;
}

.section-header .tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section--dark .section-header .tag {
  background: rgba(20,64,237,0.15);
  color: #93b4ff;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

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

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section--sm { padding: 60px 0; }
  .section-header { margin-bottom: 48px; }
  .container { padding: 0 20px; }
}

/* Flex utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.gap-2xl { gap: 48px; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ============================================================
   HEADER — Frosted Glass Sticky Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: all var(--transition-slow);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled .nav-link {
  color: var(--light-text);
}

.site-header.scrolled .nav-link:hover {
  color: var(--primary);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header.scrolled .header-logo {
  color: var(--light-text);
}

.header-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-header.scrolled .header-logo img {
  filter: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.site-header.scrolled .nav-link.active::after {
  background: var(--primary);
}

/* Header CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #ffffff !important;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

.site-header.scrolled .mobile-menu-btn {
  color: var(--light-text);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right var(--transition-slow);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    z-index: 1001;
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav .nav-link,
  .site-header.scrolled .header-nav .nav-link {
    color: var(--dark-text);
    padding: 16px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--dark-border);
    width: 100%;
  }

  .header-nav .header-cta {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .site-header {
    padding: 0 20px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20,64,237,0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20,64,237,0.35);
  color: #ffffff;
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--dark {
  background: var(--dark-card);
  border-color: var(--dark-border);
}

.card--dark:hover {
  background: var(--dark-card-hover);
  box-shadow: var(--shadow-glow);
}

.card--dark h3,
.card--dark h4 {
  color: #ffffff;
}

.card--dark p {
  color: var(--dark-text-muted);
}

.card--featured {
  border-color: var(--primary);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.card--dark .card-icon {
  background: rgba(20,64,237,0.15);
  color: #93b4ff;
}

.card h3,
.card h4 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9375rem;
}

/* ============================================================
   STAT CARDS — Count Up Numbers
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.section--dark .stat-number,
.section--gradient .stat-number {
  color: #ffffff;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 4px;
}

.section--dark .stat-label {
  color: var(--dark-text);
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--light-text-muted);
}

.section--dark .stat-desc {
  color: var(--dark-text-muted);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table thead {
  background: var(--dark-bg);
}

.compare-table th {
  padding: 18px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  border-bottom: 2px solid var(--dark-border);
}

.compare-table th:first-child {
  text-align: left;
  width: 30%;
}

.compare-table th.highlight {
  background: var(--primary);
  color: #ffffff;
  position: relative;
}

.compare-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--light-border);
  vertical-align: middle;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--light-text);
}

.compare-table td.highlight {
  background: var(--primary-lightest);
  font-weight: 600;
}

.compare-table tbody tr:hover {
  background: var(--light-bg-alt);
}

.compare-table .check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.compare-table .dash {
  color: #cbd5e1;
  font-size: 1.25rem;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-text);
  text-align: left;
  gap: 16px;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--light-bg-alt);
}

.faq-question .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--primary);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--light-text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Dark FAQ */
.section--dark .faq-item {
  border-color: var(--dark-border);
  background: var(--dark-card);
}

.section--dark .faq-question {
  color: #ffffff;
}

.section--dark .faq-question:hover {
  background: var(--dark-card-hover);
}

.section--dark .faq-answer-inner {
  color: var(--dark-text-muted);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero--compact {
  min-height: auto;
  padding: 160px 0 100px;
}

.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(20,64,237,0.12);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.section--dark .hero-tag,
.section--gradient .hero-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1875rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.section--gradient .hero p {
  color: rgba(255,255,255,0.8);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

.hero-split-area {
  margin-top: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-split-img {
  max-width: 100%;
  width: 800px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .hero-split-img {
    width: 100%;
    border-radius: 12px;
  }
  .hero-split-area {
    margin-top: 32px;
  }
}

/* Trust badges */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--light-text-muted);
}

.section--dark .trust-item,
.section--gradient .trust-item {
  color: rgba(255,255,255,0.6);
}

.trust-item .trust-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
}

@media (max-width: 1024px) {
  .hero--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 0 60px;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero p {
    margin: 0 auto 36px;
  }
  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
  .trust-bar {
    justify-content: center;
  }
  .btn-group {
    justify-content: center;
  }
}

/* ============================================================
   PAIN SECTION — Background + Transform Cards
   ============================================================ */
.pain-section {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.pain-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 1px 1px, #cbd5e1 0.5px, transparent 0.5px);
  background-size: 40px 40px;
  pointer-events: none;
}

.transform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.transform-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.transform-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.transform-before {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.transform-num-old {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: -0.02em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #cbd5e1;
}

.transform-num-old small {
  font-size: 0.875rem;
  font-weight: 600;
}

.transform-after {
  padding: 20px 24px 24px;
}

.transform-num-new {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.transform-label {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .transform-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 360px;
  }
  .transform-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .transform-before {
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
    padding: 20px;
  }
  .transform-after {
    padding: 20px;
  }
  .transform-num-old { font-size: 1.25rem; }
  .transform-num-new { font-size: 1.75rem; }
}

/* ============================================================
   FLOW / TIMELINE
   ============================================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.flow-step h4 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.flow-step p {
  font-size: 0.875rem;
}

/* Timeline (vertical) */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-border);
}

.section--dark .timeline::before {
  background: var(--dark-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  z-index: 1;
}

.timeline-item h4 {
  margin-bottom: 8px;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section--dark .timeline-badge {
  background: rgba(20,64,237,0.15);
  color: #93b4ff;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--light-bg-alt);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  overflow-x: auto;
  justify-content: center;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--light-text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--light-text);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.section--dark .tabs {
  background: rgba(255,255,255,0.05);
}

.section--dark .tab-btn {
  color: var(--dark-text-muted);
}

.section--dark .tab-btn:hover {
  color: var(--dark-text);
}

.section--dark .tab-btn.active {
  background: var(--dark-card);
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--gradient-hero);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(20,64,237,0.15);
  filter: blur(80px);
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  margin-bottom: 40px;
  position: relative;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
  position: relative;
}

.cta-badge {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-bg);
  padding: 80px 0 40px;
  color: var(--dark-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--dark-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--dark-text-muted);
}

.footer-contact-item a {
  color: var(--dark-text-muted);
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--dark-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-certifications {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-cert {
  padding: 4px 12px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--dark-text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 100ms; }
.stagger > *:nth-child(3) { transition-delay: 200ms; }
.stagger > *:nth-child(4) { transition-delay: 300ms; }
.stagger > *:nth-child(5) { transition-delay: 400ms; }
.stagger > *:nth-child(6) { transition-delay: 500ms; }

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge--success {
  background: #dcfce7;
  color: #15803d;
}

.badge--warning {
  background: #fef9c3;
  color: #a16207;
}

.badge--recommended {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 6px 16px;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 4px;
}

.pricing-card .plan-name-ko {
  font-size: 0.875rem;
  color: var(--light-text-muted);
  margin-bottom: 12px;
}

.pricing-card .plan-desc {
  font-size: 0.9375rem;
  color: var(--light-text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-border);
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--light-text-muted);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof {
  padding: 24px 0;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  background: var(--light-bg-alt);
}

.social-proof p {
  text-align: center;
  font-size: 1.05rem;
  color: var(--light-text);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.logo-strip img {
  height: 32px;
  filter: grayscale(1);
  transition: all var(--transition-base);
}

.logo-strip img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Logo Marquee (Infinite Scroll) --- */
.logo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 12px 0;
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg-alt) 0%, transparent 100%);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg-alt) 0%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-marquee-track img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   PRODUCT MOCKUP / IMAGE CONTAINERS
   ============================================================ */
.mockup-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mockup-container img {
  width: 100%;
  display: block;
}

.mockup-browser {
  background: #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0f172a;
}

.mockup-browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
}

.mockup-browser-dot:nth-child(1) { background: #ef4444; }
.mockup-browser-dot:nth-child(2) { background: #f59e0b; }
.mockup-browser-dot:nth-child(3) { background: #22c55e; }

.mockup-browser-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 12px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--dark-text-muted);
}

.mockup-browser img {
  width: 100%;
  display: block;
}

/* Phone mockup */
.mockup-phone {
  background: #1e293b;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  max-width: 280px;
}

.mockup-phone-inner {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.mockup-phone img {
  width: 100%;
  display: block;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.divider {
  height: 1px;
  background: var(--light-border);
  margin: 48px 0;
}

.section--dark .divider {
  background: var(--dark-border);
}

.highlight-number {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.5em;
}

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

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

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

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

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .mobile-menu-btn { display: none !important; }

  .section { padding: 32px 0; }

  body { color: #000; background: #fff; }
}

/* ============================================================
   CONTENT PROTECTION
   ============================================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
