/* ============================================
   ChatVault — Custom Landing Page Styles
   Dark editorial aesthetic, amber accent
   ============================================ */

/* --- Variables --- */
:root {
  --bg:        #0A0A0A;
  --bg-2:      #111111;
  --bg-card:   #181818;
  --fg:        #EDEDED;
  --fg-2:      #A3A3A3;
  --accent:    #F59E0B;
  --accent-2:  #C2410C;
  --border:    rgba(255,255,255,0.07);
  --radius:    12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography --- */
.accent { color: var(--accent); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 3rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--fg-2);
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,158,11,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(194,65,12,0.03) 0%, transparent 60%);
}

.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-left { display: flex; flex-direction: column; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
}

/* --- Phone Mockup --- */
.hero-right { display: flex; justify-content: center; }

.phone-frame {
  width: 280px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(245,158,11,0.08);
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #111;
  border-radius: 12px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: #0e0e0e;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg);
}

.chat-status {
  font-size: 0.6rem;
  color: #4ade80;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar { display: none; }

.msg p {
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 85%;
}

.bot-msg p {
  background: #242424;
  color: var(--fg);
  border-bottom-left-radius: 4px;
}

.user-msg {
  align-self: flex-end;
}

.user-msg p {
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chat-input-bar {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #1e1e1e;
  border-radius: 20px;
  width: fit-content;
}

.chat-dots span {
  width: 5px;
  height: 5px;
  background: var(--fg-2);
  border-radius: 50%;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* --- Stats Row --- */
.hero-stats {
  max-width: 1200px;
  margin: 3rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--fg-2);
  line-height: 1.4;
}

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

/* ============================================
   PROBLEM
   ============================================ */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-2);
}

.problem-inner { max-width: 1200px; margin: 0 auto; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.problem-card:hover { border-color: rgba(245,158,11,0.3); }

.problem-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 6rem 2rem;
  background: var(--bg);
}

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.feature-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}

.feature-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.feature-body p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 580px;
}

/* ============================================
   NICHES
   ============================================ */
.niches {
  padding: 6rem 2rem;
  background: var(--bg-2);
}

.niches-inner { max-width: 1200px; margin: 0 auto; }

.niches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.niche-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.niche-card p {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.65;
}

.niches-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--fg-2);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.niches-note strong { color: var(--accent); }

/* ============================================
   OUTCOMES
   ============================================ */
.outcomes {
  padding: 6rem 2rem;
  background: var(--bg);
  background-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,158,11,0.03) 0%, transparent 70%);
}

.outcomes-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.outcomes-headline-block { margin-bottom: 3rem; }

.outcomes-headline { margin-bottom: 0; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.outcome {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.outcome-metric {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.outcome p {
  font-size: 0.82rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.outcomes-cta {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.manifesto-attr {
  font-size: 0.82rem;
  color: var(--fg-2);
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: 6rem 2rem 8rem;
  background: var(--bg);
}

.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fg);
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--fg-2);
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .phone-frame { width: 240px; }
  .phone-screen { height: 360px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .niches-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { grid-template-columns: 50px 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 7rem 1.25rem 3rem; }
  .hero-headline { font-size: 2rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 220px; }
  .phone-screen { height: 320px; }
}