/*
 * base.css — CSS variables, reset, body, noise texture
 * Stadias.in
 */

:root {
  --steel: #1a1f2e;
  --concrete: #2c2f3a;
  --rust: #c0392b;
  --amber: #e67e22;
  --iron: #8d99ae;
  --white: #f0f0f0;
  --gold: #d4a847;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--steel);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 12px; height: 12px;
  background: var(--rust);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
  transform: translate(-12px, -12px);
}

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

/* Shared section helpers */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--rust);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.section-label::before {
  content: ''; width: 40px; height: 1px;
  background: var(--rust);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--rust);
  color: var(--white);
  border: none; padding: 16px 44px;
  cursor: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #e74c3c; transform: translateY(-2px); }
.btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(240,240,240,0.25);
  padding: 16px 44px;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Button loading state */
.btn-primary.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.btn-primary.loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
