/* ========================
   Global Variables
   ======================== */
:root {
  --bg: #0a0a0f;
  --surface: #151520;
  --text: #f2f2f2;
  --muted: #b0b3c0;
  --accent: #e10600;   /* Formula racing red */
  --secondary: #ffcc00; /* Highlight color */
  --radius: 12px;
  --transition: 0.2s ease;
}

/* ========================
   Reset & Base Styles
   ======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;   /* ensure full viewport height */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, #1a1a2e 100%);
  background-attachment: fixed; /* Keeps gradient consistent while scrolling */
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* ✅ ensures footer is pushed when content is short */
  line-height: 1.6;
}

/* ========================
   Layout
   ======================== */
header {
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--secondary);
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--secondary);
}

main {
  flex: 1;              /* ✅ fills space between header and footer */
  display: block;
  padding: 60px 20px;   /* breathing room */
}

footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========================
   Sections & Containers
   ======================== */
section {
  margin: 60px 0; /* spacing between sections */
}

.container {
  width: min(720px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 40px auto; /* spacing between stacked containers */
}

.container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225,6,0,.15);
  border: 1px solid rgba(225,6,0,.4);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .05em;
  font-size: 12px;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
}

h2 {
  margin: 20px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-family: 'Orbitron', sans-serif;
  color: var(--secondary);
}

p {
  margin: 0 auto 24px;
  max-width: 55ch;
  color: var(--muted);
  font-size: 16px;
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  transition: transform .1s ease, filter var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px rgba(225,6,0,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}
