/* ===========================================
   Cheers NYC Marketing Site
   Editorial Nightlife Design System
   =========================================== */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Background Colors (Deep → Elevated) */
  --bg-primary: #0a090d;
  --bg-secondary: #14121c;
  --bg-tertiary: #1c1924;
  --bg-elevated: #262131;
  --bg-feature: #30293c;

  /* Text Colors (Cream Spectrum) */
  --text-primary: #faf7f2;
  --text-secondary: #b8b3ac;
  --text-tertiary: #7a756e;
  --text-muted: #4d4843;
  --text-inverse: #09080b;
  --text-highlight: #fff8e7;

  /* Brand Colors (Amber/Gold Spectrum) */
  --brand-primary: #e8a849;
  --brand-primary-dark: #c48a2d;
  --brand-primary-light: #f4c76e;
  --brand-secondary: #d4654a;
  --brand-accent: #8b6b4a;
  --brand-glow: rgba(232, 168, 73, 0.125);

  /* Jewel Tones */
  --amethyst: #9b7bb8;
  --amethyst-light: #b99bd4;
  --amethyst-dark: #7a5a9e;
  --emerald: #4a9e7b;
  --emerald-light: #6ec99c;
  --rose: #c97b8b;
  --rose-light: #e8a0b0;
  --sapphire: #6b8bc9;
  --champagne: #d4c4a0;

  /* Status Colors */
  --error: #e06b7d;
  --error-bg: #2d1f24;
  --success: #6ec99c;
  --success-bg: #1f2d28;
  --info: #7da3d4;

  /* Border Colors */
  --border-primary: #2d2838;
  --border-secondary: #403850;
  --border-focus: #e8a849;
  --border-subtle: #201c28;
  --border-decorative: #3d3650;

  /* Typography Scale */
  --font-micro: 9px;
  --font-xs: 11px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 18px;
  --font-xl: 22px;
  --font-xxl: 32px;
  --font-xxxl: 44px;
  --font-display: 56px;
  --font-hero: 72px;
  --font-mega: 96px;
  --font-editorial: 120px;

  /* Letter Spacing */
  --tracking-tightest: -3px;
  --tracking-tighter: -1.5px;
  --tracking-tight: -0.5px;
  --tracking-normal: 0;
  --tracking-wide: 1px;
  --tracking-wider: 2px;
  --tracking-widest: 4px;
  --tracking-editorial: 8px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 36px;
  --space-xxxl: 56px;
  --space-xxxxl: 80px;
  --space-huge: 100px;
  --space-massive: 140px;
  --space-editorial: 200px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-full: 9999px;

  /* Animation Timing */
  --anim-instant: 80ms;
  --anim-fast: 180ms;
  --anim-normal: 280ms;
  --anim-slow: 420ms;
  --anim-dramatic: 600ms;
  --anim-editorial: 800ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-dramatic: 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px var(--brand-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-md);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utilities */
.eyebrow {
  font-size: var(--font-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-editorial);
  text-transform: uppercase;
  color: var(--brand-primary);
}

.headline-mega {
  font-size: clamp(var(--font-hero), 10vw, var(--font-mega));
  font-weight: 900;
  letter-spacing: var(--tracking-tightest);
  line-height: 0.95;
  color: var(--text-primary);
}

.headline-hero {
  font-size: clamp(var(--font-xxxl), 8vw, var(--font-hero));
  font-weight: 900;
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  color: var(--text-primary);
}

.headline-display {
  font-size: clamp(var(--font-xxl), 5vw, var(--font-display));
  font-weight: 900;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--text-primary);
}

.headline-xxxl {
  font-size: var(--font-xxxl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--text-primary);
}

