/* ===== css/tokens.css =====
 * Design tokens shared across light-theme pages (marketing landing + subpages).
 * Includes :root (dark default for tech offshoot), [data-theme="light"] tokens,
 * reset/base, typography (h1-h4), containers, section commons.
 * Per Straid Brand Kit 2026-05-12: light theme is PRIMARY for marketing.
 */

/* ===== Thesis B tokens ===== */
:root {
  /* Default = dark (automation will use root) */
  --bg-main: #000;
  --text-h: #E8E8ED;
}
[data-theme="light"] {
  --bg-main:        #FFFFFF;
  --bg-panel:       #F8F9FC;
  --bg-elevated:    #F0F2F8;
  --bg-floating:    #E8EBF2;

  --text-h:         #0F172A;
  --text-body:      #475569;
  --text-muted:     rgba(71, 85, 105, 0.85);
  --text-faint:     rgba(71, 85, 105, 0.55);

  --brand-blue:        #0075FF;
  --brand-blue-rgb:    0, 117, 255;
  --brand-blue-hover:  #1F5BD0;
  --brand-blue-subtle: rgba(0, 117, 255, 0.06);
  --brand-blue-soft:   rgba(0, 117, 255, 0.12);
  --brand-indigo:      #4338CA;
  --brand-success:     #00C27A;

  --accent: var(--brand-blue);
  --accent-hover: var(--brand-blue-hover);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.07);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-32: 128px;
  /* Canonical breakpoints (CSS vars cannot be used in @media; documented here):
     600px  = phone
     768px  = tablet portrait  -> PROCESS scroll/static swap (paired with JS min-width:769px)
     900px  = tablet landscape -> STRUCTURAL: funnel swap, nav, hero-visual, grids
     1140px = content cap (default tier)   1320px = wide cap (homepage band)
     Near-duplicates retired toward these: 700 -> phone tier (mini-hero), 800 -> 768, 980/1023 -> 900/1140. */

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms; --duration-base: 220ms; --duration-slow: 420ms;
  /* --transition-base: duration + easing pair. Use as: transition: <property> var(--transition-base). NIE używać bez explicit property prefix (zakaz transition: all per BRAND-KIT.md). */
  --transition-base: var(--duration-base) var(--ease-standard);

  --font-display: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Canonical content tiers (shared fluid gutter via --page-padding) */
  --w-narrow:  760px;   /* prose / sec-header */
  --w-default: 1140px;  /* standard content grid */
  --w-wide:    1320px;  /* full marketing band */
  /* Aliases kept for back-compat (subpages.css + other rules reference these) */
  --content-max: var(--w-default);
  --homepage-max: var(--w-wide);
  /* Fluid horizontal gutter: ~20px phone, 40px ceiling from ~889px up */
  --page-padding: clamp(20px, 4.5vw, 40px);
  /* Fluid vertical section rhythm: 56px phone, scales to the familiar 96px ceiling.
     Caps at 96 (not higher) so large desktops do not grow inter-section voids. */
  --section-y: clamp(56px, 8vw, 96px);
}

/* ===== Reset + base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-feature-settings: "cv01", "ss03"; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-h);
  background: var(--bg-main);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-h);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.018em; line-height: 1.2; }
h4 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
p { color: var(--text-body); line-height: 1.7; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 600; color: var(--text-h); }

/* Inline data treatment */
.data {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-blue);
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

/* ===== Containers ===== */
.container-wide {
  width: 100%;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.container {
  width: 100%;
  max-width: var(--w-default);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.container-narrow {
  width: 100%;
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ===== Section common ===== */
section { padding: var(--section-y) 0; position: relative; }
/* Section-join utilities: apply to the 2nd of two stacked sections that read as a void.
   Use sparingly (identified per-pair), not blanket. */
.section--tight { padding-top: clamp(28px, 4vw, 56px); }
.section--flush-top { padding-top: 0; }
.sec-header {
  max-width: var(--w-narrow);
  margin-bottom: var(--space-16);
}
.sec-header.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.sec-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-muted);
  opacity: 0.18;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
  user-select: none;
}
.sec-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
  display: inline-block;
}
.sec-subtitle {
  margin-top: var(--space-3);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.sec-header.center .sec-subtitle { margin-left: auto; margin-right: auto; }

