/* ============================================
   DROUSE LANDING PAGE — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-tertiary: rgba(240, 240, 245, 0.4);
  --text-muted: rgba(240, 240, 245, 0.3);

  --accent: #a78bfa;         /* Soft violet */
  --accent-hover: #c4b5fd;
  --accent-dim: rgba(167, 139, 250, 0.15);
  --accent-glow: rgba(167, 139, 250, 0.25);

  --warm: #f5a623;
  --warm-dim: rgba(245, 166, 35, 0.12);
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition-med);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg-primary) !important;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.875rem;
  transition: var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero .container {
  text-align: center;
  position: relative;
}

.hero-preheadline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s var(--ease-out);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary svg {
  transition: var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.microcopy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-visual {
  margin-top: 64px;
  position: relative;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero-visual img {
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 120px var(--accent-glow);
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.15;
}


/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: var(--section-padding);
  position: relative;
}

.problem .container {
  max-width: 800px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.problem-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-med);
}

.problem-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.problem-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  color: #ef4444;
  font-size: 1rem;
}

.problem-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.problem-kicker {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  line-height: 1.7;
}


/* ============================================
   MERGED: HOW IT WORKS + BENEFITS
   ============================================ */
.workflow {
  padding: var(--section-padding);
  position: relative;
}

.workflow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.workflow-header {
  text-align: center;
  margin-bottom: 80px;
}

.workflow-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.workflow-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Flow Block (side-by-side: steps left, visual right) ---- */
.flow-block {
  margin-bottom: 100px;
}

.flow-block:last-child {
  margin-bottom: 0;
}

.flow-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.flow-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.flow-content.reversed {
  direction: rtl;
}

.flow-content.reversed > * {
  direction: ltr;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.flow-step {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-med);
}

.flow-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.flow-step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.flow-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-step .benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.benefit-tag.speed {
  background: var(--success-dim);
  color: var(--success);
}

.benefit-tag.explore {
  background: var(--blue-dim);
  color: var(--blue);
}

.benefit-tag.savings {
  background: var(--warm-dim);
  color: var(--warm);
}

.flow-visual {
  position: relative;
}

.flow-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transition: var(--transition-med);
}

.flow-visual:hover img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

.flow-visual::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 15%;
  right: 15%;
  height: 40px;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.1;
}


/* ============================================
   VISUAL FLOW LINE
   ============================================ */
.flow-pipeline {
  padding: 80px 0;
  position: relative;
}

.flow-pipeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.pipeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pipeline-node {
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-med);
  white-space: nowrap;
}

.pipeline-node:hover {
  background: var(--accent-dim);
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateY(-2px);
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 12px;
}

.pipeline-caption {
  text-align: center;
  margin-top: 32px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   CTA / PRICING SECTION
   ============================================ */
.cta-section {
  padding: var(--section-padding);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.cta-card {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 48px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(167, 139, 250, 0.03) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.cta-content {
  position: relative;
}

.cta-main {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  white-space: nowrap;
}

.cta-card .cta-sub {
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.cta-card .btn-primary {
  position: relative;
  font-size: 1.05rem;
  padding: 16px 36px;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px auto 28px;
  max-width: 680px;
  position: relative;
}

.cta-card .microcopy {
  margin-top: 16px;
  position: relative;
}

.price-plate {
  padding: 28px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 10, 15, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32), 0 0 50px rgba(167, 139, 250, 0.12);
  text-align: left;
}

.price-plate span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.price-plate > strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.price-plate p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.price-plate p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pricing-hint {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  text-align: center;
}

.pricing-contact {
  margin-top: 28px;
}

.pricing-hint p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-hint strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.pricing-hint a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .cta-card h2 {
    white-space: normal;
  }

  .cta-card .cta-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .flow-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow-content.reversed {
    direction: ltr;
  }

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

  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

@media (max-width: 700px) {
  :root {
    --section-padding: 80px 0;
  }

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

  .nav-links {
    display: none;
  }

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

  .cta-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .pricing-options {
    grid-template-columns: 1fr;
  }

  .price-plate {
    padding: 24px 20px;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
