/*
 * Khoshà Systems — Design Tokens
 * Source: khoshasystems.com (inferred from site; see README CAVEATS)
 * Fonts: Space Grotesk + Inter + JetBrains Mono via Google Fonts (substituted)
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────
   BASE COLOR PALETTE
───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --color-bg-base:        #0A0B14;
  --color-bg-surface:     #111220;
  --color-bg-card:        #181928;
  --color-bg-card-hover:  #1E1F30;
  --color-bg-elevated:    #222338;

  /* Border */
  --color-border:         #252638;
  --color-border-subtle:  #1C1D2C;
  --color-border-strong:  #363750;

  /* Accent / Brand Orange */
  --color-accent:         #E8622A;
  --color-accent-light:   #FF7F4E;
  --color-accent-dark:    #C94E1C;
  --color-accent-glow:    rgba(232, 98, 42, 0.15);
  --color-accent-glow-strong: rgba(232, 98, 42, 0.25);

  /* Text */
  --color-text-primary:   #FFFFFF;
  --color-text-secondary: #A8AABB;
  --color-text-muted:     #666880;
  --color-text-disabled:  #444558;
  --color-text-inverse:   #0A0B14;

  /* Semantic */
  --color-success:        #22C55E;
  --color-success-bg:     rgba(34, 197, 94, 0.1);
  --color-warning:        #F59E0B;
  --color-warning-bg:     rgba(245, 158, 11, 0.1);
  --color-error:          #EF4444;
  --color-error-bg:       rgba(239, 68, 68, 0.1);
  --color-info:           #3B82F6;
  --color-info-bg:        rgba(59, 130, 246, 0.1);

  /* ─────────────────────────────────────────
     TYPOGRAPHY
  ───────────────────────────────────────── */

  /* Font Families */
  --font-display:    'Space Grotesk', sans-serif;
  --font-body:       'Inter', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Font Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Line Heights */
  --lh-none:    1;
  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-normal:  1.5;
  --lh-relaxed: 1.625;
  --lh-loose:   2;

  /* Letter Spacing */
  --ls-tight:    -0.03em;
  --ls-snug:     -0.015em;
  --ls-normal:    0;
  --ls-wide:      0.05em;
  --ls-wider:     0.08em;
  --ls-widest:    0.15em;

  /* ─────────────────────────────────────────
     SPACING SCALE
  ───────────────────────────────────────── */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* ─────────────────────────────────────────
     BORDER RADIUS
  ───────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ─────────────────────────────────────────
     SHADOWS & ELEVATION
  ───────────────────────────────────────── */
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:      0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl:      0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-accent:  0 0 24px rgba(232, 98, 42, 0.2);
  --shadow-accent-strong: 0 0 40px rgba(232, 98, 42, 0.35);

  /* ─────────────────────────────────────────
     TRANSITIONS
  ───────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   350ms ease;

  /* ─────────────────────────────────────────
     LAYOUT
  ───────────────────────────────────────── */
  --container-max:  1200px;
  --container-pad:  clamp(1.5rem, 5vw, 4rem);
}

/* ─────────────────────────────────────────
   SEMANTIC ELEMENT STYLES
───────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

p {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

.label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
a:hover { opacity: 0.8; }

/* ─────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────── */
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-secondary{ color: var(--color-text-secondary); }
.bg-surface    { background: var(--color-bg-surface); }
.bg-card       { background: var(--color-bg-card); }
.border-subtle { border: 1px solid var(--color-border); }
.font-display  { font-family: var(--font-display); }
.font-mono     { font-family: var(--font-mono); }
