/* ============================================
   YAZZUP — Website Styles
   Design system matching the desktop app
   ============================================ */

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

:root {
  /* Brand Colors */
  --brand-50: #EBF2FA;
  --brand-100: #D6E5F5;
  --brand-200: #ADC9EA;
  --brand-300: #85AEE0;
  --brand-400: #5C92D5;
  --brand-500: #2E75B6;
  --brand-600: #255E92;
  --brand-700: #1C466D;
  --brand-800: #122F49;
  --brand-900: #091724;

  /* Dark Backgrounds */
  --bg-deep: #0B0B15;
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-card: #1E1E35;
  --bg-card-hover: #252542;
  --bg-elevated: #2E2E52;

  /* Text Colors */
  --text-primary: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-tertiary: #9CA3AF;
  --text-muted: #6B7280;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Status */
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1140px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--brand-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-300);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--brand-500);
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 117, 182, 0.3);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(46, 117, 182, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--brand-500);
  background: linear-gradient(135deg, rgba(46, 117, 182, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(46, 117, 182, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-300);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero p {
  font-size: 18px;
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--brand-500);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 117, 182, 0.3);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* App Preview */
.hero-preview {
  margin-top: 60px;
  position: relative;
}

.hero-preview-frame {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
}

.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
}

.preview-dot.red { background: #FF5F57; }
.preview-dot.yellow { background: #FFBD2E; }
.preview-dot.green { background: #28C840; }

.hero-preview-content {
  padding: 40px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.preview-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.preview-placeholder p {
  font-size: 14px;
}

/* --- Platforms Strip --- */
.platforms {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.platforms-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.platforms-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.platform-item:hover {
  opacity: 1;
}

.platform-item svg {
  width: 20px;
  height: 20px;
}

/* --- Features Section --- */
.features {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--brand-400);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-tertiary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-icon.blue { background: rgba(46, 117, 182, 0.15); color: var(--brand-400); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-padding);
  background: var(--bg-deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.step {
  text-align: center;
  padding: 40px 32px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-500), var(--purple));
  border-radius: 16px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0 auto 24px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 68px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), transparent);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-padding);
}

.cta-box {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(46, 117, 182, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(46, 117, 182, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-box p {
  font-size: 17px;
  color: var(--text-tertiary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-email-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.cta-email-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.cta-email-form input::placeholder {
  color: var(--text-muted);
}

.cta-email-form input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--brand-400);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* --- Legal Pages (Privacy / Terms) --- */
.legal-page {
  padding: 140px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.legal-content strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-content a {
  color: var(--brand-400);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .cta-email-form {
    flex-direction: column;
  }

  .cta-email-form input,
  .cta-email-form .btn-primary {
    width: 100%;
  }

  .hero-preview-frame {
    margin: 0 -12px;
    border-radius: 12px;
  }

  .platforms-grid {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
