/* ========================================
   DestresDeal — Website Styles
   ======================================== */

:root {
  --purple: #7437FF;
  --purple-dark: #5B1FE0;
  --purple-light: #9B6FFF;
  --navy: #0D0029;
  --charcoal: #1C1C1E;
  --sand-50: #FAF9F7;
  --sand-100: #F3F1ED;
  --sand-200: #E8E4DC;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Reveal Animation
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo svg {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background: var(--sand-50);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  right: -100px;
  animation: float-1 18s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #C084FC;
  bottom: -100px;
  left: -80px;
  animation: float-2 22s ease-in-out infinite;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--purple-light);
  top: 40%;
  left: 50%;
  animation: float-3 15s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -40px); }
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(116, 55, 255, 0.08);
  border: 1px solid rgba(116, 55, 255, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 60%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(116, 55, 255, 0.3);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 6px 28px rgba(116, 55, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--sand-200);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-200);
}

/* ========================================
   Features
   ======================================== */
.features {
  padding: 120px 0;
  background: var(--white);
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid transparent;
  transition: all 0.35s ease;
}

.feature-card:hover {
  border-color: rgba(116, 55, 255, 0.12);
  box-shadow: 0 8px 40px rgba(116, 55, 255, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(116, 55, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
  padding: 120px 0;
  background: var(--sand-50);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--sand-200);
  align-items: flex-start;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(116, 55, 255, 0.12);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  transition: color 0.3s;
}

.step:hover .step-number {
  color: rgba(116, 55, 255, 0.3);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 120px 0;
  background: var(--white);
}

.cta-card {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(116, 55, 255, 0.4) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 111, 255, 0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--purple);
  box-shadow: 0 4px 24px rgba(116, 55, 255, 0.4);
}

.cta-buttons .btn-primary:hover {
  background: var(--purple-light);
  box-shadow: 0 6px 32px rgba(116, 55, 255, 0.5);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 64px 0 40px;
  background: var(--sand-50);
  border-top: 1px solid var(--sand-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand svg {
  height: 22px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--sand-200);
  padding-top: 24px;
}

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

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--gray-400);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.4;
}

.legal-section a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(116, 55, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal-section a:hover {
  text-decoration-color: var(--purple);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero {
    padding: 140px 0 80px;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

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

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

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

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

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 22px;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    font-size: 36px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .legal-content {
    padding: 28px 20px;
  }
}
