/* ===== Chatious Landing — Shared Styles ===== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #0b1020;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --primary: #6d28d9;
  --primary-2: #4f46e5;
  --accent: #06b6d4;
  --border: #e5e7eb;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --gradient: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #06b6d4 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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 { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(109, 40, 217, 0.12), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(6, 182, 212, 0.10), transparent 60%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Hero Mock ===== */
.chat-mock {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: rotate(-1deg);
}

.chat-header {
  padding: 16px 20px;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.chat-header .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
}

.chat-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-soft);
  min-height: 340px;
}

.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9);
}

.product-info { flex: 1; }
.product-info strong { display: block; font-size: 14px; }
.product-info span { font-size: 13px; color: var(--text-muted); }

.product-card button {
  background: var(--text);
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ===== Sections ===== */
section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 18px;
}

/* ===== Features Grid ===== */
.features {
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(109, 40, 217, 0.10);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
  font-weight: 800;
}

.cta-banner p {
  font-size: 17px;
  margin-bottom: 26px;
  opacity: 0.92;
}

.cta-banner .btn {
  background: white;
  color: var(--primary);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 { font-size: 20px; font-weight: 700; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 4px;
}
.plan-price .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .per { color: var(--text-muted); font-size: 15px; }
.plan-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

.plan ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.plan li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.plan .btn { margin-top: auto; width: 100%; }

/* ===== Onboarding track ===== */
.onboarding { background: var(--bg-soft); }

.onboarding-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.onboarding-step {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.ob-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-right: 28px;
  width: 52px;
}

.ob-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
  position: relative;
  z-index: 1;
}

.ob-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, #6d28d9, #c4b5fd);
  margin: 6px 0;
  opacity: 0.4;
}

.ob-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
  flex: 1;
  transition: box-shadow .2s ease;
}

.ob-card:hover { box-shadow: var(--shadow-md); }

.ob-tag {
  display: inline-block;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ob-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 700;
}

.ob-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ob-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ob-detail span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(109, 40, 217, 0.07);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .ob-left { margin-right: 16px; width: 36px; }
  .ob-num { width: 36px; height: 36px; font-size: 16px; }
  .ob-card { padding: 18px; }
}

/* ===== Content (Privacy / Long-form) ===== */
.content {
  padding: 72px 0;
  max-width: 820px;
  margin: 0 auto;
}

.content h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.content .updated {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 36px;
}

.content h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 700;
}

.content h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  font-weight: 600;
}

.content p, .content li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.content ul, .content ol {
  padding-left: 22px;
  margin: 10px 0;
}

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

.content strong { color: var(--text); }

/* ===== Footer ===== */
footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

footer h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #cbd5e1; font-size: 15px; }
footer a:hover { color: white; text-decoration: none; }

.footer-bar {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

footer .logo { color: white; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .cta-banner { padding: 36px 22px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0; }
}
