/* ===== Echoa Website — Deep Space Theme ===== */
:root {
  --bg-deep: #1A1A2E;
  --bg-card: #232340;
  --bg-nav: rgba(26, 26, 46, 0.85);
  --accent-blue: #6C63FF;
  --accent-purple: #9D4EDD;
  --accent-pink: #F472B6;
  --gradient-main: linear-gradient(135deg, #6C63FF 0%, #9D4EDD 50%, #F472B6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(157,78,221,0.10) 100%);
  --text-primary: #F0F0F5;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-pink); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Stars Background ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(108,99,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(157,78,221,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(244,114,182,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-image {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(108,99,255,0.25), 0 0 120px rgba(157,78,221,0.1);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(108,99,255,0.5); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ===== Section Common ===== */
section { position: relative; z-index: 1; padding: 80px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: transform 0.3s;
}
.step:hover { transform: translateY(-4px); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== Card Showcase (Horizontal Scroll) ===== */
.card-showcase {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.card-showcase::-webkit-scrollbar { display: none; }

.card-showcase .card-item {
  flex: 0 0 200px;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-showcase .card-item:hover { transform: scale(1.05); }
.card-showcase .card-item img { width: 100%; height: 280px; object-fit: cover; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== Screenshots ===== */
.screenshots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.screenshots-row::-webkit-scrollbar { display: none; }

.screenshots-row img {
  flex: 0 0 240px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.screenshots-row img:hover { transform: scale(1.03); }

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  padding: 80px 0;
}
.cta h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Legal Pages ===== */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }

.legal-page strong { color: var(--text-primary); }

/* ===== Support Page ===== */
.support-hero {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 48px;
}

.support-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.support-hero p { color: var(--text-secondary); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.contact-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.9rem; }

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { color: var(--accent-blue); }
.faq-question .arrow { transition: transform 0.3s; font-size: 0.8rem; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 60px 0 40px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-toggle { display: block; }

  .footer .container { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.6rem; }
  .cta h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .steps { grid-template-columns: 1fr; }
  .screenshots-row img { flex: 0 0 200px; height: 400px; }
}
