/* ============================================================
   RunR Landing — base.css
   Reset, typography, palette, layout primitives
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-elev: #111827;
  --bg-soft: #0f172a;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  --accent: #f97316;
  --accent-soft: #fb923c;
  --grad-1: #FFB347;
  --grad-2: #FF8C42;
  --grad-3: #E63946;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #fbbf24;
  --info: #38bdf8;
  --purple: #a78bfa;
  --grad-r: linear-gradient(135deg, var(--grad-1), var(--grad-2) 50%, var(--grad-3));

  --max-w: 1300px;
  --radius: 12px;
  --radius-lg: 16px;
  --pad-section: clamp(60px, 8vw, 100px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 700px at 12% -8%, rgba(255,140,66,0.13), transparent 60%),
    radial-gradient(ellipse 800px 600px at 88% 108%, rgba(230,57,70,0.10), transparent 60%);
  background-attachment: fixed;
}

body {
  background: transparent;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Fixed full-viewport animated background canvas (bg.js) */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── CAM BLUR OVERLAY ────────────────────────────────────
   Tüm viewport'u kapsayan frosted-glass katmanı.
   Arka plandaki tüm animasyonların (bg.js + html gradient'ler)
   üzerine cam efekti — yazılar rahat okunsun, derinlik hissi kalsın. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(10, 14, 26, 0.32);
  backdrop-filter: blur(7px) saturate(135%);
  -webkit-backdrop-filter: blur(7px) saturate(135%);
  pointer-events: none;
}

/* Content sits above bg canvas + blur layer */
.nav, .hero, .section, .footer, .modal-backdrop, .toast, .marquee {
  position: relative;
  z-index: 1;
}
.nav { z-index: 100; }
.modal-backdrop { z-index: 200; }
.toast { z-index: 300; }

::selection { background: rgba(249, 115, 22, 0.35); color: #fff; }

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

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

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

input, textarea, select {
  font: inherit; color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(64px, 12vw, 156px); letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 6px; }
h4 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }

.r-grad {
  background: var(--grad-r);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Layout primitives */
.section {
  padding: var(--pad-section) 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 700px;
  margin: 12px auto 0;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 5px 14px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  margin-bottom: 14px;
  animation: eyebrow-pulse 2.6s ease-in-out infinite;
}

/* ═══ MARQUEE BAR (yatay scroll, yırtıcı brand strip) ═══ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent 0%, rgba(249,115,22,0.04) 50%, transparent 100%);
  white-space: nowrap;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: marquee-x 38s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  /* text-transform: uppercase kullanılmıyor — TR'de "Knative" → "KNATİVE" (dotted İ)
     bozulmasına yol açıyor. İçerik zaten büyük harf yazılıyor. */
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 36px;
}
.marquee-item::after {
  content: '★';
  color: var(--accent);
  font-size: 12px;
}
.marquee-item.hot { color: var(--accent); text-shadow: 0 0 18px rgba(249,115,22,0.5); }

/* ═══ SECTION NUMBER (big watermark) ═══ */
.section-head {
  position: relative;
}
.section-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -36px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  font-family: ui-monospace, monospace;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 115, 22, 0.18);
  text-stroke: 1px rgba(249, 115, 22, 0.18);
  letter-spacing: -0.05em;
  line-height: 1;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1100px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .g6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g6 { grid-template-columns: repeat(2, 1fr); }
}

.center { text-align: center; }
.dim { color: var(--text-dim); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: 'Courier New', ui-monospace, monospace; }

/* Tag chip */
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
  border: 1px solid var(--border-strong);
}

/* Stats row */
.stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.stat {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-width: 140px;
  text-align: center;
}
.stat .num {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  background: var(--grad-r);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
