/**
 * Fast Talk Flagship Marketing Website
 * Design System Tokens: Swiss/Apple Monochromatic Architecture
 * Version: 1.0.0
 */

:root {
  /* =========================================================================
     Color Tokens — Night Theme (Deep Obsidian Canvas & Machined Aluminum)
     Default theme. Also explicitly applied under [data-theme="night"].
     ========================================================================= */
  --bg-canvas: #070708;
  --bg-surface: #0D0D11;
  --bg-card: #14141A;
  --bg-card-subtle: #181822;
  --bg-card-hover: #1E1E28;
  --bg-card-active: #242432;
  --code-bg: #0A0A0E;

  /* Structural Hairlines & Borders */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.24);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(255, 255, 255, 0.16);

  /* Typography Colors */
  --text-primary: #F5F5F7;
  --text-secondary: #8E8D9A;
  --text-tertiary: #7E7D8C;
  --text-inverse: #070708;

  /* Functional Chromatic Hardware Accents */
  --accent-crimson: #FF4D58;
  --accent-crimson-glow: rgba(255, 77, 88, 0.28);
  --accent-crimson-subtle: rgba(255, 77, 88, 0.12);

  --accent-amber: #FFB547;
  --accent-amber-glow: rgba(255, 181, 71, 0.28);
  --accent-amber-subtle: rgba(255, 181, 71, 0.12);

  --accent-emerald: #30D158;
  --accent-emerald-glow: rgba(48, 209, 88, 0.28);
  --accent-emerald-subtle: rgba(48, 209, 88, 0.12);

  --accent-blue: #2997FF;
  --accent-blue-subtle: rgba(41, 151, 255, 0.12);

  /* Architectural Grid Lines & Pinstripes */
  --grid-line: rgba(255, 255, 255, 0.04);
  --pinstripe-opacity: 0.035;

  /* Shadows & Depth */
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(255, 255, 255, 0.04);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(255, 255, 255, 0.08);
  --modal-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);

  /* Hardware Simulators */
  --notch-bezel: #000000;
  --notch-bezel-rim: rgba(255, 255, 255, 0.16);
  --capsule-glass: rgba(20, 20, 26, 0.86);
  --capsule-border: rgba(255, 255, 255, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.06);
  --pill-bg-hover: rgba(255, 255, 255, 0.12);
  --pill-border: rgba(255, 255, 255, 0.10);

  /* Diff Highlighting */
  --diff-del-bg: rgba(255, 77, 88, 0.18);
  --diff-del-text: #FF6E76;
  --diff-ins-bg: rgba(48, 209, 88, 0.18);
  --diff-ins-text: #4CD964;

  /* =========================================================================
     Typography Scale & System Font Stacks
     ========================================================================= */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, -apple-system-headline, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --text-display: clamp(40px, 5.5vw, 76px);
  --text-h1: clamp(32px, 4vw, 54px);
  --text-h2: clamp(26px, 3.2vw, 40px);
  --text-h3: clamp(20px, 2.2vw, 24px);
  --text-body-lg: 18px;
  --text-body: 15px;
  --text-body-sm: 13px;
  --text-caption: 12px;
  --text-micro: 11px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.035em;
  --tracking-snug: -0.02em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.04em;
  --tracking-widest: 0.08em;

  /* =========================================================================
     8pt Modular Spacing Scale
     ========================================================================= */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout Boundaries */
  --container-max-width: 1280px;
  --container-wide-width: 1440px;
  --header-height: 64px;

  /* Corner Radius Hierarchy */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-card: 20px;
  --radius-notch: 23px;
  --radius-pill: 9999px;

  /* Timing & Motion */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================================
   Day Theme Variables — [data-theme="day"] (Daylight Paper & Fine Bond)
   =========================================================================== */
[data-theme="day"] {
  --bg-canvas: #F6F5F2;
  --bg-surface: #EDECE8;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F9F9FB;
  --bg-card-hover: #F2F1EC;
  --bg-card-active: #EAE8E2;
  --code-bg: #EBE9E4;

  /* Structural Hairlines & Borders */
  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 0, 0, 0.24);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-accent: rgba(0, 0, 0, 0.16);

  /* Typography Colors */
  --text-primary: #121214;
  --text-secondary: #63626C;
  --text-tertiary: #62616D;
  --text-inverse: #FFFFFF;

  /* Functional Chromatic Hardware Accents */
  --accent-crimson: #E03542;
  --accent-crimson-glow: rgba(224, 53, 66, 0.18);
  --accent-crimson-subtle: rgba(224, 53, 66, 0.08);

  --accent-amber: #D98200;
  --accent-amber-glow: rgba(217, 130, 0, 0.18);
  --accent-amber-subtle: rgba(217, 130, 0, 0.08);

  --accent-emerald: #248A3D;
  --accent-emerald-glow: rgba(36, 138, 61, 0.18);
  --accent-emerald-subtle: rgba(36, 138, 61, 0.08);

  --accent-blue: #0071E3;
  --accent-blue-subtle: rgba(0, 113, 227, 0.08);

  /* Architectural Grid Lines & Pinstripes */
  --grid-line: rgba(0, 0, 0, 0.04);
  --pinstripe-opacity: 0.025;

  /* Shadows & Depth */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  --modal-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);

  /* Hardware Simulators */
  --notch-bezel: #000000;
  --notch-bezel-rim: rgba(0, 0, 0, 0.22);
  --capsule-glass: rgba(240, 240, 243, 0.88);
  --capsule-border: rgba(0, 0, 0, 0.10);
  --pill-bg: rgba(0, 0, 0, 0.05);
  --pill-bg-hover: rgba(0, 0, 0, 0.09);
  --pill-border: rgba(0, 0, 0, 0.08);

  /* Diff Highlighting */
  --diff-del-bg: rgba(224, 53, 66, 0.12);
  --diff-del-text: #C4202D;
  --diff-ins-bg: rgba(36, 138, 61, 0.12);
  --diff-ins-text: #1E7433;
}
