/* PrimeChat — Direction A: Minimalist + Chat-Focused
 * Locked visual system. Used across every page.
 */

:root {
  --primary: #1f93ff;
  --primary-dark: #1a7fdb;
  --primary-soft: #e8f3ff;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --ink: #0b1220;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --line: #e6e8ee;
  --bg: #fafbfc;
  --surface: #ffffff;
  --shadow-sm: 0 4px 12px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 12px 28px -12px rgba(31, 147, 255, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(31, 147, 255, 0.25), 0 8px 24px rgba(11, 18, 32, 0.06);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

h1 em, h2 em { font-style: normal; color: var(--primary); }

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* NAV */
nav.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  flex: 1;
  justify-content: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

/* MOBILE NAV */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { color: var(--primary); background: var(--surface); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f8fafc; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

/* PILL / BADGE */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* HERO */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: url('/assets/img/decor/blue-grid.png') no-repeat center / contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; max-width: 760px; }
.hero .lede { max-width: 600px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.trust { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .check { color: var(--accent); font-weight: 700; }

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

/* CHAT MOCKUP (hero device) */
.chat-stage { position: relative; height: 480px; }
.chat-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  width: 340px;
}
.chat-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f93ff, #10b981);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.chat-card .name { font-weight: 600; font-size: 14px; }
.chat-card .status { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.chat-card .status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 8px; max-width: 85%; }
.bubble-bot { background: #f3f5f9; color: var(--ink); border-top-left-radius: 4px; }
.bubble-user { background: var(--primary); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.chat-1 { top: 0; left: 0; animation: float 6s ease-in-out infinite; }
.chat-2 { bottom: 0; right: 0; width: 280px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* SECTIONS */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* LLM SHOWCASE STRIP — "Powered by the world's best AI" */
.llm-strip {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.llm-strip .label {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.llm-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.llm-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: 0.2s;
}
.llm-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.llm-tile img { height: 18px; width: auto; }

/* Brand pair-tile (the "X x PrimeChat" image badges) */
.pair-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
}
.pair-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pair-tile img { height: 32px; width: auto; }
.pair-tile span { font-weight: 600; font-size: 14px; color: var(--ink); }

/* INTEGRATION GRID (real brand pngs) */
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.integration-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.integration-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.integration-card img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.integration-card h4 { font-size: 15px; font-weight: 700; }
.integration-card p { font-size: 13px; color: var(--ink-soft); }

/* HERO ACCENT (e.g. robot floating beside H1 on AI Agents page) */
.hero-accent { position: absolute; pointer-events: none; opacity: 0.85; }

/* SPLIT — image + text section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: 20px; max-width: 100%; }
.split .text h2 { margin-bottom: 14px; }
.split .text p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin-bottom: 14px; }

/* PEOPLE / PERSONA CALLOUT (use-case pages) */
.persona-callout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
}
.persona-callout img { width: 100%; max-height: 320px; object-fit: contain; }
.persona-callout h3 { font-size: 22px; margin-bottom: 10px; }
.persona-callout p { color: var(--ink-soft); font-size: 16px; }

@media (max-width: 860px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .persona-callout { grid-template-columns: 1fr; text-align: center; }
}

/* CHANNELS STRIP */
.channels-strip {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.channels-label {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.channels-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.channels-row img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.2s;
}
.channels-row a:hover img { filter: grayscale(0%); opacity: 1; }

/* CARDS / GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon-box img { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* USE-CASE TILES */
.usecase-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.usecase-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.usecase-tile .img-wrap {
  background: var(--primary-soft);
  padding: 24px;
  display: grid;
  place-items: center;
  height: 180px;
  overflow: hidden;
}
.usecase-tile .img-wrap img { max-height: 140px; width: auto; }
.usecase-tile .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.usecase-tile .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 10px;
  align-self: flex-start;
}
.usecase-tile h3 { font-size: 19px; margin-bottom: 8px; }
.usecase-tile p { color: var(--ink-soft); font-size: 14px; flex: 1; margin-bottom: 14px; }
.usecase-tile .more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.usecase-tile .more::after { content: '→'; transition: transform 0.2s; }
.usecase-tile:hover .more::after { transform: translateX(3px); }

/* TRUST STRIP (G2 BADGES) */
.g2-strip {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.g2-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.g2-row img { height: 88px; width: auto; }

/* TESTIMONIALS */
.testimonials { background: var(--surface); }
.testimonial {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.testimonial .quote { font-size: 16px; line-height: 1.55; margin-bottom: 20px; color: var(--ink); }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial .author-name { font-weight: 700; font-size: 14px; }
.testimonial .author-role { font-size: 13px; color: var(--ink-soft); }
.testimonial .stars { color: #f59e0b; margin-bottom: 12px; font-size: 14px; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.price-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.price-card .plan-name { font-size: 16px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.price-card .price { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-card .price small { font-size: 14px; color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.price-card .desc { color: var(--ink-soft); margin: 14px 0 24px; font-size: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; }
.price-card li img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; }

/* CTA BAND */
.cta-band { padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, #1f93ff 0%, #0b6bd6 100%);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card::before, .cta-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.cta-card::before { width: 300px; height: 300px; top: -100px; right: -80px; }
.cta-card::after { width: 200px; height: 200px; bottom: -80px; left: -50px; }
.cta-card h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-card p { font-size: 18px; opacity: 0.92; margin-bottom: 28px; position: relative; }
.cta-card .btn { position: relative; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  transition: 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* FOOTER */
footer.footer { padding: 60px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; transition: 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-brand p { color: var(--ink-soft); font-size: 14px; margin: 16px 0; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* PAGE-SPECIFIC */
.page-hero { padding: 100px 0 60px; text-align: center; }
.page-hero h1 { margin: 0 auto 20px; max-width: 820px; }
.page-hero .lede { max-width: 640px; margin: 0 auto 28px; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); display: grid; place-items: center; }
.blog-card .cover-icon { font-size: 56px; }
.blog-card .body { padding: 24px; }
.blog-card .meta { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; font-weight: 600; }
.blog-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { color: var(--ink-soft); font-size: 14px; }

.post { padding: 80px 0; }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h1 { margin-bottom: 16px; }
.post-content .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-content h2 { font-size: 28px; margin: 40px 0 14px; }
.post-content h3 { font-size: 22px; margin: 32px 0 10px; }
.post-content p { margin-bottom: 16px; font-size: 17px; line-height: 1.7; color: #1e293b; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; font-size: 17px; line-height: 1.7; color: #1e293b; }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.post-content code { background: var(--primary-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-content a { color: var(--primary); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .chat-stage { height: 420px; max-width: 340px; margin: 0 auto; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 24px; gap: 14px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-card { padding: 48px 28px; }
  .g2-row { gap: 28px; }
  .g2-row img { height: 70px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  h1 { font-size: 36px; }
  .channels-row { gap: 28px; }
  .channels-row img { height: 26px; }
}
