/* ============================================================
   Melodon Landing Page — Shared Styles
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #121212;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1a1a1a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-primary: #E40143;
  --color-primary-hover: #FF1A5C;
  --color-primary-glow: rgba(228, 1, 67, 0.4);
  --color-secondary: #DB0E4A;
  --color-secondary-glow: rgba(219, 14, 74, 0.3);
  --color-tertiary: #B01040;

  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-text-dimmed: #64748B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-primary-reverse: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(228, 1, 67, 0.15) 0%, transparent 60%);
  --gradient-subtle: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --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;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 40px var(--color-primary-glow);
  --shadow-glow-sm: 0 0 20px var(--color-primary-glow);

  /* Layout */
  --max-width: 1200px;
  --content-padding: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Base Typography --- */
p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: 100%;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

/* --- Waitlist Form Styles --- */
.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  min-width: 0;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-text-dimmed);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(228, 1, 67, 0.15);
}

.waitlist-form button {
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), opacity var(--transition-base);
  position: relative;
  overflow: hidden;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-sm);
}

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

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form message states */
.form-message {
  display: block;
  min-height: 22px;
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
  transition: opacity var(--transition-base);
}

.form-message:empty {
  opacity: 0;
}

.form-message.success {
  color: #34D399;
}

.form-message.error {
  color: #F87171;
}

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

/* --- Phone Mockup Base Styles --- */
.phone-mockup {
  width: 220px;
  height: 440px;
  border-radius: 28px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--color-bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-mockup-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-md);
}

.phone-mockup-screen .phone-icon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.phone-mockup-screen .phone-icon svg {
  width: 100%;
  height: 100%;
}

.phone-mockup-screen .phone-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Phone screen gradients */
.phone-mockup.screen-feed .phone-mockup-screen {
  background: linear-gradient(180deg, rgba(228, 1, 67, 0.1) 0%, rgba(176, 16, 64, 0.05) 100%);
}

.phone-mockup.screen-communities .phone-mockup-screen {
  background: linear-gradient(180deg, rgba(219, 14, 74, 0.1) 0%, rgba(228, 1, 67, 0.05) 100%);
}

.phone-mockup.screen-fanclubs .phone-mockup-screen {
  background: linear-gradient(180deg, rgba(176, 16, 64, 0.1) 0%, rgba(219, 14, 74, 0.05) 100%);
}

/* --- Feature Card Base --- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(228, 1, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* --- Artist Stats Base --- */
.stat-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--color-text-dimmed);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

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

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

/* --- Utility Classes --- */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-reverse {
  background: var(--gradient-primary-reverse);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }
.text-dimmed { color: var(--color-text-dimmed); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.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;
}

/* --- Inline SVG Icons (shared) --- */
.icon-feed, .icon-communities, .icon-fanclubs, .icon-chat {
  display: inline-block;
  width: 24px;
  height: 24px;
}

/* --- Responsive Breakpoints --- */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  :root {
    --content-padding: 20px;
    --space-4xl: 64px;
    --space-5xl: 80px;
  }

  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }

  .waitlist-form button {
    width: 100%;
    text-align: center;
  }

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

  .phone-mockup {
    width: 180px;
    height: 360px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --content-padding: 16px;
    --space-4xl: 48px;
    --space-3xl: 40px;
  }

  .phone-mockup {
    width: 150px;
    height: 300px;
  }

  .stat-value {
    font-size: var(--text-3xl);
  }
}

/* Large screens */
@media (min-width: 1440px) {
  :root {
    --max-width: 1280px;
  }
}
