/* ============================================
   Thematically Misaligned — Brand Stylesheet
   ============================================ */

:root {
  /* Brand Colors — deliberately clashing but fun */
  --tm-purple: #7B2FBE;
  --tm-pink: #FF3CAC;
  --tm-yellow: #FFED4A;
  --tm-teal: #2DD4BF;
  --tm-dark: #1A1025;
  --tm-light: #FAF5FF;
  --tm-gray: #6B7280;
  --tm-white: #FFFFFF;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--tm-dark);
  color: var(--tm-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Logo & Brand Mark
   ============================================ */

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--tm-light);
}

.brand-logo .logo-mark {
  width: 44px;
  height: 38px;
  position: relative;
}

.brand-logo .logo-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-mark svg {
  transform: rotate(-3deg) scale(1.05);
}

.brand-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero logo — theater masks, misaligned */
.hero-logo {
  width: 260px;
  height: auto;
  margin: 0 auto var(--space-lg);
  position: relative;
  animation: subtle-float 8s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: auto;
  /* Colourize the black artwork with brand tones */
  filter: 
    invert(1)
    drop-shadow(0 0 20px rgba(255, 60, 172, 0.3))
    drop-shadow(0 0 40px rgba(123, 47, 190, 0.2));
  transition: filter 0.3s ease;
}

.hero-logo:hover img {
  filter: 
    invert(1)
    drop-shadow(0 0 30px rgba(255, 60, 172, 0.5))
    drop-shadow(0 0 60px rgba(45, 212, 191, 0.3));
}

@keyframes subtle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Nav logo — mini masks */
.brand-logo .logo-mark {
  width: 38px;
  height: 38px;
  position: relative;
  transition: transform 0.3s ease;
}

.brand-logo .logo-mark img {
  width: 100%;
  height: 100%;
  filter: invert(1) drop-shadow(0 0 8px rgba(255, 60, 172, 0.3));
}

.brand-logo:hover .logo-mark {
  transform: rotate(-5deg) scale(1.1);
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-links a {
  color: var(--tm-light);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--tm-gray);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

/* ============================================
   App Cards
   ============================================ */

.apps-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.apps-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.app-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.app-card .card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.app-card .card-badge.live {
  background: rgba(45, 212, 191, 0.15);
  color: var(--tm-teal);
}

.app-card .card-badge.coming-soon {
  background: rgba(255, 60, 172, 0.15);
  color: var(--tm-pink);
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.app-card p {
  color: var(--tm-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-card .card-cta {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--tm-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.app-card .card-cta:hover {
  color: var(--tm-yellow);
}

/* ============================================
   Friday Drop Feature Section
   ============================================ */

.feature-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.feature-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.feature-section .subtitle {
  color: var(--tm-gray);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.step {
  padding: var(--space-md);
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tm-purple), var(--tm-pink));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--tm-gray);
  font-size: 0.9rem;
}

/* ============================================
   CTA Button
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--tm-pink), var(--tm-purple));
  color: var(--tm-white);
  box-shadow: 0 4px 20px rgba(123, 47, 190, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(123, 47, 190, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tm-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

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

.site-footer .footer-links a {
  color: var(--tm-gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--tm-light);
}

/* ============================================
   Background decoration
   ============================================ */

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  animation: drift 20s ease-in-out infinite;
}

.bg-glow-1 {
  background: var(--tm-purple);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-glow-2 {
  background: var(--tm-pink);
  bottom: -200px;
  left: -100px;
  animation-delay: -10s;
}

.bg-glow-3 {
  background: var(--tm-teal);
  top: 40%;
  left: 50%;
  width: 400px;
  height: 400px;
  opacity: 0.06;
  animation-delay: -5s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .site-nav {
    padding: var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-xl) var(--space-md);
  }

  .apps-section,
  .feature-section {
    padding: var(--space-xl) var(--space-md);
  }

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

/* ============================================
   Ad Slot Placeholder
   ============================================ */

.ad-slot {
  max-width: 728px;
  margin: var(--space-lg) auto;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  color: var(--tm-gray);
  font-size: 0.8rem;
}
