/* ═══════════════════════════════════════════════════════════════
   노답노트 - Bold Editorial × Korean Energy
   Design Direction: DISTINCTIVE & MEMORABLE - No Generic AI Slop
   Target Score: 97+
   ═══════════════════════════════════════════════════════════════ */

/* ─── Pretendard Font Import ─── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ─── Design Tokens ─── */
:root {
  /* Primary Palette - Bold Coral Energy */
  --color-primary: #FF6B35;
  --color-primary-light: #FF8C5A;
  --color-primary-dark: #E55A2B;
  --color-primary-glow: rgba(255, 107, 53, 0.4);
  --color-primary-intense: rgba(255, 107, 53, 0.6);

  /* Rich Neutrals */
  --color-bg: #FAFAFA;
  --color-bg-warm: #FFF8F5;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #737373;

  /* Accent Colors */
  --color-deep-blue: #0f172a;
  --color-navy: #1e293b;
  --color-gold: #F59E0B;

  /* Spacing */
  --header-height: 80px;
  --header-height-mobile: 72px;
  --container-max: 720px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-black: 900;
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 60px var(--color-primary-glow);
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

/* ═══════════════════════════════════════════════════════════════
   HEADER - Bold & Confident
   ═══════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--transition-smooth);
}

/* Bold accent bar - always visible */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    var(--color-primary) 100%
  );
  transform-origin: left;
  animation: headerAccent 3s ease-in-out infinite;
}

@keyframes headerAccent {
  0%, 100% {
    opacity: 0.9;
    background-position: 0% 50%;
  }
  50% {
    opacity: 1;
    background-position: 100% 50%;
  }
}

/* Shimmer effect overlay */
.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: headerShimmer 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes headerShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header.scrolled::after {
  height: 5px;
}

/* Hidden state - slide up out of view */
.header.header-hidden {
  transform: translateY(-100%);
}

