/* KORYSOL — Tokenizace aktiv | Design tokens
 * Light SaaS landing with amber/gold accent
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* === BASE / NEUTRALS === */
  --bg-0: #ffffff;
  --bg-1: #fafaf7;        /* warm off-white section */
  --bg-2: #f4f3ee;        /* slightly warmer */
  --bg-3: #ebe9e0;        /* divider tone */
  --ink-0: #0b0b0c;       /* near-black headline */
  --ink-1: #18181b;       /* body strong */
  --ink-2: #3f3f46;       /* body */
  --ink-3: #71717a;       /* muted */
  --ink-4: #a1a1aa;       /* hint */
  --line: rgba(11,11,12,0.08);
  --line-strong: rgba(11,11,12,0.16);

  /* === DARK PANEL (used for hero showcase blocks) === */
  --dark-0: #0a0a0b;
  --dark-1: #131316;
  --dark-2: #1c1c20;
  --dark-3: #2a2a30;
  --dark-ink: #f4f4f5;
  --dark-ink-2: #a1a1aa;
  --dark-line: rgba(255,255,255,0.08);

  /* === ACCENT — AMBER / GOLD === */
  --amber-50:  #fff8eb;
  --amber-100: #ffefcc;
  --amber-200: #ffe2a3;
  --amber-300: #ffce6b;
  --amber-400: #ffb84d;   /* hero glow */
  --amber-500: #f5a623;   /* primary CTA */
  --amber-600: #d98a0e;   /* CTA hover / pressed */
  --amber-700: #a86606;
  --amber-800: #6b3f02;
  --amber-ink: #2a1700;   /* on-amber text */

  /* glow / aura colors for animated bg */
  --glow-amber: rgba(255, 184, 77, 0.55);
  --glow-amber-soft: rgba(255, 184, 77, 0.18);
  --glow-amber-faint: rgba(255, 184, 77, 0.06);

  /* === SEMANTIC === */
  --primary: var(--amber-500);
  --primary-hover: var(--amber-600);
  --primary-ink: var(--amber-ink);
  --success: #16a34a;
  --danger: #dc2626;

  /* === TYPOGRAPHY === */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* fluid type scale — clamps for responsive */
  --t-display: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);     /* hero h1 */
  --t-h1:      clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h2:      clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --t-h3:      clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --t-lead:    clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-xs:      0.75rem;
  --t-eyebrow: 0.75rem; /* uppercase label */

  /* weights */
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;
  --w-black: 800;

  /* tracking */
  --track-eyebrow: 0.14em;
  --track-tight: -0.02em;
  --track-display: -0.035em;

  /* line heights */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  /* === SPACING === */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* density modifier (tweakable) */
  --density: 1;
  --section-py: calc(var(--s-32) * var(--density));
  --container-px: clamp(20px, 4vw, 48px);
  --container-max: 1240px;

  /* === RADII === */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* === SHADOWS === */
  --sh-xs: 0 1px 2px rgba(11,11,12,0.04);
  --sh-sm: 0 2px 6px rgba(11,11,12,0.06), 0 1px 2px rgba(11,11,12,0.04);
  --sh-md: 0 8px 24px rgba(11,11,12,0.08), 0 2px 6px rgba(11,11,12,0.05);
  --sh-lg: 0 24px 60px rgba(11,11,12,0.12), 0 8px 18px rgba(11,11,12,0.06);
  --sh-xl: 0 40px 100px rgba(11,11,12,0.18), 0 12px 30px rgba(11,11,12,0.08);
  --sh-cta: 0 12px 30px rgba(217,138,14,0.35), 0 4px 10px rgba(217,138,14,0.25);
  --sh-cta-hover: 0 18px 40px rgba(217,138,14,0.45), 0 6px 14px rgba(217,138,14,0.30);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,0.6);

  /* === MOTION === */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.6,.0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 600ms;
  --dur-extra: 1200ms;
}

/* === DARK MODE OVERRIDES === */
[data-theme="dark"] {
  --bg-0: #0a0a0b;
  --bg-1: #111114;
  --bg-2: #16161a;
  --bg-3: #1f1f25;
  --ink-0: #f8f8f8;
  --ink-1: #ededf0;
  --ink-2: #c4c4ca;
  --ink-3: #8a8a93;
  --ink-4: #5a5a62;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --sh-xs: 0 1px 2px rgba(0,0,0,0.5);
  --sh-sm: 0 2px 6px rgba(0,0,0,0.4);
  --sh-md: 0 8px 24px rgba(0,0,0,0.5);
  --sh-lg: 0 24px 60px rgba(0,0,0,0.6);
  --sh-xl: 0 40px 100px rgba(0,0,0,0.7);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* === DENSITY VARIANT === */
[data-density="compact"] {
  --density: 0.6;
  --container-max: 1180px;
}
[data-density="airy"] {
  --density: 1.25;
}

/* === RESET-ish === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  color: var(--ink-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === SEMANTIC TYPE === */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: var(--w-black);
  letter-spacing: var(--track-display);
  line-height: var(--lh-tight);
  color: var(--ink-0);
  margin: 0;
  text-wrap: balance;
}
.display {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: var(--w-black);
  letter-spacing: var(--track-display);
  line-height: 0.95;
  color: var(--ink-0);
  margin: 0;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: var(--w-bold);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
  color: var(--ink-0);
  margin: 0;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-snug);
  color: var(--ink-0);
  margin: 0;
}
.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-normal);
  color: var(--ink-2);
  text-wrap: pretty;
}
p { margin: 0; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* highlight word — amber underline like the brand banner */
.hl {
  color: var(--amber-600);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.05em;
  height: 0.18em;
  background: linear-gradient(90deg, transparent, var(--amber-500) 12%, var(--amber-400) 88%, transparent);
  border-radius: 999px;
  filter: blur(0.2px);
  transform-origin: left;
  animation: hl-sweep 1.6s var(--ease-out) 0.4s both;
}
@keyframes hl-sweep {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
section { padding-block: var(--section-py); }
