/* Neutra 기반 B2B 디자인 토큰 */
/* Pretendard 폰트 + #eb5a11 키 컬러 시스템 */

:root {
  /* =============================================================================
     TYPOGRAPHY SYSTEM - Pretendard
     ============================================================================= */
  
  /* Font Families */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Font Sizes - Desktop */
  --text-xs: 0.75rem;          /* 12px */
  --text-sm: 0.875rem;         /* 14px */
  --text-base: 1rem;           /* 16px */
  --text-lg: 1.125rem;         /* 18px */
  --text-xl: 1.25rem;          /* 20px */
  --text-2xl: 1.5rem;          /* 24px */
  --text-3xl: 1.875rem;        /* 30px */
  --text-4xl: 2.25rem;         /* 36px */
  --text-5xl: 3rem;            /* 48px */
  --text-6xl: 3.75rem;         /* 60px */
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;

  /* =============================================================================
     COLOR SYSTEM - #eb5a11 Primary
     ============================================================================= */
  
  /* Primary Colors */
  --primary: #eb5a11;
  --primary-50: #fef4f0;
  --primary-100: #fde3d7;
  --primary-200: #fbc4a8;
  --primary-300: #f8a179;
  --primary-400: #f47c3c;
  --primary-500: #eb5a11;
  --primary-600: #c44a0e;
  --primary-700: #9d3b0b;
  --primary-800: #7a2d08;
  --primary-900: #5c2206;
  
  /* Neutral Colors */
  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --success-600: #059669;
  
  --warning: #f59e0b;
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-600: #d97706;
  
  --error: #ef4444;
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-600: #dc2626;
  
  --info: #3b82f6;
  --info-50: #eff6ff;
  --info-100: #dbeafe;
  --info-600: #2563eb;

  /* =============================================================================
     SPACING SYSTEM
     ============================================================================= */
  
  --space-0: 0;
  --space-px: 1px;
  --space-0_5: 0.125rem;        /* 2px */
  --space-1: 0.25rem;           /* 4px */
  --space-1_5: 0.375rem;        /* 6px */
  --space-2: 0.5rem;            /* 8px */
  --space-2_5: 0.625rem;        /* 10px */
  --space-3: 0.75rem;           /* 12px */
  --space-3_5: 0.875rem;        /* 14px */
  --space-4: 1rem;              /* 16px */
  --space-5: 1.25rem;           /* 20px */
  --space-6: 1.5rem;            /* 24px */
  --space-7: 1.75rem;           /* 28px */
  --space-8: 2rem;              /* 32px */
  --space-9: 2.25rem;           /* 36px */
  --space-10: 2.5rem;           /* 40px */
  --space-11: 2.75rem;          /* 44px */
  --space-12: 3rem;             /* 48px */
  --space-14: 3.5rem;           /* 56px */
  --space-16: 4rem;             /* 64px */
  --space-20: 5rem;             /* 80px */
  --space-24: 6rem;             /* 96px */
  --space-28: 7rem;             /* 112px */
  --space-32: 8rem;             /* 128px */
  --space-36: 9rem;             /* 144px */
  --space-40: 10rem;            /* 160px */

  /* =============================================================================
     LAYOUT TOKENS
     ============================================================================= */
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding-x: var(--space-6);
  
  /* Section Spacing */
  --section-padding-y: var(--space-20);
  --section-padding-y-mobile: var(--space-16);
  
  /* Grid Gaps */
  --grid-gap-sm: var(--space-4);
  --grid-gap-md: var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* =============================================================================
     COMPONENT TOKENS
     ============================================================================= */
  
  /* Buttons */
  --btn-height-sm: 2.5rem;      /* 40px */
  --btn-height-md: 3rem;        /* 48px */
  --btn-height-lg: 3.5rem;      /* 56px */
  
  --btn-padding-x-sm: var(--space-4);
  --btn-padding-x-md: var(--space-6);
  --btn-padding-x-lg: var(--space-8);
  
  --btn-radius: 0.5rem;
  --btn-radius-full: 9999px;
  
  /* Cards */
  --card-padding: var(--space-6);
  --card-padding-sm: var(--space-4);
  --card-padding-lg: var(--space-8);
  --card-radius: 1rem;
  --card-radius-lg: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* =============================================================================
     ANIMATION TOKENS
     ============================================================================= */
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Transform */
  --scale-hover: 1.02;
  --scale-active: 0.98;
  
  /* =============================================================================
     BREAKPOINTS
     ============================================================================= */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* =============================================================================
   MOBILE TYPOGRAPHY OVERRIDE
   ============================================================================= */

@media (max-width: 768px) {
  :root {
    --text-xs: 0.6875rem;       /* 11px */
    --text-sm: 0.8125rem;       /* 13px */
    --text-base: 0.9375rem;     /* 15px */
    --text-lg: 1.0625rem;       /* 17px */
    --text-xl: 1.1875rem;       /* 19px */
    --text-2xl: 1.375rem;       /* 22px */
    --text-3xl: 1.6875rem;      /* 27px */
    --text-4xl: 2rem;           /* 32px */
    --text-5xl: 2.5rem;         /* 40px */
    --text-6xl: 3rem;           /* 48px */
    
    /* Mobile Spacing Adjustments */
    --section-padding-y: var(--space-16);
    --container-padding-x: var(--space-4);
  }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-hero {
  padding-top: calc(var(--section-padding-y) * 1.5);
  padding-bottom: calc(var(--section-padding-y) * 1.5);
}

/* Grid Systems */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap-md); }

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-sm);
  }
}

/* Text Styles */
.text-primary { color: var(--primary); }
.text-neutral-600 { color: var(--neutral-600); }
.text-neutral-800 { color: var(--neutral-800); }
.text-neutral-900 { color: var(--neutral-900); }

/* Button Base */
.btn {
  font-family: var(--font-family);
  font-weight: var(--font-medium);
  border-radius: var(--btn-radius);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--neutral-0);
  height: var(--btn-height-md);
  padding: 0 var(--btn-padding-x-md);
  font-size: var(--text-base);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  background-color: var(--primary-600);
}

.btn-primary.large {
  height: var(--btn-height-lg);
  padding: 0 var(--btn-padding-x-lg);
  font-size: var(--text-lg);
}

/* Card Base */
.card {
  background-color: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

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

/* Pricing Card Special */
.card-pricing-popular {
  border-color: var(--primary);
  position: relative;
}

.card-pricing-popular::before {
  content: "Popular";
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background-color: var(--primary);
  color: var(--neutral-0);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--btn-radius);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}