/* ==========================================================================
   RunKash Design System — Editorial Modern Architecture Theme
   Inspired by clean, minimalist, high-end Swiss/Nordic layout aesthetics
   ========================================================================== */

:root {
  /* Core Palette — Minimalist Monochrome & Architectural Tones */
  --bg-page: #f6f7f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f0f1f4;
  --bg-dark-hero: #171b23;
  
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --text-white: #ffffff;

  /* UI Tokens */
  --border-light: #e5e7eb;
  --border-card: #e5e7eb;
  --border-dark: #272c38;

  --accent-black: #111827;
  --accent-black-hover: #1f2937;
  --accent-badge-gray: #717d8a;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hero: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Radii */
  --radius-pill: 9999px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-hero: 34px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;

  --max-width: 1220px;
  --header-height: 80px;

  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Browser Surface Theming */
::selection {
  background-color: var(--accent-black);
  color: var(--text-white);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent-black);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Tabular Numerals for metrics, counters, and calculator */
.stat-big-number,
.calc-result-number,
.calc-currency-large,
.sim-metric-val,
.roi-metric-num,
.proto-stat-num {
  font-variant-numeric: tabular-nums;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  color: var(--text-muted);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header-left {
  max-width: 600px;
  margin-bottom: 2.75rem;
}

.section-heading-sm {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-black);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
