/* ========================================
   Clandast Landing - Modern Design System
   Consistent with SPA color palette
   ======================================== */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

/* CSS Variables - Aligned with SPA */
:root {
  /* Colors from SPA */
  --background: hsl(209, 40%, 96%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(210, 40%, 98%);
  --card-border: hsl(212, 26%, 83%);
  --primary: hsl(216, 19%, 26%);
  --muted: hsl(215, 20%, 65%);
  --muted-foreground: hsl(215, 16%, 46%);

  /* Accent colors */
  --cta: hsl(220, 15%, 10%);
  --cta-foreground: hsl(0, 0%, 100%);
  --success: hsl(150, 55%, 45%);

  /* Pastel backgrounds */
  --pastel-purple: hsl(260, 50%, 94%);
  --pastel-indigo: hsl(240, 45%, 92%);
  --pastel-mint: hsl(165, 35%, 92%);
  --pastel-warm: hsl(35, 40%, 94%);
  --pastel-sky: hsl(200, 50%, 92%);

  /* Layout */
  --container: 1120px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 12px hsl(220 15% 15% / 0.06);
  --shadow-md: 0 8px 24px hsl(220 15% 15% / 0.08);
  --shadow-lg: 0 16px 48px hsl(220 15% 15% / 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Container */
.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Background Gradient */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--pastel-purple) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, var(--pastel-indigo) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 60%, var(--pastel-mint) 0%, transparent 50%),
    var(--background);
  pointer-events: none;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: hsla(209, 40%, 96%, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(212, 26%, 83%, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--cta-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.nav-links {
  display: flex;
  gap: 20px;
  width: 100%;
  order: 3;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  order: 2;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-cta a {
  flex: 0 0 auto;
  min-width: max-content;
  text-align: center;
  white-space: nowrap;
}

.nav-cta .btn-primary,
.nav-cta .btn-ghost {
  border-radius: 12px;
  padding: 8px 14px;
  line-height: 1.1;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: hsl(220, 15%, 15%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  color: var(--foreground);
  background: hsla(220, 15%, 10%, 0.05);
}

.btn-xl {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

.icon-arrow,
.icon-play {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 120px 0 64px;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: hsla(210, 40%, 98%, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin-top: 16px;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  color: var(--muted-foreground);
  max-width: 540px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a {
  width: 100%;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 48px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-highlight {
  background: var(--pastel-mint);
  border-color: hsl(165, 25%, 82%);
}

.stat-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-highlight .stat-value {
  color: var(--success);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-muted {
  background: hsla(210, 40%, 98%, 0.6);
  border-top: 1px solid hsla(212, 26%, 83%, 0.5);
  border-bottom: 1px solid hsla(212, 26%, 83%, 0.5);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 16px;
}

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

.feature-purple .feature-icon { background: var(--pastel-purple); }
.feature-mint .feature-icon { background: var(--pastel-mint); }
.feature-warm .feature-icon { background: var(--pastel-warm); }
.feature-sky .feature-icon { background: var(--pastel-sky); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ========================================
   Steps / How It Works
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 16px;
}

.step-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: hsla(216, 19%, 26%, 0.15);
  margin-bottom: 12px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pastel-indigo);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--foreground);
}

.author-role {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ========================================
   Pricing
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--cta);
  color: var(--cta-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.pricing-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
}

.pricing-price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--foreground);
}

.price-period {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.pricing-features {
  list-style: none;
  margin: 22px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--foreground);
  border-bottom: 1px solid hsla(212, 26%, 83%, 0.5);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.section-cta {
  padding: 72px 0;
}

.cta-card {
  background: var(--pastel-purple);
  border: 1px solid hsla(260, 30%, 85%, 0.8);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
}

.cta-card > p {
  margin-top: 12px;
  max-width: 480px;
  margin-inline: auto;
  color: var(--muted-foreground);
}

.cta-card > a {
  margin-top: 24px;
}

.cta-card .btn-xl {
  width: 100%;
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.cta-trust svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 56px 0 28px;
  background: var(--card);
  border-top: 1px solid var(--card-border);
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--muted-foreground);
  gap: 10px;
}

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

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

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

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

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

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 16px 0 8px;
}

.legal-section p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.legal-section ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted-foreground);
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--foreground);
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 640px) {
  .nav-cta {
    flex-wrap: nowrap;
  }
  .container {
    padding: 0 24px;
  }

  .btn-xl {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
  }

  .hero h1 {
    margin-top: 32px;
  }

  .hero-desc {
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 16px;
    margin-top: 32px;
  }

  .hero-actions a {
    width: auto;
  }

  .hero-trust {
    gap: 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 56px;
  }

  .stat-card {
    padding: 22px;
  }

  .stat-value {
    font-size: 2.3rem;
  }

  .section {
    padding: 90px 0;
  }

  .section-header {
    margin: 0 auto 48px;
  }

  .section-header p {
    font-size: 1.05rem;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    gap: 20px;
  }

  .feature-card {
    padding: 26px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .steps-grid {
    gap: 24px;
  }

  .step-card {
    padding: 20px;
  }

  .step-number {
    font-size: 2.7rem;
  }

  .testimonial-card {
    padding: 26px;
  }

  .testimonial-quote {
    font-size: 1.05rem;
  }

  .pricing-card {
    padding: 30px;
  }

  .price-amount {
    font-size: 2.3rem;
  }

  .section-cta {
    padding: 80px 0;
  }

  .cta-card {
    padding: 56px 32px;
  }

  .cta-card .btn-xl {
    width: auto;
  }

  .cta-trust {
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .nav-links {
    width: auto;
    order: 0;
  }

  .nav-cta {
    width: auto;
    order: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .nav-cta a {
    flex: 0;
  }

  .nav-cta .btn-primary,
  .nav-cta .btn-ghost {
    padding: 9px 16px;
    border-radius: 12px;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section {
    padding: 100px 0;
  }

  .section-header {
    margin: 0 auto 56px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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