.headline-xxl {
  font-size: var(--font-xxl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  color: var(--text-primary);
}

.accent-text {
  font-weight: 200;
  color: var(--brand-primary);
}

.body-lg {
  font-size: var(--font-lg);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-md {
  font-size: var(--font-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
  transition: background var(--anim-normal) ease;
}

.nav.scrolled {
  background: rgba(10, 9, 13, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: var(--font-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-icon {
  font-size: var(--font-xxl);
}

.nav-links {
  display: flex;
  gap: var(--space-xxl);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  transition: color var(--anim-fast) ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-massive) 0 var(--space-xxxxl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(155, 123, 184, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(232, 168, 73, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp var(--anim-editorial) ease forwards;
  animation-delay: 200ms;
}

.hero-title {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp var(--anim-editorial) ease forwards;
  animation-delay: 400ms;
}

.hero-accent-bar {
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
  margin: var(--space-xxl) 0;
  animation: drawLine var(--anim-slow) ease forwards;
  animation-delay: 800ms;
}

.hero-subtitle {
  max-width: 600px;
  margin-bottom: var(--space-xxxl);
  opacity: 0;
  animation: fadeInUp var(--anim-normal) ease forwards;
  animation-delay: 1000ms;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp var(--anim-normal) ease forwards;
  animation-delay: 1200ms;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xxl);
  font-size: var(--font-md);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--anim-fast) ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-primary:hover {
  background: var(--brand-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--brand-glow), var(--shadow-lg);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--brand-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.btn-ghost:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Feature Section */
.features {
  padding: var(--space-massive) 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxxxl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-lg);
}

.section-header .headline-display {
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl);
  position: relative;
  overflow: hidden;
  transition: all var(--anim-normal) ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-primary);
  transform: scaleY(0);
  transition: transform var(--anim-normal) ease;
}

.feature-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-secondary);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  font-size: var(--font-xxxl);
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* App Preview Section */
.app-preview {
  padding: var(--space-massive) 0;
  position: relative;
  overflow: hidden;
}

.app-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

.app-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxxl);
  align-items: center;
}

.app-preview-text {
  position: relative;
  z-index: 1;
}

.app-preview-mockup {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-primary);
  border-radius: 40px;
  padding: var(--space-md);
  box-shadow: var(--shadow-dramatic);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.phone-screen-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
}

.phone-screen-text {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: var(--space-massive) 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section .headline-display {
  margin-bottom: var(--space-xl);
}

.cta-section .body-lg {
  margin-bottom: var(--space-xxl);
}

.store-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--anim-fast) ease;
}

.store-btn:hover {
  background: var(--bg-feature);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.store-btn-icon {
  font-size: var(--font-xxl);
}

.store-btn-text {
  text-align: left;
}

.store-btn-label {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
}

.store-btn-name {
  font-size: var(--font-md);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: var(--space-xxxxl) 0 var(--space-xxl);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xxxxl);
  margin-bottom: var(--space-xxxxl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-tagline {
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-column h4 {
  font-size: var(--font-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: var(--font-sm);
  transition: color var(--anim-fast) ease;
}

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

.footer-bottom {
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--font-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

/* Page Header (for inner pages) */
.page-header {
  padding: var(--space-massive) 0 var(--space-xxxxl);
  background: var(--bg-secondary);
  text-align: center;
}

.page-header .eyebrow {
  margin-bottom: var(--space-lg);
}

.page-header .headline-hero {
  margin-bottom: var(--space-xl);
}

/* Content Section (for privacy policy, etc.) */
.content-section {
  padding: var(--space-xxxxl) 0;
}

.content-section h2 {
  font-size: var(--font-xxl);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-xxxl);
  margin-bottom: var(--space-lg);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.content-section ul,
.content-section ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.content-section li {
  margin-bottom: var(--space-sm);
}

.content-section a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--anim-fast) ease;
}

.content-section a:hover {
  color: var(--brand-primary-light);
  text-decoration: underline;
}

.content-section .last-updated {
  color: var(--text-tertiary);
  font-size: var(--font-sm);
  font-style: italic;
  margin-bottom: var(--space-xxl);
}

/* Decorative Elements */
.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
  margin: var(--space-xl) 0;
}

.accent-line-center {
  margin-left: auto;
  margin-right: auto;
}

.jewel-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xxl) 0;
}

.jewel-divider::before,
.jewel-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-primary);
}

.jewel-divider span {
  color: var(--brand-primary);
  font-size: var(--font-lg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .app-preview-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-preview-text {
    order: 2;
  }

  .app-preview-mockup {
    order: 1;
    margin-bottom: var(--space-xxl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-massive: 100px;
    --space-xxxxl: 60px;
    --space-xxxl: 40px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-massive) 0 var(--space-xxxl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 var(--space-lg);
  }
}
