/* =========================================
   VARIABLES
   ========================================= */
:root {
  /* Colors */
  --color-bg: #050505;
  --color-bg-elevated: #0b0b0b;
  --color-bg-soft: #111111;
  --color-bg-graphite: #181818;
  --color-text: #f5f5f5;
  --color-text-muted: #9b9b9b;
  --color-border-subtle: #292929;

  --color-primary: #9eff00; /* acid / salad green */
  --color-primary-soft: rgba(158, 255, 0, 0.12);
  --color-primary-strong: #baff33;

  --color-success: #4ade80;
  --color-warning: #facc15;
  --color-danger: #f97373;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --font-size-5xl: 3.25rem;  /* 52px */
  --font-size-6xl: 4rem;     /* 64px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (heavy, brutal, directional) */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.85);
  --shadow-neon: 0 0 0 1px rgba(158, 255, 0, 0.35), 0 0 22px rgba(158, 255, 0, 0.18);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1160px;
  --header-height: 76px;
}

/* =========================================
   RESET / NORMALIZE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   BASE STYLES
   ========================================= */
body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Brutalist scrollbars (desktop) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-soft);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--color-bg-soft);
}

*::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--font-size-4xl), 4vw, var(--font-size-6xl));
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(var(--font-size-3xl), 3vw, var(--font-size-5xl));
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

h6 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

strong {
  font-weight: 700;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-primary-strong);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================================
   ACCESSIBILITY FOCUS STYLES
   ========================================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Layout helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
.py-12 { padding-top: var(--space-12) !important; padding-bottom: var(--space-12) !important; }

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

.text-right {
  text-align: right !important;
}

.uppercase {
  text-transform: uppercase !important;
}

.text-muted {
  color: var(--color-text-muted) !important;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   COMPONENTS – BUTTONS
   ========================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 0;
  border: 1px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-soft), rgba(0, 0, 0, 0.9));
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(158, 255, 0, 0.35);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.btn:hover {
  background: linear-gradient(135deg, rgba(158, 255, 0, 0.18), #000000);
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong), 0 0 32px rgba(158, 255, 0, 0.2);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-subtle);
  box-shadow: none;
  color: var(--color-text-muted);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-neon);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
}

/* =========================================
   COMPONENTS – FORM ELEMENTS
   ========================================= */
.input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--color-bg-soft);
  border-radius: 0;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: 1.4;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(158, 255, 0, 0.5);
}

input[disabled],
textarea[disabled],
select[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
}

/* =========================================
   COMPONENTS – CARD / PANELS
   ========================================= */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(158, 255, 0, 0.06), transparent 55%),
              var(--color-bg-elevated);
  border-radius: 0;
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(158, 255, 0, 0.25);
  border-left: 1px solid rgba(158, 255, 0, 0.12);
  mix-blend-mode: screen;
  pointer-events: none;
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* =========================================
   HEADER / NAVIGATION BASE STRUCTURE
   (layout-specific styles can extend this)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(5, 5, 5, 0.88));
  border-bottom: 1px solid rgba(158, 255, 0, 0.14);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-4);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.nav-link {
  position: relative;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(158, 255, 0, 0.7);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--color-primary);
}

/* Burger / mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(158, 255, 0, 0.35);
  background: radial-gradient(circle at 30% 0, rgba(158, 255, 0, 0.15), rgba(0, 0, 0, 0.9));
  box-shadow: var(--shadow-soft);
}

.nav-toggle-bar {
  width: 18px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-2.5px) rotate(-45deg);
}

.site-nav-mobile {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: radial-gradient(circle at top, rgba(158, 255, 0, 0.08), #050505);
  padding: var(--space-6) var(--space-4) var(--space-8);
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 40;
  overflow-y: auto;
}

.site-nav-mobile.is-open {
  display: flex;
}

.site-nav-mobile a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav-mobile {
    display: none !important;
  }
}

/* =========================================
   HERO SHARED BASICS (IMAGE BACKGROUND)
   ========================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  color: var(--color-text);
  display: flex;
  align-items: stretch;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-bg img,
.hero-bg picture,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(158, 255, 0, 0.24), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(158, 255, 0, 0.16), transparent 50%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.9), #020202 50%, #020202 100%);
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  display: flex;
  align-items: center;
}

.hero-panel {
  max-width: 720px;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.98));
  border-radius: 0;
  border: 1px solid rgba(158, 255, 0, 0.2);
  box-shadow: var(--shadow-strong);
  padding: var(--space-6);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(158, 255, 0, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(158, 255, 0, 0.85);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 255, 0, 0.45);
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
  }

  .hero-panel {
    padding: var(--space-4);
  }

  .hero-title {
    letter-spacing: 0.04em;
  }
}

/* =========================================
   FOOTER BASE
   ========================================= */
.site-footer {
  border-top: 1px solid rgba(158, 255, 0, 0.18);
  background: radial-gradient(circle at top, rgba(158, 255, 0, 0.06), #050505);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* =========================================
   MISC / BRUTALIST ACCENTS
   ========================================= */
.hr-accent {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(158, 255, 0, 0.1), rgba(158, 255, 0, 0.7), rgba(158, 255, 0, 0.05));
  box-shadow: 0 0 20px rgba(158, 255, 0, 0.5);
  margin: var(--space-6) 0;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 255, 0, 0.55);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}
