/* Design Tokens - LIWAAI UI Runbook (Dark Theme) */
:root {
  /* Colors - Primary Palette */
  --color-primary: #0A84FF;
  --color-primary-600: #0060DF;
  --color-secondary: #30D158;
  --color-accent: #FF9F0A;

  /* Text Colors - Dark Theme */
  --text-primary: #FFFFFF;
  --text-muted: #A0AEC0;
  --text-inverse: #0D1A26;

  /* Semantic / State Colors - Dark Theme */
  --bg-surface: #1A202C;
  --bg-muted: #0F1419;
  --border: #2D3748;
  --danger: #FF3B30;
  --warning: #FFD60A;

  /* Typography */
  --font-xxs: 12px;
  --font-xs: 13px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing (8px base grid) */
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
  --spacing-6: 48px;
  --spacing-8: 64px;
  --spacing-12: 96px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-base);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: #000000;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  position: relative;
}

/* Streets Animation Canvas */
.streets-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
}

.streets-canvas::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 79px,
      rgba(10, 132, 255, 0.15) 79px,
      rgba(10, 132, 255, 0.15) 81px),
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 79px,
      rgba(10, 132, 255, 0.15) 79px,
      rgba(10, 132, 255, 0.15) 81px);
  background-size: 80px 80px;
  animation: streetsMove 20s linear infinite;
  transform-origin: center center;
  perspective: 1000px;
}

.streets-canvas::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 70%, #000000 100%);
  z-index: 1;
}

@keyframes streetsMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 80px 80px, 80px 80px;
  }
}

/* Prevent scrolling on mobile */
@media (max-width: 640px) {
  html, body {
    /* Use dynamic viewport height for better mobile behaviour and handle address bars */
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    position: static;
    width: 100%;
    background-attachment: scroll;
  }

  .streets-canvas::before {
    animation-duration: 30s;
  }
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-3);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .container {
    height: 100dvh;
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: var(--spacing-4);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
  width: 100%;
}

.hero__title {
  font-size: 140px;
  font-weight: var(--fw-bold);
  background: linear-gradient(90deg, #30D158, #0A84FF, #BF5AF2, #FF2D55, #FFD60A, #30D158, #0A84FF, #BF5AF2);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-4);
  letter-spacing: -0.05em;
  filter: drop-shadow(0 0 120px rgba(10, 132, 255, 0.6));
  animation: titlePulse 12s linear infinite;
}

@keyframes titlePulse {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}

.hero__subtitle {
  font-size: 32px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-3);
  line-height: 1.3;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

.hero__tagline {
  font-size: var(--font-xl);
  font-weight: var(--fw-medium);
  color: rgba(10, 132, 255, 0.9);
  margin-top: var(--spacing-2);
  letter-spacing: 0.01em;
}

.hero__date {
  font-size: 48px;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-top: var(--spacing-4);
  letter-spacing: -0.02em;
}

.hero__date-badge {
  display: inline-block;
  font-size: var(--font-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.4);
  border-radius: 20px;
  padding: 6px 16px;
  margin-left: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Waitlist Form */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: var(--spacing-5) auto 0;
  padding: 0 var(--spacing-2);
}

.waitlist-input {
  flex: 1;
  font-family: inherit;
  font-size: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.waitlist-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.waitlist-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.waitlist-button {
  font-family: inherit;
  font-size: var(--font-base);
  font-weight: var(--fw-semibold);
  color: #000000;
  background: linear-gradient(135deg, #30D158 0%, #0A84FF 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.3);
}

.waitlist-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 132, 255, 0.5);
}

.waitlist-button:active {
  transform: translateY(0);
}


/* Responsive Typography */
@media (max-width: 640px) {
  .container {
    padding: var(--spacing-2);
  }

  .hero__title {
    font-size: 48px;
    margin-bottom: var(--spacing-2);
  }

  .hero__subtitle {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-2);
  }

  .hero__tagline {
    font-size: var(--font-base);
    margin-top: var(--spacing-1);
  }

  .hero__date {
    font-size: 28px;
    margin-top: var(--spacing-3);
  }

  .hero__date-badge {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 11px;
    padding: 4px 12px;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 10px;
    margin-top: var(--spacing-3);
    padding: 0;
  }

  .waitlist-input {
    padding: 14px 16px;
    font-size: var(--font-sm);
  }

  .waitlist-button {
    width: 100%;
    padding: 14px 24px;
    font-size: var(--font-sm);
  }
}

/* Utility Classes */
.u-mt-2 {
  margin-top: var(--spacing-2);
}

.u-mt-3 {
  margin-top: var(--spacing-3);
}

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