.header-content {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* ─── Logo - Bold & Memorable ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo:active {
  transform: scale(0.98);
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 4px 20px rgba(255, 107, 53, 0.3),
    0 0 0 3px rgba(255, 107, 53, 0.15);
  transition: all var(--transition-smooth);
}

.logo:hover .logo-icon {
  box-shadow:
    0 8px 32px rgba(255, 107, 53, 0.4),
    0 0 0 4px rgba(255, 107, 53, 0.25);
  transform: rotate(-3deg);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: var(--font-weight-black);
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

/* ─── Download Buttons - DISTINCTIVE Style ─── */
.download-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

/* iOS Button - Sleek Black */
.btn-ios {
  background: var(--color-deep-blue);
  color: white;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-ios:hover {
  background: var(--color-navy);
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ios:active {
  transform: translateY(-1px);
}

/* Android Button - Bold Orange */
.btn-android {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow:
    0 4px 20px var(--color-primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-android:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px var(--color-primary-intense),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-android:active {
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   WEBTOON CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.webtoon-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--header-height);
  margin-bottom: 120px;
  background: #ffffff;
  min-height: 100vh;
  position: relative;
}

.webtoon-panel {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  user-select: none;
  -webkit-user-drag: none;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION - Editorial & Bold
   ═══════════════════════════════════════════════════════════════ */

.features {
  background: var(--color-bg-warm);
  padding: 100px var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay */
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B35' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Gradient orbs for depth */
.features::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.features-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Section Title - BOLD Editorial Style */
.features-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: var(--font-weight-black);
  text-align: center;
  color: var(--color-text);
  margin-bottom: 64px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.features-highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* BOLD animated underline */
.features-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--color-primary);
  border-radius: 4px;
  transform-origin: left;
  animation: underlineWave 2s ease-in-out infinite;
}

@keyframes underlineWave {
  0%, 100% {
    transform: scaleX(1) skewX(0deg);
  }
  50% {
    transform: scaleX(1.05) skewX(-2deg);
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: 64px;
}

/* Feature Card - DISTINCTIVE with character */
.feature-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  animation: cardFadeIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Hover state - bold orange border with glow */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(255, 107, 53, 0.15);
  border-color: var(--color-primary);
}

/* Icon Wrapper - Each card gets unique treatment */
.feature-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 24px;
  box-shadow:
    0 8px 32px var(--color-primary-glow),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-bounce);
  position: relative;
}

/* Ring effect on hover */
.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow:
    0 16px 48px var(--color-primary-intense),
    0 0 0 8px rgba(255, 107, 53, 0.15),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Differentiate icons with nth-child */
.feature-card:nth-child(2) .feature-icon-wrap {
  background: linear-gradient(145deg, #F59E0B 0%, #D97706 100%);
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.feature-card:nth-child(3) .feature-icon-wrap {
  background: linear-gradient(145deg, #10B981 0%, #059669 100%);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.feature-card:nth-child(4) .feature-icon-wrap {
  background: linear-gradient(145deg, #8B5CF6 0%, #7C3AED 100%);
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Feature Title - Strong */
.feature-card .feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

/* Feature Description - Readable */
.feature-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   AI SPECIALIZED SECTION - 교육과정 특화 강조
   ═══════════════════════════════════════════════════════════════ */

.ai-special {
  position: relative;
  padding: 100px var(--space-lg);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
}

/* Decorative elements */
.ai-special::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

.ai-special::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ai-special-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Badge */
.ai-special-badge {
  display: inline-block;
  padding: 10px 24px;
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* Title */
.ai-special-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: var(--font-weight-black);
  color: white;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.ai-special-highlight {
  color: var(--color-primary);
  position: relative;
}

/* Description */
.ai-special-desc {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Cards */
.ai-special-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.ai-special-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--transition-smooth);
}

.ai-special-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
}

.ai-special-card-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.ai-special-card-label {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Bottom Quote */
.ai-special-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-special-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: white;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.ai-special-sub {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .ai-special {
    padding: 80px var(--space-md);
  }

  .ai-special-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .ai-special-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .ai-special-card-number {
    font-size: 2.5rem;
  }

  .ai-special-card-label {
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION - THE HERO MOMENT
   ═══════════════════════════════════════════════════════════════ */

.cta {
  position: relative;
  padding: 80px var(--space-lg);
  background: var(--color-bg);
}

.cta-card {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 64px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-radius: 48px;
  overflow: hidden;
  box-shadow:
    0 48px 100px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* BOLD orange glow border */
.cta-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 51px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 50%, var(--color-primary) 100%);
  z-index: -1;
  opacity: 0.8;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Background pattern */
.cta-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.02) 30px,
      rgba(255, 255, 255, 0.02) 60px
    );
}

/* Floating Math Symbols */
.math-symbol {
  position: absolute;
  left: var(--x);
  bottom: -60px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: rgba(255, 107, 53, 0.5);
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
  animation: floatUp var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.math-symbol:nth-child(odd) {
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.math-symbol:nth-child(3n) {
  color: rgba(245, 158, 11, 0.5);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.math-symbol:nth-child(5n) {
  color: rgba(139, 92, 246, 0.4);
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(180deg);
    opacity: 0;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* App Icon - HERO treatment */
.cta-icon {
  width: 128px;
  height: 128px;
  border-radius: 36px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.2),
    0 0 100px rgba(255, 107, 53, 0.3);
  animation: iconFloat 4s ease-in-out infinite;
}

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

/* Title - BOLD & Memorable */
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: var(--font-weight-black);
  color: white;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
.cta-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.85);
  margin-top: -8px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
}

.cta-btn:hover {
  transform: translateY(-4px);
}

.cta-btn:active {
  transform: translateY(-2px);
}

.cta-btn-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.cta-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-btn-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  line-height: 1.2;
}

.cta-btn-store {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* iOS Button - Deep Black */
.cta-btn-ios {
  background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
  color: white;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-btn-ios:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Android Button - Clean White */
.cta-btn-android {
  background: white;
  color: var(--color-text);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

.cta-btn-android:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - Clean & Refined
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--color-bg);
  padding: 64px var(--space-lg) 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF6B35' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 20L20 0h20v20L20 40H0V20z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Top border accent */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 20%, var(--color-primary) 80%, transparent 100%);
  border-radius: 2px;
  opacity: 0.5;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

/* Footer Brand - Clean & Refined */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-smooth);
}

.footer-brand:hover {
  transform: scale(1.02);
}

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-smooth);
}

.footer-brand:hover .footer-icon {
  transform: rotate(-3deg);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Footer Links */
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-divider {
  color: var(--color-text-muted);
  opacity: 0.3;
}

/* Copyright */
.footer-copyright {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .header-content {
    padding: 0 var(--space-md);
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
  }

  .webtoon-container {
    max-width: 100%;
  }

  .features {
    padding: 80px var(--space-md);
  }

  .features-grid {
    gap: var(--space-lg);
  }

  .feature-card {
    padding: var(--space-lg);
    border-radius: 20px;
  }

  .feature-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
  }

  .feature-card .feature-title {
    font-size: 1.35rem;
  }

  .features-badge {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .cta {
    padding: 60px var(--space-md);
  }

  .cta-card {
    padding: 60px 32px;
    border-radius: 36px;
  }

  .cta-icon {
    width: 108px;
    height: 108px;
    border-radius: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 18px 28px;
  }

  .footer {
    padding: 48px var(--space-md) 36px;
  }
}

@media (max-width: 480px) {
  .download-buttons {
    gap: var(--space-sm);
  }

  .btn-text {
    display: none;
  }

  .btn {
    padding: 14px;
    border-radius: 12px;
  }

  .btn-icon {
    width: 24px;
    height: 24px;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

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

  .cta {
    padding: 48px var(--space-md);
  }

  .cta-card {
    padding: 48px 24px;
    border-radius: 28px;
  }

  .cta-icon {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }

  .cta-btn {
    padding: 16px 24px;
    border-radius: 16px;
  }

  .cta-btn-icon {
    width: 32px;
    height: 32px;
  }

  .cta-btn-store {
    font-size: 1.2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES & ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

.btn:focus-visible,
.logo:focus-visible,
.cta-btn:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header, .cta, .footer {
    display: none;
  }
  .webtoon-container {
    padding-top: 0;
  }
}
