/* ============================================================
   TuneX — core.css
   Variables, reset, typography, animations
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #0a0e14;
  --bg-2: #1a1f2e;
  --bg-3: #0f1320;
  --bg-elev: #232938;
  --bg-card: #232938;

  /* Lines */
  --line: #2a3344;
  --line-soft: #1f2735;

  /* Text */
  --text: #e1e7ef;
  --text-dim: #9ba8bf;
  --text-faint: #7a8499;
  --text-muted: #4a5468;

  /* Brand */
  --red: #a52a2a;
  --red-bright: #c63838;
  --red-soft: rgba(165, 42, 42, 0.12);
  --red-dim: rgba(165, 42, 42, 0.4);

  --gold: #d4a64a;
  --green: #10b981;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.6s ease;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

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

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

ul, ol {
  list-style: none;
}

/* === BACKGROUND === */
.circuit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}
.circuit-bg svg {
  width: 100%;
  height: 100%;
}
.trace {
  fill: none;
  stroke: var(--red);
  stroke-width: 1;
  opacity: 0.3;
}
.trace-pad {
  fill: var(--red);
  opacity: 0.5;
}

@keyframes trace-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}
.trace-pulse { animation: trace-pulse 4s ease-in-out infinite; }
.trace-pulse-2 { animation: trace-pulse 5s ease-in-out infinite 1s; }
.trace-pulse-3 { animation: trace-pulse 6s ease-in-out infinite 2s; }

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(165, 42, 42, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* === CONTAINER === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* === TYPOGRAPHY === */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title em {
  color: var(--red-bright);
  font-weight: 700;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.7;
  margin: 16px auto 0;
}

.text-center {
  text-align: center;
}

/* === COLORS === */
.red { color: var(--red); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.dim { color: var(--text-dim); }

/* === SECTIONS === */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-tight {
  padding: 60px 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .section { padding: 70px 0; }
  .container { padding: 0 16px; }
}
