/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #050714;
  --color-surface: #0b0f23;
  --color-surface-alt: #121733;
  --color-text: #f5f5ff;
  --color-text-muted: #a1a6c9;
  --color-primary: #ff007a; /* neon magenta */
  --color-primary-soft: rgba(255, 0, 122, 0.16);
  --color-accent: #00f6ff; /* cyan accent */
  --color-success: #3dd68c;
  --color-warning: #f6c453;
  --color-danger: #ff4d6a;

  --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: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (px converted to rem, base 16px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows (soft neon vibes) */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
  --shadow-neon-primary: 0 0 16px rgba(255, 0, 122, 0.7);
  --shadow-neon-accent: 0 0 18px rgba(0, 246, 255, 0.6);

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

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

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

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

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  resize: vertical;
}

:focus:not(:focus-visible) {
  outline: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: radial-gradient(circle at top, #171c45 0, #050714 55%, #000000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 2.75rem);
  margin-bottom: var(--space-20);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-16);
}

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

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

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

strong,
b {
  font-weight: 600;
}

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}

/* ========================================================================== 
   Accessibility & Motion
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================== 
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1120px;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* 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;
}

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

.justify-center {
  justify-content: center;
}

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

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

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

/* Spacing utilities (common) */

.mt-24 {
  margin-top: var(--space-24);
}

.mt-40 {
  margin-top: var(--space-40);
}

.mb-24 {
  margin-bottom: var(--space-24);
}

.mb-40 {
  margin-bottom: var(--space-40);
}

.py-40 {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

.py-64 {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(255, 0, 122, 0.28), rgba(0, 246, 255, 0.16));
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.4);
}

/* 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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #ff8acb 0, var(--color-primary) 40%, #850040 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-neon-primary);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.btn-secondary {
  background: rgba(9, 12, 35, 0.9);
  color: #ffffff;
  border-color: rgba(0, 246, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-neon-primary), 0 0 24px rgba(255, 0, 122, 0.6);
}

.btn-primary:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(18, 24, 68, 0.95);
  box-shadow: var(--shadow-neon-accent);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
}

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

.btn-icon {
  padding-inline: 0.9rem;
}

/* Inputs & Form Controls */

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(2, 4, 18, 0.9);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base),
              transform var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(161, 166, 201, 0.8);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 246, 255, 0.4), var(--shadow-neon-accent);
  background: rgba(4, 7, 27, 0.98);
}

.input--error {
  border-color: var(--color-danger);
}

.input--error:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 77, 106, 0.6), var(--shadow-md);
}

label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.form-field {
  margin-bottom: var(--space-16);
}

.form-helper {
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-helper--error {
  color: var(--color-danger);
}

/* Card */

.card {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(255, 0, 122, 0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0, 246, 255, 0.16), transparent 60%),
              linear-gradient(135deg, rgba(8, 12, 40, 0.98), rgba(2, 5, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-24);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

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

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

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

.card-title {
  font-size: var(--text-xl);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Navigation (basic skeleton for NEON VENUE HOUSE) */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(5, 7, 20, 0.96), rgba(5, 7, 20, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
}

.nav-link {
  position: relative;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  font-size: 0.72rem;
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #ffffff !important;
}

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

.nav-link--active {
  color: #ffffff;
}

/* Hero helper (for nightlife / casino vibe sections) */

.hero {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.hero-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.6rem, 3.4vw + 1.4rem, 3.8rem);
  line-height: 1.08;
  margin-bottom: var(--space-16);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-lead {
  max-width: 32rem;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.hero-actions {
  margin-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .navbar-inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .hero {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
}
