/* =========================================================
   FlipCraft - Modern Interactive Flipbook Website
   Design System & Components
   ========================================================= */

:root {
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-display: 'Outfit', 'Pretendard', sans-serif;

  /* Colors */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 25, 38, 0.7);
  --bg-card-hover: rgba(26, 36, 54, 0.85);
  --bg-surface: #0f172a;
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #38bdf8 50%, #10b981 100%);
  --flare-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 50%, #facc15 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-subtle: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
  --shadow-book: 0 22px 50px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-dark);
}

/* =========================================================
   INTRO SPLASH OVERLAY (FLARE.PNG 5s SEQUENCE)
   ========================================================= */

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  overflow: hidden;
}

.intro-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.flare-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  width: 100%;
  height: 100%;
}

/* Flare image starts invisible and smoothly fades in */
.flare-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255, 180, 50, 0.4));
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  animation: flareAppear 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes flareAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: blur(10px) drop-shadow(0 0 10px rgba(255, 180, 50, 0.1));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) drop-shadow(0 0 45px rgba(255, 180, 50, 0.45));
  }
}

.flare-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 160, 40, 0.25) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 75%);
  filter: blur(50px);
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

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

/* Text sits directly ON TOP of the image */
.intro-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 580px;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.55) 0%, rgba(3, 7, 18, 0.72) 85%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.2);
  opacity: 0;
  animation: textFadeIn 1.2s ease 0.6s forwards;
  pointer-events: none;
}

@keyframes textFadeIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.intro-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.intro-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(99, 102, 241, 0.6);
}

.intro-controls {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.intro-progress-bar {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.skip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-main);
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}


/* =========================================================
   MAIN SITE & LAYOUT
   ========================================================= */

.main-site {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-site.visible {
  opacity: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text .highlight {
  color: #38bdf8;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.btn-primary-small {
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.25s ease;
}

.btn-primary-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Hamburger active transformation to X */
.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown Drawer */
.mobile-menu-drawer {
  display: none;
}

/* Scroll To Top Floating Button */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, #4f46e5, #38bdf8);
}

.scroll-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}


/* =========================================================
   HERO SECTION & FLIPBOOK DEMO
   ========================================================= */

.hero-section {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.blob-1 {
  top: -100px;
  left: 20%;
  width: 450px;
  height: 450px;
  background: rgba(99, 102, 241, 0.15);
}

.blob-2 {
  top: 150px;
  right: 15%;
  width: 400px;
  height: 400px;
  background: rgba(56, 189, 248, 0.12);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-title {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 880px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.7);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


/* =========================================================
   INTERACTIVE FLIPBOOK PREVIEW DEMO COMPONENT
   ========================================================= */

.flipbook-demo-wrapper {
  width: 100%;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-book);
  padding: 20px;
  position: relative;
  perspective: 1600px;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.demo-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-page-counter {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 99px;
  color: #38bdf8;
  font-weight: 600;
}

.flipbook-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
}

.flipbook {
  position: relative;
  width: 100%;
  max-width: 740px;
  height: 380px;
  display: flex;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  perspective: 2000px;
}

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.1), rgba(0,0,0,0.5));
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.book-page {
  flex: 1;
  height: 100%;
  background: #ffffff;
  color: #1e293b;
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.04);
}

.left-page {
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 96%, #e2e8f0 100%);
  transform-origin: right center;
}

.right-page {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #e2e8f0 0%, #ffffff 4%, #f8fafc 100%);
  transform-origin: left center;
}

/* Page animation classes */
.flipbook.turning-next .right-page {
  animation: flipRightToLeft 0.5s ease-in-out;
}

.flipbook.turning-prev .left-page {
  animation: flipLeftToRight 0.5s ease-in-out;
}

@keyframes flipRightToLeft {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-40deg); box-shadow: -20px 10px 30px rgba(0,0,0,0.2); }
  100% { transform: rotateY(0deg); }
}

@keyframes flipLeftToRight {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(40deg); box-shadow: 20px 10px 30px rgba(0,0,0,0.2); }
  100% { transform: rotateY(0deg); }
}

.page-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.page-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6366f1;
  margin-bottom: 12px;
}

