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

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #DDD6FE;
  --secondary: #1E3A5F;
  --secondary-dark: #0A1628;
  --accent: #A78BFA;
  --text: #0A1628;
  --text-light: #4A6078;
  --bg: #ffffff;
  --bg-light: #F8FAFC;
  --bg-alt: #E0E7FF;
  --border: #E4E4E7;
  --success: #10B981;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(10,22,40,0.08);
  --shadow-lg: 0 8px 32px rgba(124,58,237,0.15);
  --max-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}

.nav-logo span { color: var(--primary); }

.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.hero h1 {
  font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto 32px;
}

.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--secondary-dark); color: #fff; padding: 12px 24px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg);
}

.store-badge svg { width: 24px; height: 24px; fill: #fff; }

.store-badge small { font-size: 0.7rem; font-weight: 400; display: block; }

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

.section-title {
  text-align: center; margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light); max-width: 560px; margin: 0 auto;
}

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

.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* How It Works */
.how-it-works { background: var(--bg-light); }

.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }

.step {
  flex: 1; min-width: 240px; max-width: 320px; text-align: center;
  position: relative;
}

.step-number {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.9rem; }

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 64px 0;
}

.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { opacity: 0.9; margin-bottom: 24px; }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }

/* Footer */
.footer {
  background: var(--secondary-dark); color: #fff; padding: 48px 0 24px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}

.footer h3 { font-size: 1rem; margin-bottom: 16px; }
.footer p { color: #A1A1AA; font-size: 0.9rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #A1A1AA; font-size: 0.9rem; }
.footer ul a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  text-align: center; color: #71717A; font-size: 0.85rem;
}

/* Legal Pages */
.page-header {
  padding: 120px 0 40px;
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
  text-align: center;
}

.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--text-light); }

.page-content {
  padding: 48px 0 80px;
}

.page-content .container { max-width: 800px; }

.page-content h2 {
  font-size: 1.4rem; margin: 32px 0 12px; color: var(--text);
}

.page-content h3 {
  font-size: 1.1rem; margin: 24px 0 8px;
}

.page-content p, .page-content li {
  color: #555; font-size: 0.95rem; line-height: 1.8;
}

.page-content ul, .page-content ol {
  padding-left: 24px; margin: 12px 0;
}

.page-content li { margin-bottom: 6px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}

.faq-question {
  width: 100%; padding: 18px 24px; background: var(--bg);
  border: none; text-align: left; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
}

.faq-question:hover { background: var(--bg-light); }

.faq-question::after {
  content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px; color: #555; font-size: 0.95rem; line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Contact Card */
.contact-card {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 32px; text-align: center; margin-top: 48px;
}

.contact-card h3 { margin-bottom: 12px; }
.contact-card p { color: var(--text-light); margin-bottom: 20px; }

/* Delete Account Form */
.deletion-form {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 32px; margin-top: 32px;
}

.deletion-form h3 { margin-bottom: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-notice {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px;
  padding: 16px; margin: 24px 0; font-size: 0.9rem; color: #856404;
}

.form-success {
  display: none; background: #D1FAE5; border: 1px solid var(--success);
  border-radius: 8px; padding: 16px; text-align: center; color: #059669;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  section { padding: 60px 0; }
  .section-title h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .store-badges { flex-direction: column; align-items: center; }
}
