/* RedBull & Ramen - Complete CSS Design System */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES (Design Variables)
   ============================================= */
:root {
  /* Core Colors */
  --bg: #0d0d0d;           /* Pure black background */
  --bg-card: #1a1a1a;      /* Card backgrounds */
  --accent-red: #ff0022;   /* Primary CTA, borders */
  --accent-yellow: #ffcc22; /* Secondary accents, highlights */
  --text-primary: #ffffff;  /* Main text */
  --text-secondary: #a0a0a0; /* Micro-copy */
  --text-muted: #666666;    /* Less prominent text */
  --success-green: #00ff88; /* Success states */
  --error-red: #ff0000;     /* Error states */
  --warning-orange: #ff9900; /* Warning states */

  /* Typography */
  --font-mono: "Space Mono", "Courier New", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 72px;
  --text-7xl: 96px;
  --text-8xl: 120px;

  /* Spacing Scale */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 128px;
  --spacing-2xl: 256px;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-red: 0 0 20px rgba(255, 0, 34, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1070;
}

/* =============================================
   RESET AND BASE STYLES
   ============================================= */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* =============================================
   TYPOGRAPHY SCALE
   ============================================= */

h1 {
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.mono {
  font-family: var(--font-mono);
}

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

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

/* =============================================
   UTILITY CLASSES
   ============================================= */

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-red);
  color: var(--text-primary);
  padding: var(--spacing-sm);
  z-index: var(--z-tooltip);
  text-decoration: none;
  font-weight: bold;
  border-radius: var(--radius-none);
}

.skip-link:focus {
  top: 6px;
}

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

/* =============================================
   BUTTON COMPONENTS
   ============================================= */

/* Primary CTA Button */
.cta-primary {
  background: var(--accent-red);
  color: var(--accent-yellow);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-mono);
  border-radius: var(--radius-none);
  display: inline-block;
  text-align: center;
  min-width: 200px;
}

.cta-primary:hover {
  filter: blur(1px);
  transform: scale(1.05);
  box-shadow: var(--shadow-red);
}

.cta-primary:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

.cta-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Secondary CTA Button */
.cta-secondary {
  background: transparent;
  color: var(--accent-yellow);
  border: 2px solid var(--accent-yellow);
  padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-lg) - 2px);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-mono);
  border-radius: var(--radius-none);
  display: inline-block;
  text-align: center;
  min-width: 200px;
}

.cta-secondary:hover {
  background: var(--accent-yellow);
  color: var(--bg);
  transform: scale(1.05);
}

.cta-secondary:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* =============================================
   CARD COMPONENTS
   ============================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-none);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 0, 34, 0.2);
}

/* =============================================
   LAYOUT SECTIONS
   ============================================= */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-lg);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-subheading {
  font-size: var(--text-xl);
  margin: var(--spacing-md) 0;
  font-family: var(--font-mono);
}

.hero-cta {
  margin: var(--spacing-lg) 0;
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* CCTV Timestamp */
.cctv-timestamp {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: rgba(26, 26, 26, 0.8);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-none);
}

/* =============================================
   BRICK COUNTER SECTION
   ============================================= */

.brick-counter-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.brick-counter {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-none);
  padding: var(--spacing-lg);
}

.brick-number {
  font-size: var(--text-8xl);
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--text-primary);
  margin: var(--spacing-md) 0;
  text-shadow: 0 0 20px rgba(255, 0, 34, 0.3);
}

.brick-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--spacing-sm) 0;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.live-text {
  font-size: var(--text-sm);
  color: var(--success-green);
  font-weight: bold;
  font-family: var(--font-mono);
}

.last-update {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

/* =============================================
   HOW IT WORKS SECTION
   ============================================= */

.how-it-works-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg);
}

.how-it-works-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.how-it-works-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.how-it-works-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-none);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 24px rgba(255, 204, 34, 0.2);
}

.card-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.how-it-works-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--accent-yellow);
}

.how-it-works-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   EMAIL CAPTURE SECTION
   ============================================= */

.email-capture-section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg);
}

.email-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-none);
  padding: var(--spacing-lg);
  text-align: center;
}

.email-form h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--accent-yellow);
}

.email-form input[type="email"] {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--bg);
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-none);
  transition: all var(--transition-base);
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 34, 0.3);
}

.email-form input[type="email"].valid {
  border-color: var(--success-green);
}

.email-form input[type="email"].invalid {
  border-color: var(--error-red);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
}

.checkbox-container label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.privacy-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--spacing-md);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Success State */
.success-state {
  text-align: center;
}

.success-state h2 {
  color: var(--accent-yellow);
  margin-bottom: var(--spacing-md);
}

.success-state p {
  margin-bottom: var(--spacing-sm);
}

.social-share a {
  display: inline-block;
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
  padding: var(--spacing-xs) var(--spacing-md);
  margin-top: var(--spacing-md);
  transition: all var(--transition-base);
  font-size: var(--text-sm);
}

.social-share a:hover {
  background: var(--accent-yellow);
  color: var(--bg);
}

/* Error Message */
.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
  padding: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
  border-radius: var(--radius-none);
  font-size: var(--text-sm);
  animation: slideIn 0.3s ease;
}

/* =============================================
   FOOTER SECTION
   ============================================= */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--accent-red);
  padding: var(--spacing-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

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

.footer-section p {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.footer-stats p {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.footer-legal {
  text-align: center;
  border-top: 1px solid var(--text-muted);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--accent-yellow);
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* Glitch animation for hero H1 */
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
}

.hero-content h1 {
  animation: glitch 0.3s ease-in-out 8s infinite;
}

/* Pulse animation for live dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Floating animation for background elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

/* Slide in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   RESPONSIVE DESIGN (Mobile-First)
   ============================================= */

/* Mobile styles (default) */
@media (max-width: 767px) {
  .hero-section {
    padding: var(--spacing-md);
    min-height: 100vh;
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }

  .hero-subheading {
    font-size: var(--text-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cctv-timestamp {
    position: static;
    margin-top: var(--spacing-md);
    display: inline-block;
  }

  .brick-counter {
    padding: var(--spacing-md);
  }

  .brick-number {
    font-size: var(--text-6xl);
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content h1 {
    font-size: var(--text-5xl);
  }

  .brick-number {
    font-size: var(--text-7xl);
  }

  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: var(--text-6xl);
  }

  .brick-number {
    font-size: var(--text-8xl);
  }

  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Large desktop styles */
@media (min-width: 1440px) {
  .hero-section,
  .brick-counter-section,
  .how-it-works-section,
  .email-capture-section {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Focus styles for better keyboard navigation */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@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;
  }

  .hero-content h1 {
    animation: none;
  }

  .live-dot {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-red: #ff4444;
    --accent-yellow: #ffff44;
  }
}

/* Print styles */
@media print {
  .hero-section,
  .email-capture-section,
  .footer {
    background: white !important;
    color: black !important;
  }

  .cta-primary,
  .cta-secondary {
    display: none;
  }
}