.page-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-text {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.page-list li {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
}

.page-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 15px 0;
  background: radial-gradient(circle, #eef2ff 0%, #f8fafc 70%);
  border-radius: 8px;
  min-height: 100px;
}

.art-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.page-interactive-hint {
  margin-top: auto;
  font-size: 0.82rem;
  color: #6366f1;
  font-weight: 600;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}

.page-num {
  position: absolute;
  bottom: -15px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}
.left-page .page-num { left: 0; }
.right-page .page-num { right: 0; }

/* Turn Page Arrow Buttons */
.nav-turn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.nav-turn:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.prev-btn { left: 6px; }
.next-btn { right: 6px; }

/* Viewer Toolbar */
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn.active, .tool-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

.toolbar-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}


/* =========================================================
   SECTIONS & GRIDS
   ========================================================= */

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}

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

.sub-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: stretch;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform 0.3s ease;
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card.new-way {
  background: linear-gradient(145deg, rgba(24, 33, 54, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
}

.card-icon-box {
  font-size: 2rem;
  margin-bottom: 16px;
}

.best-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.compare-card h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.compare-card.new-way li strong {
  color: #f8fafc;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.feature-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* =========================================================
   FREE SERVICE APPLICATION & FAQ
   ========================================================= */

.free-service-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(9, 13, 22, 1) 100%);
}

.free-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 50px 30px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.banner-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.banner-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.highlight-text {
  color: #38bdf8;
}

.banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
}

.free-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.perk-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.9rem;
  color: #ffffff;
}

.perk-check {
  color: #22c55e;
  font-weight: 800;
}

/* Application Card Layout */
.application-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-subtle);
}

.app-card-left h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-card-left > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.req {
  color: #f43f5e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.file-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.25s ease;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.drop-icon {
  color: #38bdf8;
  margin-bottom: 8px;
}

.drop-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  font-weight: 500;
}

.drop-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.file-hidden-input {
  display: none;
}

.btn-submit {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.6);
}

.success-notice {
  text-align: center;
  padding: 40px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
}

.notice-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.success-notice h4 {
  font-size: 1.3rem;
  color: #4ade80;
  margin-bottom: 8px;
}

.success-notice p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
}

/* FAQ & Contact */
.faq-box h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.faq-item {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item h5 {
  font-size: 0.95rem;
  color: #f1f5f9;
  margin-bottom: 6px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-badge {
  font-size: 0.82rem;
  color: #cbd5e1;
}


/* =========================================================
   3-STEP PROCESS
   ========================================================= */

.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.25);
  margin-bottom: 10px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-divider {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}


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

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: #060911;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 480px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}


/* =========================================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================================= */

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .application-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    flex-direction: column;
  }
  .step-divider {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .step-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 모바일 인트로 4면 꽉 차게 (Full Bleed Cover) & 글씨 오버레이 */
  .intro-splash {
    padding: 0;
    margin: 0;
  }
  .intro-content {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
  }
  .flare-wrapper {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
  }
  .flare-image {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }
  .intro-caption {
    width: 88vw;
    padding: 20px 16px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.72) 0%, rgba(3, 7, 18, 0.88) 90%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  }
  .intro-title {
    font-size: 1.65rem;
    letter-spacing: 1px;
  }
  .intro-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2.5px;
  }
  .intro-controls {
    bottom: 24px;
    gap: 12px;
    z-index: 25;
  }
  .intro-progress-bar {
    width: 200px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-actions .btn-primary-small {
    display: none; /* 모바일에서는 햄버거 메뉴 안의 큰 CTA 버튼 활용 */
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* 모바일 드롭다운 메뉴 드로어 */
  .mobile-menu-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
  }

  .mobile-menu-drawer.open {
    max-height: 420px;
    opacity: 1;
    padding: 16px 20px 24px;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-nav-item {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }

  .mobile-nav-item:hover, .mobile-nav-item:active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
  }

  .mobile-nav-item.mobile-cta-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    color: #ffffff;
    text-align: center;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 700;
  }

  /* 모바일 스크롤 탑 버튼 위치 */
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .hero-title {
    font-size: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .flipbook-stage {
    padding: 10px 0;
  }
  .flipbook {
    height: 320px;
  }
  .book-page {
    padding: 18px;
  }
  .page-heading {
    font-size: 1.1rem;
  }
  .page-text, .page-list li {
    font-size: 0.8rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
