/* ============================================
   CSS Custom Properties - Design Tokens
   ============================================ */

:root {
  /* Primary Palette */
  --brand-orange: #FF6A00;
  --brand-orange-light: #FFF3E6;
  --brand-orange-dark: #E55F00;
  --deep-blue: #1A1F2E;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-white: #FFFFFF;
  --bg-gray: #F7F8FA;
  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;
  --success-green: #10B981;
  --error-red: #EF4444;
  --info-blue: #3B82F6;

  /* Functional Colors */
  --btn-primary-bg: #FF6A00;
  --btn-primary-hover: #E55F00;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-border: #FF6A00;
  --btn-secondary-text: #FF6A00;
  --tag-text: #FF6A00;
  --tag-bg: #FFF3E6;

  /* Typography Scale */
  --font-primary: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;

  --text-h1: 48px;
  --text-h2: 36px;
  --text-h3: 20px;
  --text-h4: 18px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-btn: 16px;
  --text-tag: 13px;
  --text-nav: 15px;
  --text-trust-score: 48px;

  /* Line Heights */
  --lh-h1: 1.2;
  --lh-h2: 1.3;
  --lh-h3: 1.4;
  --lh-h4: 1.4;
  --lh-body: 1.7;
  --lh-body-sm: 1.6;
  --lh-caption: 1.5;

  /* Letter Spacing */
  --ls-h1: -0.02em;
  --ls-h2: -0.01em;
  --ls-tag: 0.02em;
  --ls-uppercase: 0.05em;

  /* Spacing */
  --section-pad-y: 80px;
  --section-pad-y-mobile: 40px;
  --container-max: 1200px;
  --container-pad-x: 48px;
  --container-pad-x-tablet: 32px;
  --container-pad-x-mobile: 24px;
  --gap-card: 24px;
  --gap-card-mobile: 16px;
  --title-to-content: 48px;
  --title-to-content-mobile: 32px;

  /* Z-Index */
  --z-sticky-bar: 1000;
  --z-header: 999;
  --z-modal: 998;
  --z-backdrop: 997;
  --z-dropdown: 100;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-btn: 0 4px 16px rgba(255,106,0,0.3);
  --shadow-btn-hover: 0 6px 20px rgba(255,106,0,0.4);
  --shadow-nav: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-nav-scroll: 0 2px 8px rgba(0,0,0,0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-pill: 20px;
  --radius-full: 50%;

  /* Transitions */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.6s;
}

/* Mobile Type Scale */
@media (max-width: 767px) {
  :root {
    --text-h1: 28px;
    --text-h2: 24px;
    --text-h3: 18px;
    --text-h4: 16px;
    --text-body: 15px;
    --text-body-sm: 13px;
    --text-caption: 12px;
    --text-btn: 15px;
    --text-tag: 12px;
    --text-nav: 14px;
    --text-trust-score: 36px;
    --section-pad-y: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --section-pad-y: 60px;
  }
}
