/* CharismeAI Website — Dark theme, minimal, modern, conversion-optimized */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #0A0A0F;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --text-primary: #F8F8FF;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1080px;
  --green: #22C55E;
  --red: #EF4444;
  --orange: #F59E0B;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--purple);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.nav-active {
  color: var(--purple-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--purple);
  color: white !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  color: white !important;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.45);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

/* ─── Section shared ─── */
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: -32px;
  margin-bottom: 40px;
}

/* ─── Hero ─── */
.hero {
  padding: 120px 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--purple-light) !important;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: background 0.2s;
}

.app-store-badge:hover {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light) !important;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat strong {
  color: var(--text-primary);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ─── Phone mockup ─── */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  width: 280px;
  background: #13131A;
  border-radius: 32px;
  border: 2px solid rgba(124, 58, 237, 0.25);
  box-shadow:
    0 0 60px rgba(124, 58, 237, 0.12),
    0 20px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 6px;
  background: #1E1E2A;
  border-radius: 3px;
  margin: 12px auto 8px;
}

.phone-screen {
  padding: 0 12px 16px;
}

.phone-app-bar {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 0 12px;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── Chat bubbles (shared) ─── */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 88%;
  word-wrap: break-word;
}

.chat-bubble.received {
  background: #1E1E2A;
  color: rgba(255, 255, 255, 0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.sent {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-spacer {
  height: 6px;
}

.chat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.chat-tone-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 4px;
  width: fit-content;
}

.reply-card {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: border-color 0.2s;
}

.reply-card.active {
  border-color: var(--purple);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.08);
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: border-color 0.25s;
}

.step:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-arrow {
  color: var(--purple);
  margin-top: 60px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ─── Live Examples ─── */
.examples {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.example-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.example-convo,
.example-result,
.example-outcome {
  flex: 1;
  min-width: 0;
}

.example-convo .mini-chat,
.example-outcome .mini-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-convo .chat-bubble,
.example-outcome .chat-bubble {
  font-size: 0.8rem;
  padding: 8px 12px;
}

.example-label {
  margin-bottom: 10px;
}

.example-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.example-tag.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--green);
}

.example-tone {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.example-tone.flirty {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
}

.example-tone.genz {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.example-tone.poetic {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
}

.example-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-result .reply-card {
  font-size: 0.8rem;
  padding: 8px 12px;
}

.example-arrow {
  flex-shrink: 0;
  opacity: 0.4;
}

/* ─── Conversation Analysis Preview ─── */
.analysis-preview {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.analysis-demo {
  display: flex;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.analysis-convo {
  flex: 1;
}

.analysis-convo .mini-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-convo .chat-bubble {
  font-size: 0.82rem;
  padding: 8px 12px;
}

.analysis-convo-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.analysis-result {
  flex: 1.2;
}

.analysis-vibe {
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--purple-light);
  margin-bottom: 20px;
  line-height: 1.4;
}

.analysis-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.meter-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.meter-fill.low {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.meter-fill.high {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.meter-score {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meter-score span {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.analysis-tip {
  padding: 12px 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.analysis-tip strong {
  color: var(--purple-light);
}

.analysis-warning {
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 500;
}

/* ─── Features ─── */
.features {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: background 0.25s, border-color 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.2);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Tones Showcase ─── */
.tones-showcase {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tone-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tone-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.tone-example:hover {
  border-color: rgba(124, 58, 237, 0.25);
  background: var(--bg-card-hover);
}

.tone-name {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.friendly-bg { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.flirty-bg { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.freaky-bg { background: rgba(249, 115, 22, 0.15); color: #FB923C; }
.genz-bg { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.rude-bg { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.poetic-bg { background: rgba(99, 102, 241, 0.15); color: #A5B4FC; }
.hype-bg { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }

.tone-reply {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

/* ─── Final CTA ─── */
.final-cta {
  padding: 100px 24px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-logo {
  height: 72px;
  width: auto;
  border-radius: 18px;
  margin-bottom: 24px;
  position: relative;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}

.final-cta .btn {
  position: relative;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--purple-light);
}

/* ─── Legal Pages ─── */
.legal {
  padding: 120px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

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

.legal .last-updated {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal p, .legal li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

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

.legal a {
  color: var(--purple-light);
}

.support-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
  text-align: center;
}

.support-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-box p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-phone {
    margin-top: 20px;
  }

  .example-row {
    flex-direction: column;
    text-align: center;
  }

  .example-row .mini-chat {
    align-items: center;
  }

  .example-arrow {
    transform: rotate(90deg);
  }

  .analysis-demo {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 110px 20px 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .phone-frame {
    width: 240px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tone-examples {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stat-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .example-row {
    padding: 20px;
  }

  .analysis-demo {
    padding: 20px;
  }
}

/* ─── Tabs (kept for compat) ─── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
