/* =============================================================================
   BASE STYLES - Variables, Resets, Typography
   ============================================================================= */

:root {
  /* Colors */
  --ink: #221F20;
  --red: #E31B23;
  --red-hover: #CC1820;
  --red-light: rgba(227, 27, 35, 0.12);
  --red-border: rgba(227, 27, 35, 0.28);
  --bg: #ffffff;
  --bg-gray: #fafafa;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --line-dark: #d1d5db;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 64px;
  
  /* Border Radius */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  
  /* Shadows */
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 42px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   CSS Reset & Base Styles
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================================================
   Typography
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }

p {
  line-height: 1.7;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =============================================================================
   Utilities
   ============================================================================= */

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin: 0 0 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* =============================================================================
   Responsive Typography
   ============================================================================= */

@media (max-width: 620px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
}
