/* ================================================
   Souus Flow — Landing Page Styles
   ================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --bg: #fafbff;
  --surface: #ffffff;
  --ink: #1e1b4b;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 16px;
  --max-w: 1200px;
}

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

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

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Hero ---- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

.hero-visual {
  position: relative;
}

.hero-browser {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}

.browser-bar {
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Stats ---- */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Sections ---- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 32px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
}

/* ---- Features ---- */
.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ---- Themes ---- */
.themes {
  background: var(--ink);
  color: #fff;
}

.themes .section-title {
  color: #fff;
}

.themes .section-sub {
  color: rgba(255, 255, 255, 0.6);
}

.theme-showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.theme-card {
  aspect-ratio: 16/10;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.theme-card:hover {
  transform: scale(1.03);
}

.theme-card span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.theme-demo-starfield {
  background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 100%);
}

.theme-demo-neon {
  background: linear-gradient(180deg, #0a0618 0%, #1d0c33 100%);
}

.theme-demo-moon {
  background: linear-gradient(180deg, #0b1628 0%, #1a2a4a 100%);
}

.theme-demo-aurora {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #064e3b 100%);
}

.theme-demo-meadow {
  background: linear-gradient(180deg, #d7f0ff 0%, #d6f0c8 100%);
}

.theme-demo-meadow span { color: #1e4620; text-shadow: none; }

.theme-demo-sunny {
  background: linear-gradient(180deg, #fff8e1 0%, #ffe0b2 100%);
}

.theme-demo-sunny span { color: #7c4b00; text-shadow: none; }

/* ---- Privacy ---- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.privacy-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-list li {
  font-size: 16px;
  padding-left: 28px;
  position: relative;
}

.privacy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.privacy-list li strong {
  color: var(--ink);
}

.privacy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield {
  font-size: 120px;
  opacity: 0.9;
  filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.15));
}

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  text-align: center;
}

.cta .section-inner {
  padding: 80px 32px;
}

.cta-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.cta-sub {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

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

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
  }

  .hero-sub {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

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

  .privacy-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .privacy-list li {
    text-align: left;
  }

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

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

  .theme-showcase {
    grid-template-columns: 1fr;
  }

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

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: fade-up 0.6s ease-out both;
  }

  .hero-visual {
    animation: fade-up 0.8s ease-out 0.15s both;
  }

  .feature-card {
    animation: fade-up 0.5s ease-out both;
  }

  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.3s; }
  .feature-card:nth-child(5) { animation-delay: 0.4s; }
  .feature-card:nth-child(6) { animation-delay: 0.5s; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
