/* ============================================================
   CHATIVA LANDING PAGE — style.css
   Same design system as the Chativa app
   ============================================================ */

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

/* ── CSS Variables (same as app) ─────────────────────────── */
:root {
  --accent:          #F59E0B;
  --accent-dark:     #D97706;
  --accent-glow:     rgba(245, 158, 11, 0.18);
  --accent-gradient: linear-gradient(135deg, #F59E0B, #FBBF24);

  --bg-dark:         #020617;
  --bg-navy:         #0F172A;
  --bg-surface:      #1E293B;
  --bg-card:         rgba(255,255,255,0.04);

  --text-white:      #FFFFFF;
  --text-muted:      rgba(255,255,255,0.55);
  --text-faint:      rgba(255,255,255,0.25);

  --glass-border:    rgba(255,255,255,0.08);
  --radius-lg:       24px;
  --radius-md:       16px;
  --radius-sm:       10px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }

/* ── Gradient text ───────────────────────────────────────── */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(245,158,11,0.4);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(245,158,11,0.4);
  color: var(--accent);
}

.btn-lg { padding: 18px 36px; font-size: 15px; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 20px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  border-color: rgba(245,158,11,0.2);
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

/* ── Icon box ────────────────────────────────────────────── */
.icon-box {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* ── Section label ───────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--glass-border); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #020617 0%, #0F172A 100%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }

.logo-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
  padding: 6px;
}
.logo-ring img { width: 100%; height: 100%; object-fit: contain; }

.logo-text {
  font-family: 'Verdana', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #10B981;
  margin-top: 2px;
}
.navbar-cta { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge { margin-bottom: 24px; }

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Mock chat window ────────────────────────────────────── */
.hero-visual { position: relative; }

.mock-window {
  background: var(--bg-navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.08);
}

.mock-header {
  background: linear-gradient(135deg, #020617 0%, #0F172A 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.mock-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mock-name { font-size: 13px; font-weight: 800; color: white; }
.mock-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 4px;
}
.mock-status::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.mock-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.mock-msg.agent {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}
.mock-msg.customer {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  border-bottom-right-radius: 4px;
}
.mock-msg.ai {
  align-self: flex-start;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-left: 2px solid rgba(99,102,241,0.6);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}

.ai-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg,#6366F1,#8B5CF6);
  color: white;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.mock-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.mock-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.mock-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mock-badge {
  position: absolute;
  top: -14px; right: 24px;
  background: #10B981;
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; color: white; }
.feature-card p  { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 26px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(245,158,11,0.2) 100%);
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(245,158,11,0.3);
}
.step h3 { font-size: 16px; margin-bottom: 8px; color: white; }
.step p  { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   TECH PILLS
   ============================================================ */
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tech-pill:hover {
  border-color: rgba(245,158,11,0.3);
  color: var(--accent);
  background: rgba(245,158,11,0.06);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta-section p  {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(90deg, #020617 0%, #0F172A 100%);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-section { padding: 48px 24px; }
  .navbar-cta .btn-outline { display: none; }
}
