:root {
  --bg: #e8dcc6;
  --bg-alt: #f3ead9;
  --card: rgba(255, 252, 247, 0.82);
  --card-strong: rgba(250, 245, 236, 0.92);
  --border: #4a3b2a;
  --border-soft: rgba(74, 59, 42, 0.14);
  --text: #251b11;
  --muted: #5d4d3d;
  --accent: #262018;
  --accent-2: #8b7b64;
  --dark-panel: #111111;
  --shadow: 0 14px 28px rgba(37, 27, 17, 0.06);
  --shadow-soft: 0 10px 22px rgba(37, 27, 17, 0.045);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #e5d7bf 100%);
}

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

iframe {
  border: 0;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(74, 59, 42, 0.08);
  border-bottom: 1px solid rgba(74, 59, 42, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(232, 220, 198, 0.88);
  border-bottom: 1px solid rgba(74, 59, 42, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--text);
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hero {
  padding-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(380px, 42vw, 520px);
  padding: 0.5rem 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text,
.section-intro,
.section-subtitle,
.supporting-note,
.footer-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 1rem 0 0;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 59, 42, 0.18);
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  width: min(100%, 560px);
  min-height: clamp(380px, 42vw, 520px);
  justify-self: center;
  align-self: stretch;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-grid,
.capability-grid,
.steps-grid,
.two-up-grid,
.footer-grid,
.example-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.75rem;
}

.feature-card,
.mini-card,
.step-card,
.text-card,
.footer-card {
  padding: 1.25rem;
}

.feature-card h2,
.mini-card h3,
.step-card h3,
.footer-card h3,
.example-copy h3,
.video-copy h3,
.panel h3,
.engine-card h3,
.learning-card h3,
.text-card h3 {
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.feature-card h2,
.panel h3,
.engine-card h3,
.learning-card h3,
.video-copy h3,
.section-title.small {
  font-size: 1.2rem;
}

.feature-card p,
.mini-card p,
.step-card p,
.video-copy p,
.example-copy p,
.engine-card li,
.learning-card li,
.text-card p,
.footer-card li,
.proof-list li,
.panel li,
.supporting-note {
  color: var(--muted);
  line-height: 1.7;
}

.intro-block {
  margin-bottom: 1.4rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.section-title.large {
  max-width: none;
  font-size: clamp(2.05rem, 3.8vw, 3.15rem);
  text-wrap: balance;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading-row.compact {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 48ch;
  margin: 0;
}

.two-column-panels,
.split-layout {
  display: grid;
  gap: 1rem;
}

.two-column-panels {
  grid-template-columns: 1.05fr 0.95fr;
}

.panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-soft);
}

.panel ul,
.engine-card ul,
.learning-card ol,
.footer-card ul,
.proof-list {
  margin: 0;
  padding-left: 1.1rem;
}

.panel li + li,
.engine-card li + li,
.learning-card li + li,
.footer-card li + li,
.proof-list li + li {
  margin-top: 0.55rem;
}

.panel-dark {
  background: #171513;
  color: #fff;
}

.panel-dark h3,
.panel-dark li {
  color: #fff;
}

.panel-dark li {
  opacity: 0.88;
}

.panel-light {
  background: rgba(255, 255, 255, 0.25);
}

.example-grid {
  grid-template-columns: repeat(2, 1fr);
}

.example-card {
  overflow: hidden;
}

.example-copy,
.video-copy {
  padding: 1.15rem 1.15rem 0;
}

.example-card img,
.image-frame img {
  width: 100%;
  height: auto;
}

.video-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(100%, 860px);
  margin: 0 auto;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  min-height: 100%;
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.36) 100%);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(37, 27, 17, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.video-copy {
  padding: 1.15rem 1.4rem 1.15rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.five-up {
  grid-template-columns: repeat(5, 1fr);
}

.supporting-note {
  margin: 1rem 0 0;
  max-width: 80ch;
}

.steps-grid {
  grid-template-columns: repeat(5, 1fr);
}

.step-card {
  position: relative;
  padding-top: 3.2rem;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(37, 27, 17, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
}

.split-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.engine-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.engine-learning-card {
  grid-column: 1 / -1;
}

.engine-card,
.learning-card {
  padding: 1.25rem;
}

.architecture-frame,
.image-frame {
  overflow: hidden;
}

.architecture-frame {
  width: min(100%, 760px);
  margin: 0 auto;
}

.architecture-frame img {
  background: #ffffff;
}

.two-up-grid {
  grid-template-columns: repeat(2, 1fr);
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  border-top: 1px solid rgba(74, 59, 42, 0.08);
  border-bottom: 1px solid rgba(74, 59, 42, 0.08);
}

.consume-deploy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cluster-card {
  padding: 1.35rem;
}

.option-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.option-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(74, 59, 42, 0.12);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.option-card h3 {
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-card {
  height: 100%;
}

.pair-list {
  display: grid;
  gap: 1rem;
}

.pair-list h3 {
  margin: 0 0 0.4rem;
}

.proof-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.site-footer {
  padding-top: 0;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.footer-grid-single {
  grid-template-columns: 1fr;
}

.footer-card {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1100px) {
  .feature-grid,
  .four-up,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .five-up {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid,
  .two-column-panels,
  .split-layout,
  .proof-layout,
  .two-up-grid,
  .footer-grid,
  .footer-grid-single,
  .example-grid,
  .consume-deploy-layout,
  .engine-layout,
  .option-grid-two,
  .video-card {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 2.5rem 0;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .feature-grid,
  .four-up,
  .five-up,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero-visual {
    width: 100%;
    max-width: 420px;
    min-height: 320px;
  }

  .video-card {
    width: 100%;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }
}


.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-widget-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(74, 59, 42, 0.16);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(37, 27, 17, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-widget-toggle:hover {
  transform: translateY(-1px);
  background: #1b140d;
}

.chat-widget-toggle-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 18px;
}

.chat-widget-panel {
  width: min(430px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 110px));
}

.chat-widget-panel:not([hidden]) {
  display: block;
}

.chat-widget-panel[hidden] {
  display: none !important;
}

.chat-widget-frame-wrap {
  position: relative;
  height: 100%;
  padding: 8px;
  background: rgba(246, 239, 223, 0.94);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 28px 56px rgba(37, 27, 17, 0.18);
  overflow: hidden;
}

.chat-widget-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
  border-radius: 18px;
}


body.chat-open {
  overflow: hidden;
}


@media (max-width: 980px) {
  .hero-copy {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .chat-widget {
    right: 16px;
    left: 16px;
    bottom: 16px;
    align-items: stretch;
  }

  .chat-widget-toggle {
    justify-content: center;
  }

  .chat-widget-panel {
    width: 100%;
    height: min(78vh, 680px);
  }
}


.demo-title {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.intro-block .section-intro {
  max-width: 100ch;
}

.feature-card {
  background: rgba(255, 255, 255, 0.42);
}

.cluster-card .eyebrow {
  margin-bottom: 0.55rem;
}
