:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #e30613;
  --primary-foreground: #ffffff;
  --secondary: #1a1a1a;
  --secondary-foreground: #ffffff;
  --accent: #e30613;
  --accent-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #e30613;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

[id] {
  scroll-margin-top: 6rem;
}

.text-hero-xl {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

.text-section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.92) 0%, rgba(18, 18, 18, 0.7) 40%, rgba(18, 18, 18, 0.55) 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%, rgba(18, 18, 18, 0.15) 50%, rgba(18, 18, 18, 0.75) 100%),
    linear-gradient(135deg, rgba(26, 26, 26, 0.2) 40%, rgba(227, 6, 19, 0.28) 100%);
}

.red-gradient {
  background: linear-gradient(135deg, #e30613 0%, #b50510 60%, #8a0309 100%);
}

.dark-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 50%, #1a1a1a 100%);
}

.elite-gradient {
  background:
    radial-gradient(circle at 20% 0%, rgba(227, 6, 19, 0.35) 0%, transparent 45%),
    linear-gradient(150deg, #1a1a1a 0%, #241414 45%, #0e0e0e 100%);
}

.blob-red {
  background: radial-gradient(circle, rgba(227, 6, 19, 0.16) 0%, transparent 70%);
  filter: blur(60px);
}

.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.grid-lines {
  background-image:
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
  background-size: 80px 80px;
}


.reveal-up,
.reveal-left {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-up.is-visible,
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }


.card-hover {
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    outline-color 0.35s ease;
  transition-delay: 0s;
}

.card-hover:hover {
  transform: translateY(-6px);
  outline-color: var(--primary);
  box-shadow: 0 24px 50px -12px rgba(227, 6, 19, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .card-hover:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up,
  .reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-ping,
  .animate-pulse,
  .ping-ring { animation: none !important; }
}


.ping-ring {
  animation: shine-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes shine-ping {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.no-scroll {
  overflow: hidden;
}

.modal-backdrop {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}

#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#site-header.is-scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}


.legal {
  color: #4b5563;
}

.legal > section {
  scroll-margin-top: 7rem;
}

.legal > section + section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.legal h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.9rem;
  margin-bottom: 0.55rem;
}

.legal h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}

.legal p {
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0 0 1.15rem;
}

.legal li {
  line-height: 1.7;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.legal strong {
  color: var(--foreground);
  font-weight: 700;
}

.legal a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: #b50510;
}

.toc-link {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted-foreground);
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-link:hover {
  color: var(--foreground);
  border-left-color: var(--primary);
}

.toc-link.is-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}
