/* ─────────────────────────────────────────────────
   SpeakOut Design System — Web
   情感安全空间 — 黑暗中的温暖光芒
   ───────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══ CSS Variables (Design Tokens) ═══ */
:root {
  /* Background layers */
  --bg: #0C0A09;
  --bg2: #1C1917;
  --bg3: #292524;
  --surface: #2D2420;
  --surface-light: #3F3935;

  /* Text hierarchy */
  --text: #F5F5F4;
  --text2: #A8A29E;
  --text3: #78716C;
  --text4: #57534E;

  /* Brand — Warm Amber */
  --amber: #FBBF24;
  --amber-light: #FCD34D;
  --amber-dark: #D97706;
  --amber-darker: #92400E;
  --amber-muted: #FDE68A;

  /* Accent */
  --emerald: #10B981;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --red: #EF4444;

  /* Border */
  --border: #292524;

  /* Spacing */
  --container-max: 1200px;
  --container-narrow: 800px;
  --section-pad: 100px;
  --card-radius: 16px;

  /* Glow */
  --amber-glow: 0 0 80px rgba(251, 191, 36, 0.15);
}

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

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

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

a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-light); }

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

/* ═══ Utility ═══ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text3); }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ═══ Typography ═══ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--amber), var(--amber-light), #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(12, 10, 9, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(41, 37, 36, 0.5);
  transition: all 0.3s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  color: var(--text2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--amber); }

.nav__cta {
  background: var(--amber) !important;
  color: var(--bg) !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.active { display: flex; }
}

/* ═══ Hero ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--amber);
  margin-bottom: 32px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

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

.hero__mockup {
  margin-top: 80px;
  position: relative;
}

.hero__mockup img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: var(--amber-glow), 0 40px 80px rgba(0,0,0,0.5);
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--amber);
}

.btn--outline:hover {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.btn--danger {
  background: linear-gradient(135deg, var(--red), #DC2626);
  color: white;
}

.btn--danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
  color: white;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ═══ Sections ═══ */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg2);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 16px;
}

.section__title {
  margin-bottom: 20px;
}

.section__desc {
  max-width: 640px;
  margin: 0 auto 60px;
  color: var(--text2);
  font-size: 1.1rem;
}

/* ═══ Feature Cards ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card__desc {
  color: var(--text3);
  line-height: 1.7;
}

/* ═══ How It Works ═══ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 24px;
}

.step__number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg);
}

.step__title { margin-bottom: 8px; font-size: 1.1rem; }
.step__desc { color: var(--text3); font-size: 0.95rem; }

/* ═══ Pricing ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card--featured {
  border-color: var(--amber);
  box-shadow: var(--amber-glow);
}

.pricing-card--featured .pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--bg);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 4px;
}

.pricing-card__period { color: var(--text3); margin-bottom: 24px; }

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text2);
  font-size: 0.95rem;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
}

/* ═══ Legal Pages ═══ */
.legal {
  padding: 140px 24px 80px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .legal__updated {
  color: var(--text3);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--amber);
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p, .legal li {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal li { margin-bottom: 6px; }

/* ═══ Help Center ═══ */
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-item__q:hover { color: var(--amber); }

.faq-item__q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text3);
  transition: transform 0.3s;
}

.faq-item.active .faq-item__q::after {
  transform: rotate(45deg);
  color: var(--amber);
}

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

.faq-item.active .faq-item__a {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-item__a p {
  color: var(--text2);
  line-height: 1.8;
}

/* ═══ Account Deletion ═══ */
.delete-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.delete-card__warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.delete-card__warning p {
  color: var(--red);
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.form-group input::placeholder { color: var(--text4); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--amber);
  margin-top: 3px;
}

.form-check label {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ═══ Footer ═══ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

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

.footer__brand { color: var(--text3); font-size: 0.95rem; }
.footer__brand h3 {
  color: var(--amber);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer__col h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__col ul {
  list-style: none;
}

.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: var(--text3);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text4);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ═══ Animations ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Store Badges ═══ */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s;
}

.store-badge:hover {
  border-color: var(--amber);
  color: var(--text);
  transform: translateY(-2px);
}

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