/* Luxury editorial theme — cream, black, gold. */

:root {
  --bg: #f5f1e8;
  --white: #161616;
  --muted: #77716a;
  --border: #ddd7ce;
  --gold: #b08d57;
  --ink: #161616;
  --cream: #f5f1e8;
  --font: Inter, system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

body {
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
.hero-title,
.section-title,
.brand-text,
.footer-cta h2,
.mid-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.section-label,
.hero-kicker,
.demo-try,
.service-num {
  font-family: var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
}

.section {
  padding: 112px 0;
}

.section-inner {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

#home .hero-inner {
  border: 0;
  padding-top: 0;
}

/* Navbar */
.site-header {
  background: rgba(245, 241, 232, 0.72);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.86);
  border-bottom-color: var(--border);
  box-shadow: none;
}

.nav-links a {
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-links a::after {
  background: var(--gold);
  height: 1px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

/* Luxury buttons — gold fill from the left */
body .btn-primary,
body .btn-ghost {
  position: relative;
  overflow: hidden;
  z-index: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  box-shadow: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

body .btn-primary::before,
body .btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 550ms ease;
}

body .btn-primary:hover,
body .btn-ghost:hover {
  color: #ffffff;
  background: transparent;
  border-color: var(--gold);
  transform: none;
  box-shadow: none;
}

body .btn-primary:hover::before,
body .btn-ghost:hover::before {
  transform: scaleX(1);
}

/* Hero cinematic panel */
.hero {
  background:
    radial-gradient(700px 320px at 78% 40%, rgba(176, 141, 87, 0.16), transparent 60%),
    var(--cream);
  padding: 56px 0 24px;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1814;
  min-height: 460px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.05), rgba(22, 22, 22, 0.45)),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(22, 22, 22, 0.45));
  z-index: 4;
}

.dash-core,
.float-card {
  background: rgba(245, 241, 232, 0.78);
  color: var(--ink);
  border: 1px solid rgba(221, 215, 206, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.18);
}

.dash-core h2,
.dash-stat strong,
.float-card {
  color: var(--ink);
}

.dash-status,
.dash-online,
.dash-stat span,
.float-card span {
  color: var(--muted);
}

/* Editorial cards */
.service-card,
.agent-hub-card,
.demo-shell,
.mid-cta,
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: none;
  color: var(--ink);
}

.service-card:hover,
.agent-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(176, 141, 87, 0.12);
}

.service-icon {
  background: var(--cream);
  border-color: var(--border);
  color: var(--gold);
}

.service-tag,
.service-link,
.demo-try {
  color: var(--gold);
}

.service-card p,
.agent-hub-card p,
.section-subtitle,
.hero-sub,
.demo-benefit {
  color: var(--muted);
}

@media (min-width: 900px) {
  .services-grid .service-card:nth-child(1) {
    grid-column: span 8;
    min-height: 280px;
  }

  .services-grid .service-card:nth-child(2) {
    grid-column: span 4;
  }

  .services-grid .service-card:nth-child(3),
  .services-grid .service-card:nth-child(4) {
    grid-column: span 6;
  }
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Demo chrome on cream */
.chat-panel,
.agent-panel,
.ig-screen,
.phone-screen,
.kanban-col,
.flow-node {
  background: #fffdf8;
  color: var(--ink);
  border-color: var(--border);
}

.msg-user,
.agent-bubble.user {
  background: var(--ink);
  color: #f5f1e8;
}

.chip:hover,
.day-tab.is-active,
.time-slot.is-active {
  background: var(--ink);
  color: #f5f1e8;
  border-color: var(--ink);
}

.site-footer {
  background: #161616;
  color: #f5f1e8;
  border-top: 0;
}

.site-footer .brand-text,
.site-footer h2,
.site-footer h3,
.site-footer a,
.footer-copy {
  color: #f5f1e8;
}

.site-footer p,
.site-footer .footer-col h3,
.footer-copy {
  color: #cfc6ba;
}

.site-footer .btn-primary,
.site-footer .btn-ghost {
  color: #f5f1e8;
  border-color: var(--gold);
}

.mid-cta {
  background:
    linear-gradient(180deg, rgba(176, 141, 87, 0.08), transparent 40%),
    #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  body .btn-primary::before,
  body .btn-ghost::before {
    transition: none;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .section {
    padding: 72px 0;
  }
}
