/**
 * Advanze Design Tokens - Apple-inspired
 * Based on Apple design system with Advanze 3-blue gradient as primary
 */

:root {
  /* ===== COLORS ===== */

  /* Primary - Advanze 3-Blue Gradient (kept from original) */
  --adv-primary:          #0274C2;  /* Darkest blue from gradient */
  --adv-primary-focus:    #00B0F0;  /* Middle blue from gradient */
  --adv-primary-light:    #40E0D0;  /* Lightest blue (turquoise) from gradient */
  --adv-gradient-primary: linear-gradient(90deg, #0274C2 0%, #00B0F0 50%, #40E0D0 100%);
  --adv-gradient-primary-hover: linear-gradient(135deg, #0066B3 0%, #009FD9 50%, #30D0C0 100%);

  /* Text - Apple's ink system */
  --adv-ink:              #1d1d1f;  /* Near-black for all text on light */
  --adv-ink-charcoal:     #243b55;  /* Charcoal blue for menu text */
  --adv-body:             #1d1d1f;
  --adv-body-on-dark:     #ffffff;
  --adv-body-muted:       #cccccc;  /* Secondary text on dark */
  --adv-ink-muted-80:     #333333;  /* Softer text */
  --adv-ink-muted-70:     #7f8c8d;  /* Menu descriptions */
  --adv-ink-muted-60:     #95a5a6;  /* Subtitles */
  --adv-ink-muted-48:     #7a7a7a;  /* Disabled/legal text */

  /* Surface - Apple's canvas system */
  --adv-canvas:           #ffffff;  /* Pure white */
  --adv-canvas-parchment: #f5f5f7;  /* Apple's signature off-white */
  --adv-surface-pearl:    #fafafc;  /* Near-white for ghost buttons */
  --adv-surface-iron:     #ecf0f1;  /* Light gray for menu hover */
  --adv-surface-tile-1:   #272729;  /* Primary dark tile */
  --adv-surface-tile-2:   #2a2a2c;  /* Slightly lighter dark */
  --adv-surface-tile-3:   #252527;  /* Slightly darker dark */
  --adv-surface-black:    #000000;  /* True void */

  /* Hairlines & Borders */
  --adv-divider-soft:     #f0f0f0;
  --adv-hairline:         #e0e0e0;

  /* Utility Colors */
  --adv-success:          #4CAF50;
  --adv-success-light:    #E8F5E9;
  --adv-success-dark:     #388E3C;
  --adv-warning:          #FF9800;
  --adv-warning-light:    #FFF3E0;
  --adv-error:            #F44336;
  --adv-error-light:      #FFEBEE;
  --adv-info:             #2196F3;
  --adv-info-light:       #E3F2FD;

  /* On Colors */
  --adv-on-primary:       #ffffff;
  --adv-on-dark:          #ffffff;

  /* ===== TYPOGRAPHY ===== */

  /* Font Families */
  --adv-font-display:     'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --adv-font-text:        'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --adv-font-mono:        'SF Mono', 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes - Apple's scale */
  --adv-font-size-hero:   40px;   /* hero-display - max size */
  --adv-font-size-display-lg: 40px; /* standard titles */
  --adv-font-size-display-md: 34px;
  --adv-font-size-lead:   28px;
  --adv-font-size-lead-airy: 24px;
  --adv-font-size-tagline: 21px;
  --adv-font-size-body:   17px;   /* Apple's signature 17px body */
  --adv-font-size-caption: 14px;
  --adv-font-size-fine:   12px;
  --adv-font-size-micro:  10px;

  /* Font Weights - Apple's 300/400/600/700 ladder */
  --adv-font-weight-light: 300;
  --adv-font-weight-regular: 400;
  --adv-font-weight-semibold: 600;
  --adv-font-weight-bold: 700;

  /* Line Heights */
  --adv-line-height-tight: 1.07;    /* hero */
  --adv-line-height-display: 1.10;  /* display */
  --adv-line-height-normal: 1.47;   /* body - Apple's editorial leading */
  --adv-line-height-relaxed: 2.41;  /* dense links (footer) */

  /* Letter Spacing - Apple's negative tracking */
  --adv-letter-spacing-hero: -0.28px;
  --adv-letter-spacing-display: -0.374px;
  --adv-letter-spacing-body: -0.374px;
  --adv-letter-spacing-caption: -0.224px;
  --adv-letter-spacing-fine: -0.12px;

  /* ===== SPACING ===== */

  /* Apple's 8px-based spacing */
  --adv-space-xxs:    4px;
  --adv-space-xs:     8px;
  --adv-space-sm:     12px;
  --adv-space-md:     17px;
  --adv-space-lg:     24px;
  --adv-space-xl:     32px;
  --adv-space-xxl:    48px;
  --adv-space-section: 80px;  /* Apple's tile padding */

  /* ===== BORDER RADIUS ===== */

  /* Apple's rounded scale */
  --adv-radius-none:  0px;
  --adv-radius-xs:    5px;
  --adv-radius-sm:    8px;    /* utility buttons */
  --adv-radius-md:    11px;   /* pearl buttons */
  --adv-radius-lg:    18px;   /* utility cards */
  --adv-radius-pill:  9999px; /* primary CTAs - signature Apple pill */
  --adv-radius-full:  50%;

  /* ===== SHADOWS ===== */

  /* Apple uses ONE shadow - for product imagery only */
  --adv-shadow-none:    none;
  --adv-shadow-product: 0 3px 30px 5px rgba(0, 0, 0, 0.22);  /* Apple's signature product shadow */
  --adv-shadow-hairline: 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* ===== Z-INDEX ===== */

  --adv-z-dropdown: 1000;
  --adv-z-sticky:   1020;
  --adv-z-fixed:    1030;
  --adv-z-modal:    1040;
  --adv-z-toast:    1050;
}

/* Dark mode - Apple's dark tile colors */
.adv-dark {
  --adv-canvas:         var(--adv-surface-tile-1);
  --adv-body:           var(--adv-body-on-dark);
  --adv-ink:            var(--adv-body-on-dark);
}
