/* =========================================================
   AIVORA — Shared Stylesheet
   "Turn Conversations Into Customers"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --navy-900: #12162a;
  --navy-850: #161b32;
  --navy-800: #1c2242;
  --navy-700: #262d52;
  --navy-600: #363f6e;
  --cream: #f4eee0;
  --cream-dim: #cfc9ba;
  --gold: #c9a463;
  --gold-bright: #ddbd80;
  --gold-dim: rgba(201, 164, 99, 0.14);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Subtle background texture: faint radial glow, consistent across pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -10%, rgba(201, 164, 99, 0.10), transparent 60%),
    radial-gradient(500px 380px at -5% 20%, rgba(54, 63, 110, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Eyebrows / labels
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-900);
  box-shadow: 0 8px 24px -8px rgba(201, 164, 99, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px -6px rgba(201, 164, 99, 0.7);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--navy-600);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-block { width: 100%; }

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 42, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 238, 224, 0.08);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 30px;
  width: auto;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.15s ease;
  position: relative;
}

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

.nav-links a.active { color: var(--gold-bright); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 0 80px;
  z-index: 1;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  color: var(--cream);
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero p.lead {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 34px;
}

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

/* =========================================================
   Sections / generic
   ========================================================= */
section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

section.tight { padding: 60px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
  color: var(--cream);
}

.section-head p {
  color: var(--cream-dim);
  font-size: 16.5px;
  margin-top: 14px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,238,224,0.12), transparent);
  border: none;
}

/* =========================================================
   Steps (Build / Embed / Convert)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cream);
}

.step-card p {
  color: var(--cream-dim);
  font-size: 15px;
}

/* =========================================================
   Browser mockup component
   ========================================================= */
.mock-browser {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy-850);
  border-bottom: 1px solid var(--navy-700);
}

.mock-browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy-600);
}

.mock-browser-bar .mock-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--cream-dim);
  background: var(--navy-700);
  padding: 4px 12px;
  border-radius: 999px;
}

.mock-body {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(244,238,224,0.04), transparent 40%),
    var(--navy-900);
  padding: 26px;
}

.mock-body h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 8px;
}

.mock-body p {
  font-size: 13.5px;
  color: var(--cream-dim);
  max-width: 260px;
}

.mock-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--navy-600);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Chat launcher bubble on mockups */
.chat-launcher {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(201,164,99,0.6);
}

.chat-launcher::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.5; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* Two-up mockup grid */
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* =========================================================
   Widget demo (large, detailed chat panel)
   ========================================================= */
.widget-demo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.widget-demo .mock-browser { min-height: 420px; }

.widget-demo .mock-body { min-height: 420px; }

.chat-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  top: 20px;
  width: 260px;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}

.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy-700);
  border-bottom: 1px solid var(--navy-600);
}

.chat-panel-head .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-panel-head strong {
  font-size: 13.5px;
  color: var(--cream);
}

.chat-panel-head small {
  display: block;
  font-size: 11px;
  color: var(--gold);
}

.chat-panel-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.bubble {
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.45;
}

.bubble.bot {
  background: var(--navy-700);
  color: var(--cream);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

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

.chat-panel-input {
  padding: 10px 12px;
  border-top: 1px solid var(--navy-600);
  font-size: 12px;
  color: var(--cream-dim);
  background: var(--navy-850);
}

/* =========================================================
   Feature grid (used on About / Home)
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--cream);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--cream-dim);
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
}

.price-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,164,99,0.08), var(--navy-800) 40%);
}

.price-badge {
  position: absolute;
  top: -13px;
  right: 32px;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 4px;
}

.price-card .price-sub {
  color: var(--cream-dim);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.price-amount span {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream-dim);
}

.price-billed {
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--cream-dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(244,238,224,0.06);
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================
   Contact / Forms
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin-bottom: 18px;
  color: var(--cream);
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244,238,224,0.07);
  font-size: 14.5px;
  color: var(--cream-dim);
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row strong {
  color: var(--cream);
  font-weight: 600;
  min-width: 90px;
  display: inline-block;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--cream);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--cream-dim);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(244,238,224,0.08);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img { height: 24px; }

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--cream);
}

.footer-col p.tagline {
  color: var(--cream-dim);
  font-size: 14px;
  max-width: 260px;
}

.footer-links h4 {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14.5px;
  color: var(--cream-dim);
  padding: 6px 0;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(244,238,224,0.06);
  font-size: 13px;
  color: var(--cream-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   About page extras
   ========================================================= */
.about-hero {
  padding-top: 70px;
  padding-bottom: 40px;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  margin: 16px 0 20px;
  max-width: 700px;
}

.about-hero p.lead {
  font-size: 17px;
  color: var(--cream-dim);
  max-width: 620px;
}

.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.story-block p {
  color: var(--cream-dim);
  font-size: 15.5px;
  margin-bottom: 16px;
}

.who-for-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.who-for-list li {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.who-for-list li::before {
  content: "—";
  color: var(--gold);
}

/* =========================================================
   Utility: page hero for inner pages
   ========================================================= */
.page-hero {
  padding: 70px 0 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin: 14px 0;
}

.page-hero p.lead {
  color: var(--cream-dim);
  font-size: 16.5px;
  max-width: 560px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .steps,
  .feature-grid { grid-template-columns: 1fr; }
  .mock-grid,
  .pricing-grid,
  .contact-grid,
  .story-block { grid-template-columns: 1fr; }
  .widget-demo { grid-template-columns: 1fr; }
  .who-for-list { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-850);
    flex-direction: column;
    padding: 20px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--navy-700);
  }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .price-card { padding: 30px 24px; }
  .cta-band { padding: 36px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}