/* ============================================================
   KITE RUNNER — style.css
   Variables · Reset · Base Typography
   ============================================================ */

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

/* ── CSS VARIABLES ── */
:root {
  /* Brand blues — extracted from SVG */
  --blue-bright:   #28ADFF;
  --blue-mid:      #1F9EDD;
  --blue-navy:     #2D7BBA;
  --blue-deep:     #206B9E;
  --blue-teal:     #1B9ACC;

  /* Light backgrounds */
  --bg-primary:    #f0f7ff;
  --bg-secondary:  #e4eff9;
  --bg-card:       #ffffff;
  --bg-card-hover: #eaf4ff;

  /* Text */
  --text-primary:  #0d1c2e;
  --text-secondary:#3a5068;
  --text-muted:    #7a99b8;

  /* Borders & accents */
  --border:        rgba(28, 130, 200, 0.18);
  --border-hover:  rgba(28, 130, 200, 0.45);
  --glow:          rgba(28, 130, 200, 0.12);
  --glow-strong:   rgba(28, 130, 200, 0.25);

  /* Typography */
  --font-display:  'Exo 2', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* ── BASE TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

p {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── UTILITY CLASSES ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 5rem);
}

.section-inner {
  padding: var(--space-xl) clamp(2rem, 5vw, 5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--blue-bright);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.section-title span {
  color: var(--blue-bright);
}

.highlight {
  color: var(--blue-bright);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.008;
  pointer-events: none;
  z-index: 0;
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }

/* ── SELECTION ── */
::selection {
  background: rgba(40, 173, 255, 0.25);
  color: var(--text-primary);
}
