/* =========================================================================
   AltTune Design System — Colors & Type
   Tokens for typography and color, both base + semantic.
   ========================================================================= */

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Futura is the brand display font ("alt"-style headings). The original .otf
   files we received were empty (0 bytes). We substitute Google Fonts'
   "Jost" — a geometric sans modeled on Futura that ships with the right
   weight/feel — and flag the substitution in README.md.
   For closer Futura proxies, "Futura PT" (Adobe) or "Spartan" can also be used. */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700;800;900&display=swap');

:root {
  /* ----- BRAND COLORS (from Alt Tune Style Guide) ----- */
  --performance-orange:   #F26921;   /* Pantone Orange 021 C — CTAs, accents, gauge */
  --performance-orange-700:#C9501A;  /* hover / pressed */
  --performance-orange-300:#F69159;  /* subdued accent */
  --performance-orange-100:#FDE6D7;  /* tinted bg */

  --rubber-black:         #050505;   /* Deep black — primary text & dark surfaces */
  --rubber-black-90:      #1a1a1a;
  --rubber-black-70:      #4a4a4a;
  --rubber-black-50:      #8a8a8a;

  --surface-dark:         #050505;   /* Primary dark surface — used on workshop card, footer, hero, etc. */
  --surface-dark-2:       #0d0d0d;   /* slightly lighter — secondary dark surface for stacks/cards on the dark */

  --steel-silver:         #D9D8D8;   /* Pantone Cool Gray 1 C — neutral surface, dividers */
  --steel-silver-200:     #E8E7E7;
  --steel-silver-100:     #F2F1F1;
  --steel-silver-50:      #F8F7F7;

  --pure-white:           #FFFFFF;

  /* Semantic surfaces */
  --bg-default:    var(--pure-white);
  --bg-subtle:     var(--steel-silver-100);
  --bg-muted:      var(--steel-silver);
  --bg-inverse:    var(--surface-dark);
  --bg-accent:     var(--performance-orange);

  /* Foreground / text */
  --fg-1: var(--rubber-black);             /* primary text on light */
  --fg-2: var(--rubber-black-70);          /* secondary text */
  --fg-3: var(--rubber-black-50);          /* tertiary, captions */
  --fg-on-dark-1: var(--pure-white);       /* primary text on dark */
  --fg-on-dark-2: var(--steel-silver);     /* secondary text on dark */
  --fg-accent: var(--performance-orange);

  /* Borders */
  --border-1: var(--steel-silver);
  --border-2: var(--steel-silver-200);
  --border-strong: var(--rubber-black);

  /* Status (derived; not in original brand book — flagged in README) */
  --success: #2F8F4F;
  --warning: #E0A91A;
  --danger:  #C8341C;
  --info:    #3A7DBE;

  /* ----- TYPE FAMILIES ----- */
  --font-display: 'Jost', 'Futura PT', 'Futura', 'Trebuchet MS', sans-serif;
  --font-sans:    'Proxima Nova', 'Proxima Nova Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ----- TYPE SCALE -----
     Display = Futura/Jost (geometric, condensed letter-spacing on big sizes).
     Body = Proxima Nova. */
  --fs-display-1: 88px;   /* hero, 1-2 words */
  --fs-display-2: 64px;
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-h5: 18px;
  --fs-eyebrow: 13px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  /* ----- SPACING / RADII / SHADOWS ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ----- LAYOUT TOKENS -----
     Single source of truth for horizontal gutter and vertical section rhythm.
     Every section container (.at-section-inner / .at-container) reads
     --at-gutter; every section reads --at-section-y. Page-level CSS must
     NEVER hardcode `.at-section { padding: X Y }` — override the token instead. */
  --at-gutter:    32px;
  --at-section-y: var(--space-9); /* 96px */
  --at-container-max: 1440px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows are restrained — brand reads industrial/automotive, not soft SaaS */
  --shadow-1: 0 1px 2px rgba(46, 45, 43, 0.08);
  --shadow-2: 0 4px 12px rgba(46, 45, 43, 0.10);
  --shadow-3: 0 12px 32px rgba(46, 45, 43, 0.16);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Transitions */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

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

html, body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-default);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display-1, .display-2, h1, h2, h3, h4, h5, .eyebrow {
  font-family: var(--font-display);
  color: var(--fg-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  margin: 0;
}

.display-1 { font-size: var(--fs-display-1); font-weight: 800; letter-spacing: -0.03em; }
.display-2 { font-size: var(--fs-display-2); font-weight: 800; letter-spacing: -0.025em; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; line-height: var(--lh-snug); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-accent);
  line-height: 1;
}

p, .body { font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-1); margin: 0; }
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-normal); }
.body-sm { font-size: var(--fs-body-sm); line-height: var(--lh-normal); color: var(--fg-2); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--fg-3); letter-spacing: 0.02em; }

code, .code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--steel-silver-100);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--fg-1);
}

/* Selection */
::selection { background: var(--performance-orange); color: var(--pure-white); }

/* =========================================================================
   LAYOUT TOKENS — responsive overrides
   Single source of truth for horizontal page gutters and vertical section
   rhythm. Page CSS must consume these tokens instead of hardcoding paddings.
   ========================================================================= */
@media (max-width: 1100px) {
  :root { --at-gutter: 24px; --at-section-y: 80px; }
}
@media (max-width: 720px) {
  :root { --at-gutter: 20px; --at-section-y: 34px; }
}
@media (max-width: 380px) {
  :root { --at-gutter: 16px; --at-section-y: 24px; }
}

/* Canonical container rules. .at-section keeps vertical padding only;
   horizontal padding lives on the inner container so background colors
   bleed full-width while content stays gutter-aligned. */
.at-section       { padding-block: var(--at-section-y); padding-inline: 0; }
.at-section--simple { padding-block: calc(var(--at-section-y) * 0.66); }
/* Compact band — much tighter vertical rhythm (e.g. the feature rows). */
.at-section--features { padding-block: calc(var(--at-section-y) * 0.34); }
.at-section.tight   { padding-block: 56px; }
.at-section-inner,
.at-container { max-width: var(--at-container-max); margin-inline: auto; padding-inline: var(--at-gutter); }
.at-section-inner.wide { max-width: 1440px; }
