/* ============================================
   RoomStylerAI Website – Shared Styles
   ============================================ */

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

:root {
  --color-1: #879AF2;
  --color-2: #D3208B;
  --color-3: #FDA000;
  --bg: #0A0A0F;
  --surface: #1A1A24;
  --surface-2: #15151F;
  --text: #E8E8ED;
  --text-muted: #6B6B7B;
  --radius: 16px;
  --gradient: linear-gradient(135deg, var(--color-1), var(--color-2), var(--color-3));
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--color-1); text-decoration: none; transition: color .2s; }
a:hover { color: #a8b5ff; }

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

/* ---------- Utility ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Header / Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff; text-decoration: none;
}
.nav-brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  font-weight: 700; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(135,154,242,.35); color: #fff; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(135,154,242,.15) 0%, rgba(211,32,139,.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(135,154,242,.12);
  border: 1px solid rgba(135,154,242,.2);
  font-size: 13px; font-weight: 600;
  color: var(--color-1);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 600; font-size: 15px;
  transition: all .25s;
}
.btn-store:hover { background: var(--surface-2); border-color: rgba(255,255,255,.15); transform: translateY(-2px); color: #fff; }
.btn-store svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-store .store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-store .store-label small { font-size: 11px; font-weight: 400; color: var(--text-muted); }

/* ---------- Features ---------- */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .3s, transform .3s;
}
.feature-card:hover { border-color: rgba(135,154,242,.2); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---------- How it works ---------- */
.how-it-works { padding: 100px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 22px; font-weight: 800; color: #fff;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
}
.cta-box {
  padding: 60px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(135,154,242,.12), rgba(211,32,139,.08), rgba(253,160,0,.06));
  border: 1px solid rgba(135,154,242,.15);
}
.cta-box h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 120px 0 80px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--text-muted); font-size: 14px;
  margin-bottom: 40px;
}
.legal-content {
  max-width: 800px;
}
.legal-content h2 {
  font-size: 20px; font-weight: 700;
  margin-top: 40px; margin-bottom: 12px;
  color: #fff;
}
.legal-content h3 {
  font-size: 16px; font-weight: 700;
  margin-top: 24px; margin-bottom: 8px;
  color: var(--text);
}
.legal-content p, .legal-content li {
  color: var(--text-muted); font-size: 15px; line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content a { text-decoration: underline; }

/* ---------- Support page ---------- */
.support-page { padding: 120px 0 80px; text-align: center; }
.support-card {
  max-width: 560px; margin: 40px auto 0;
  padding: 40px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}
.support-card .icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; margin: 0 auto 20px;
  background: rgba(0,184,148,.12);
  font-size: 28px;
}
.support-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.support-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.btn-email {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  background: var(--gradient); color: #fff;
  font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.btn-email:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(135,154,242,.3); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,10,15,.97);
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-store { width: 100%; max-width: 280px; justify-content: center; }
  .cta-box { padding: 40px 24px; }
}
