/* ===================================
   Soft & Organic Design System
   =================================== */

:root {
  /* Design Tokens - Soft & Organic Palette */
  --primary-color: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  
  --secondary-color: #f97316;
  --secondary-light: #fb923c;
  --secondary-dark: #ea580c;
  
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  
  --footer-bg: #1e293b;
  --footer-text: #94a3b8;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* Soft & Organic Shadows */
  --shadow-soft-sm: 0 2px 8px -2px rgba(30, 64, 175, 0.08);
  --shadow-soft-md: 0 4px 16px -4px rgba(30, 64, 175, 0.12);
  --shadow-soft-lg: 0 8px 32px -8px rgba(30, 64, 175, 0.16);
  --shadow-soft-xl: 0 16px 64px -16px rgba(30, 64, 175, 0.20);
  
  --shadow-warm-sm: 0 2px 8px -2px rgba(249, 115, 22, 0.08);
  --shadow-warm-md: 0 4px 16px -4px rgba(249, 115, 22, 0.12);
  --shadow-warm-lg: 0 8px 32px -8px rgba(249, 115, 22, 0.16);
  
  /* Border Radius - Generous & Organic */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing Scale - Breathing Room */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography - Round & Friendly */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-bounce: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   Base Styles
   =================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 500;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 500;
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===================================
   Layout Components
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background: var(--background-secondary);
}

.section-accent {
  background: var(--background-accent);
}

/* ===================================
   Cards - Soft & Organic Design
   =================================== */

.card {
  background: var(--background-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft-md);
  border: 1px solid rgba(30, 64, 175, 0.06);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(30, 64, 175, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card-sm {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.card-lg {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
}

/* ===================================
   Buttons - Gradient & Organic
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-soft-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: white;
  box-shadow: var(--shadow-warm-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm-lg);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid rgba(30, 64, 175, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

/* ===================================
   Forms - Soft & Friendly
   =================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--background-primary);
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  background: var(--background-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
}

/* ===================================
   Navigation - Clean & Modern
   =================================== */

.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.06);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-brand {
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(30, 64, 175, 0.05);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(30, 64, 175, 0.1);
}

/* ===================================
   Hero Section - Organic & Engaging
   =================================== */

.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, 
    var(--background-secondary) 0%, 
    var(--background-primary) 50%, 
    var(--background-accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Grid System - Flexible & Responsive
   =================================== */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================================
   Utilities - Spacing & Display
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-green); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--background-secondary); }
.bg-dark { background-color: var(--footer-bg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-soft-sm); }
.shadow-md { box-shadow: var(--shadow-soft-md); }
.shadow-lg { box-shadow: var(--shadow-soft-lg); }
.shadow-warm { box-shadow: var(--shadow-warm-md); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* ===================================
   Korean Localization Elements
   =================================== */

.kr-text {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.01em;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(30, 64, 175, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary-color);
}

/* ===================================
   Footer - Professional & Clean
   =================================== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--background-primary);
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  color: var(--footer-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: var(--background-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
}

/* ===================================
   Animation & Interactive States
   =================================== */

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .card-lg {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===================================
   Dark Mode Support
   =================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --background-primary: #0f172a;
    --background-secondary: #1e293b;
    --background-accent: #334155;
  }
  
  .card {
    border-color: rgba(148, 163, 184, 0.1);
  }
  
  .nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .btn,
  .nav,
  .footer {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
  
  body {
    background: white;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}