/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color palette - dark blue-violet cinematic theme */
  --color-bg-body: #050818;
  --color-bg-elevated: rgba(10, 14, 35, 0.92);
  --color-bg-glass: rgba(12, 17, 40, 0.7);
  --color-bg-glass-strong: rgba(12, 17, 40, 0.9);

  --color-text: #f5f7ff;
  --color-text-muted: #a6b0d8;
  --color-text-soft: #c3c8e5;

  --color-primary: #4d5dff; /* electric blue */
  --color-primary-soft: #5964ff;
  --color-primary-glow: rgba(77, 93, 255, 0.7);

  --color-accent: #a855ff; /* royal violet */
  --color-accent-soft: rgba(168, 85, 255, 0.7);

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

  --color-border-subtle: rgba(148, 163, 184, 0.28);
  --color-border-strong: rgba(148, 163, 184, 0.45);
  --color-silver: #d0d6f5;

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

  /* Gradients & glows */
  --gradient-page: radial-gradient(circle at top left, #1a1f4d 0, transparent 55%),
                   radial-gradient(circle at bottom right, #3b1b59 0, transparent 60%),
                   radial-gradient(circle at top right, #004e92 0, transparent 55%),
                   #050818;

  --gradient-card: linear-gradient(135deg, rgba(25, 33, 88, 0.92), rgba(17, 24, 59, 0.9));

  --gradient-accent: linear-gradient(120deg, #4d5dff, #a855ff);

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 35px rgba(77, 93, 255, 0.6);
  --shadow-glow-violet: 0 0 35px rgba(168, 85, 255, 0.55);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem;   /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 1.875rem;/* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem;    /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Transitions & motion */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: 20px;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
}

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

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

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

ul {
  list-style: none !important;
  padding-left: 0;
}

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

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: var(--gradient-page);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 3.2rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  margin-bottom: var(--space-2);
}

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

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

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

/* Links */
a {
  position: relative;
  transition: color var(--transition-base), opacity var(--transition-fast);
}

a:hover {
  color: #fff !important;
}

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

/* ========================================================================
   Accessibility
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.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;
}

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

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--tight {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Flex 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-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

/* Grid helpers */
.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: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.glass-layer {
  background: var(--color-bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-border-subtle);
}

/* Hero center alignment helper for all pages */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ========================================================================
   Components
   ======================================================================== */

/* Header / Navigation - dark glass navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(120deg, rgba(5, 8, 24, 0.8), rgba(9, 12, 36, 0.8));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-silver);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 0 30px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.nav-link--active {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow-violet);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--gradient-accent);
  color: #ffffff;
  border: 1px solid rgba(226, 232, 255, 0.4);
  box-shadow: 0 0 30px rgba(77, 93, 255, 0.6);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.nav-cta:hover {
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-primary);
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-silver);
  margin: 2px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-glass-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    transform-origin: top center;
  }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 255, 0.35);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base),
    opacity var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.65);
}

.btn-primary:hover {
  color: #ffffff !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-primary);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text-soft);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 30px rgba(148, 163, 184, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.9);
}

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

/* Inputs / Forms */
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: 0.95rem;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form-control:focus-visible {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.9), 0 0 30px rgba(37, 99, 235, 0.45);
  background: rgba(15, 23, 42, 1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-danger);
}

/* Card - glassmorphism */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--gradient-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(77, 93, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.85);
}

.card:hover::before {
  opacity: 1;
}

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

.card-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Hero badge / label helper */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--color-silver);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.28));
  border: 1px solid rgba(191, 219, 254, 0.4);
}

/* Cinematic banner wrapper for heroes */
.hero-banner {
  position: relative;
  width: 100%;
  margin-top: var(--space-6);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 55%),
              radial-gradient(circle at bottom, rgba(168, 85, 255, 0.25), transparent 55%),
              linear-gradient(135deg, #020617, #020617 40%, #020617 60%, #020617 100%);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.95);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.16), transparent 50%),
              radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.2), transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

/* Atmospheric floating card helper for event formats */
.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.8rem;
  color: var(--color-text-soft);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.95);
}

/* Status / tag chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--color-text-soft);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.chip--success {
  border-color: rgba(74, 222, 128, 0.7);
  color: #bbf7d0;
}

.chip--info {
  border-color: rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
}

/* Simple fade / slide animation helpers for scroll effects */
.animate-fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms ease-out,
    transform 600ms ease-out;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   Tables (for info-only explanations)
   ======================================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 70%);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: #ffffff !important;
}

/* ========================================================================
   Responsive tweaks
   ======================================================================== */
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

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

  h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.6rem, 4.2vw, 2.1rem);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .btn {
    width: 100%;
  }
}

p,
a,
li,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn,.button{
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.35;
}