*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d0515;
  --surface: #160d24;
  --surface2: #1e1230;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --text: #f0e8ff;
  --text2: #9d8fba;
  --text3: #5a4f72;
  --pink: #ff6b9d;
  --gold: #ffd700;
  --purple: #b44dff;
  --teal: #00d4aa;
  --grad: linear-gradient(135deg, #ff6b9d, #b44dff);
  --grad2: linear-gradient(135deg, #b44dff, #00d4aa);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13,5,21,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-ring { font-size: 1.4rem; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.logo-ai { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--grad);
  color: #fff; border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 7rem 4rem 4rem;
  position: relative; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.orb1 { width: 400px; height: 400px; background: #b44dff; top: -100px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 300px; height: 300px; background: #ff6b9d; bottom: 0; right: 200px; animation: float2 6s ease-in-out infinite; }
.orb3 { width: 200px; height: 200px; background: #00d4aa; top: 50%; right: 0; animation: float3 10s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-40px)} }

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(180,77,255,0.15);
  border: 1px solid rgba(180,77,255,0.3);
  color: var(--purple); padding: 0.4rem 1rem;
  border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text2); margin-bottom: 2rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--grad); color: #fff;
  padding: 0.85rem 2rem; border-radius: 100px;
  border: none; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 8px 30px rgba(255,107,157,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,157,0.4); }

.btn-ghost {
  background: transparent; color: var(--text2);
  padding: 0.85rem 1.5rem; border-radius: 100px;
  border: 1px solid var(--border2); font-size: 0.95rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text3); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone mockup */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; animation: fadeUp 0.6s 0.3s ease both; }

.phone-mockup {
  width: 280px; height: 500px;
  background: var(--surface);
  border-radius: 36px;
  border: 2px solid var(--border2);
  padding: 2rem 1.25rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex; flex-direction: column; justify-content: center;
  gap: 1rem;
  position: relative;
}

.phone-screen { display: flex; flex-direction: column; gap: 0.75rem; }

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px; font-size: 0.78rem;
  line-height: 1.5; max-width: 85%;
  animation: bubbleIn 0.5s ease both;
}

.chat-bubble.left {
  background: var(--surface2);
  color: var(--text2);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.right {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-bubble {
  background: linear-gradient(135deg, rgba(180,77,255,0.2), rgba(0,212,170,0.2));
  border: 1px solid rgba(180,77,255,0.3);
  color: var(--text);
}

@keyframes bubbleIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.chat-bubble:nth-child(1) { animation-delay: 0.5s; }
.chat-bubble:nth-child(2) { animation-delay: 1s; }
.chat-bubble:nth-child(3) { animation-delay: 1.5s; }
.chat-bubble:nth-child(4) { animation-delay: 2s; }

/* ── SECTIONS ── */
.features-section, .pricing-section {
  padding: 6rem 4rem;
  position: relative;
}

.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--purple);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 0.75rem;
}

.section-sub { color: var(--text2); font-size: 1rem; margin-bottom: 3rem; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; max-width: 1200px; margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem 1.5rem;
  cursor: pointer; position: relative;
  transition: all 0.3s; overflow: hidden;
}

.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover { border-color: rgba(180,77,255,0.4); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(180,77,255,0.15); }
.feature-card:hover::before { opacity: 0.05; }

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; position: relative; z-index: 1; }

.feature-tag {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: 100px; font-size: 0.68rem; font-weight: 600;
  background: rgba(0,212,170,0.15); color: var(--teal);
  border: 1px solid rgba(0,212,170,0.3);
  margin-bottom: 0.75rem; position: relative; z-index: 1;
}

.premium-tag { background: rgba(255,215,0,0.15); color: var(--gold); border-color: rgba(255,215,0,0.3); }

.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.feature-card p { font-size: 0.83rem; color: var(--text2); line-height: 1.6; position: relative; z-index: 1; }

.feature-arrow {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  color: var(--text3); font-size: 1.2rem;
  transition: all 0.3s;
}
.feature-card:hover .feature-arrow { color: var(--purple); transform: translateX(4px); }

/* Pricing */
.pricing-section { background: var(--surface); }

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; max-width: 700px; margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 2.5rem;
  position: relative;
}

.popular-card {
  border-color: rgba(180,77,255,0.5);
  box-shadow: 0 0 0 1px rgba(180,77,255,0.2), 0 20px 60px rgba(180,77,255,0.1);
}

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  padding: 0.3rem 1.2rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}

.plan-name { font-size: 0.9rem; font-weight: 600; color: var(--text2); margin-bottom: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-price { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; margin-bottom: 0.25rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text2); font-family: 'DM Sans', sans-serif; }
.plan-desc { color: var(--text2); font-size: 0.85rem; margin-bottom: 1.5rem; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.plan-features li { font-size: 0.88rem; color: var(--text2); }
.plan-features li:first-child { color: var(--teal); }

.plan-btn {
  width: 100%; padding: 0.85rem;
  border-radius: 100px; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border2); background: transparent; color: var(--text);
  transition: all 0.2s;
}
.plan-btn:hover { border-color: var(--purple); color: var(--purple); }
.popular-btn { background: var(--grad); border: none; color: #fff; }
.popular-btn:hover { opacity: 0.9; color: #fff; }

/* ── APP MODAL ── */
.app-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.app-overlay.open { display: flex; }

.app-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}

.modal-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text2); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }

.modal-features { padding: 1.5rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1.25rem; font-weight: 700; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.modal-feature-btn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1rem;
  color: var(--text); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-align: left;
}
.modal-feature-btn:hover { border-color: rgba(180,77,255,0.4); background: rgba(180,77,255,0.1); }

.modal-panel { padding: 1.5rem; }

.back-btn {
  background: none; border: none; color: var(--purple);
  font-size: 0.9rem; cursor: pointer; margin-bottom: 1.25rem;
  display: block; font-family: 'DM Sans', sans-serif;
}

.modal-panel input, .modal-panel textarea {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1rem; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.modal-panel input:focus, .modal-panel textarea:focus { border-color: var(--purple); }
.modal-panel textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  width: 100%; background: var(--grad);
  color: #fff; border: none; border-radius: 100px;
  padding: 0.9rem; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s; margin-top: 0.5rem;
}
.submit-btn:hover { opacity: 0.9; }

.ai-response {
  margin-top: 1.25rem;
  background: var(--surface2); border: 1px solid rgba(180,77,255,0.2);
  border-radius: 16px; padding: 1.25rem;
}

.ai-label { font-size: 0.78rem; color: var(--purple); font-weight: 600; margin-bottom: 0.75rem; }

#ai-result { font-size: 0.88rem; line-height: 1.7; color: var(--text2); white-space: pre-wrap; }

/* ── FOOTER ── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 3rem 4rem; text-align: center;
}

.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-tagline { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text3); font-size: 0.8rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 6rem 2rem 4rem; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-section, .pricing-section { padding: 4rem 2rem; }
}

@media (max-width: 600px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer { padding: 2rem 1rem; }
}