:root {
  --bg: #f7faf9;
  --panel: #ffffff;
  --ink: #10242a;
  --muted: #5f7278;
  --line: #dce7e8;
  --accent: #0b6b57;
  --accent-dark: #073f39;
  --amber: #b86b2b;
  --soft: #eef7f4;
  --shadow: 0 18px 48px rgba(16, 36, 42, 0.1);
  --shadow-strong: 0 28px 80px rgba(7, 63, 57, 0.18);
  --platform-carousel-speed: 28s;
  --ls-accent: var(--accent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(11, 107, 87, 0.12), transparent 32rem),
    var(--bg);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.motion-landing {
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-mini {
  display: none;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-mini a:hover,
.nav-mini a:focus-visible {
  color: var(--accent-dark);
}

.header-cta {
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.brand,
nav,
.hero__actions,
.metric-row,
.agent,
.answer-stack span {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.brand__mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
  font-size: 13px;
}

nav {
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  padding: 8px 0;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-dark);
}

.hero,
.section,
.platforms,
.demo {
  padding: 42px 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  gap: 28px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(7, 63, 57, 0.98), rgba(16, 36, 42, 0.96) 58%, rgba(11, 107, 87, 0.88)),
    var(--accent-dark);
  color: #fff;
}

.hero .hero-aurora {
  z-index: 0;
}

.hero__copy,
.hero__panel {
  position: relative;
  z-index: 1;
}

.hero .landing-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero .landing-lead,
.hero .landing-hero-note {
  color: rgba(255, 255, 255, 0.78);
}

.hero .landing-hero-note strong {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.landing-section-head h2,
.platforms__header h2,
.landing-cta-band__copy h2 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 14vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 9vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.hero__lead,
.section__header p,
.demo__intro p,
.agent p,
.metric-row span {
  color: var(--muted);
}

.hero__lead {
  max-width: 650px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(7, 63, 57, 0.18);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

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

.button--secondary {
  color: var(--accent-dark);
  background: #fff;
}

.hero__panel,
.lead-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-strong);
}

.hero__panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #4da38b, var(--amber));
  content: "";
}

.panel__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel__topline strong {
  color: var(--accent-dark);
}

.chat-preview__question {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.12;
}

.answer-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.answer-stack span {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #cfe3de;
  border-radius: 8px;
  font-weight: 700;
}

.section--tight {
  padding-top: 0;
}

.metric-row {
  flex-direction: column;
  gap: 12px;
}

.metric-row article {
  width: 100%;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.platforms {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 66px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(184, 107, 43, 0.28), transparent 24rem),
    linear-gradient(120deg, #061f22 0%, #073f39 48%, #0b6b57 100%);
}

.platforms::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.platforms__header {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 28px;
}

.platforms__header h2 {
  max-width: 840px;
  margin-bottom: 12px;
  scroll-margin-top: 92px;
  font-size: clamp(30px, 6vw, 58px);
}

.platforms .landing-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.platforms .landing-lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42rem;
}

.platforms__header p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.platform-carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-inline: -18px;
  padding: 10px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.platform-carousel::before,
.platform-carousel::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(18vw, 180px);
  height: 100%;
  content: "";
  pointer-events: none;
}

.platform-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #061f22, transparent);
}

.platform-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #0b6b57, transparent);
}

.platform-carousel__track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: platform-scroll var(--platform-carousel-speed) linear infinite;
}

.platform-carousel:hover .platform-carousel__track {
  animation-play-state: paused;
}

.platform-logo {
  display: inline-grid;
  width: clamp(154px, 18vw, 214px);
  height: 82px;
  flex: 0 0 auto;
  place-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.platform-logo--wide {
  width: clamp(190px, 22vw, 260px);
}

.platform-logo img {
  display: block;
  width: 100%;
  max-width: 174px;
  height: 44px;
  object-fit: contain;
}

.platform-logo--wide img {
  max-width: 216px;
  height: 50px;
}

@keyframes platform-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 8px), 0, 0);
  }
}

.section__header {
  max-width: 720px;
  margin-bottom: 24px;
}

.agent-list,
.lead-form {
  display: grid;
  gap: 14px;
}

.agent {
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.agent__number {
  flex: 0 0 auto;
  width: 42px;
  color: var(--amber);
  font-weight: 900;
}

.feature-showcase {
  padding: 42px 18px;
  background: #fff;
}

.feature-showcase .container {
  max-width: min(1100px, 92vw);
  margin-inline: auto;
}

.feature-showcase .section__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  background: #f9fafb;
  border: 1px solid #edf1f2;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(16, 36, 42, 0.08);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: #1c1d20;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.14;
}

.feature-card p {
  margin-bottom: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
}

.orbit-stage,
.answer-visual,
.channel-visual {
  position: relative;
  min-height: 0;
  flex: 1;
  margin-top: 20px;
}

.orbit-stage {
  display: grid;
  min-height: 280px;
  place-items: center;
}

.orbit-center {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 22px 52px rgba(11, 107, 87, 0.28);
}

.orbit-center::before {
  position: absolute;
  inset: -16px;
  background: rgba(11, 107, 87, 0.11);
  border-radius: inherit;
  animation: pulse-soft 3s ease-in-out infinite;
  content: "";
}

.orbit-center span {
  position: relative;
  font-size: 27px;
  font-weight: 900;
}

.orbit-ring {
  position: absolute;
  width: min(76vw, 260px);
  height: min(76vw, 260px);
  border: 1px dashed rgba(16, 36, 42, 0.18);
  border-radius: 999px;
}

.orbit-logo {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 9px;
  background: #fff;
  border: 1px solid #edf1f2;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16, 36, 42, 0.12);
  animation: orbit-logo 40s linear infinite;
  animation-delay: var(--orbit-delay);
  transform:
    rotate(var(--orbit-angle))
    translateY(-130px)
    rotate(var(--orbit-counter));
}

.orbit-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.answer-visual {
  display: grid;
  min-height: 286px;
  place-items: center;
}

.answer-window {
  position: relative;
  width: min(100%, 330px);
  padding: 22px;
  background: #10242a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 26px 58px rgba(16, 36, 42, 0.22);
}

.answer-window__bar {
  display: block;
  width: 54px;
  height: 6px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 999px;
}

.answer-window strong,
.answer-window p {
  display: block;
}

.answer-window strong {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.answer-window p {
  color: rgba(255, 255, 255, 0.72);
}

.answer-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.answer-source span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.answer-source b {
  color: #fff;
  font-size: 13px;
}

.copilot-chip {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #1c1d20;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(16, 36, 42, 0.2);
  transform: translateX(-50%);
}

.copilot-chip span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--accent);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.copilot-chip strong {
  font-size: 14px;
}

.copilot-chip i {
  display: block;
  width: 4px;
  height: 12px;
  background: var(--accent);
  border-radius: 999px;
  animation: bar-bounce 1.2s ease-in-out infinite;
}

.copilot-chip i:nth-of-type(2) { animation-delay: 0.15s; }
.copilot-chip i:nth-of-type(3) { animation-delay: 0.3s; }
.copilot-chip i:nth-of-type(4) { animation-delay: 0.45s; }
.copilot-chip i:nth-of-type(5) { animation-delay: 0.6s; }

.channel-visual {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 286px;
  margin-right: -22px;
  margin-left: -22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.channel-row {
  display: flex;
  width: max-content;
  gap: 14px;
}

.channel-row span {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 0 22px;
  color: var(--accent-dark);
  background: #eef7f4;
  border: 1px solid #d9ebe5;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 36, 42, 0.06);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.channel-row--left {
  animation: channel-left 18s linear infinite;
}

.channel-row--right {
  animation: channel-right 22s linear infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes orbit-logo {
  from {
    transform:
      rotate(var(--orbit-angle))
      translateY(-130px)
      rotate(var(--orbit-counter));
  }

  to {
    transform:
      rotate(calc(var(--orbit-angle) + 360deg))
      translateY(-130px)
      rotate(calc(var(--orbit-counter) - 360deg));
  }
}

@keyframes bar-bounce {
  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 20px;
  }
}

@keyframes channel-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes channel-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.demo {
  display: grid;
  gap: 24px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
}

.lead-form {
  padding: clamp(18px, 3vw, 28px);
}

.demo__intro {
  align-self: start;
}

.demo__summary {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 18px;
  background: var(--accent-dark);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.demo__summary strong {
  color: #fff;
  font-size: 16px;
}

.demo__summary span {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

input::placeholder,
textarea::placeholder {
  color: #8da0a4;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 107, 87, 0.16);
  border-color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-ok {
  padding: 12px 14px;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #cfe3de;
  border-radius: 8px;
}

.form-status.is-error {
  padding: 12px 14px;
  color: #a4382c;
  background: #fff3f0;
  border: 1px solid #f1c9c1;
  border-radius: 8px;
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 760px) {
  .site-header,
  .hero,
  .section,
  .platforms,
  .feature-showcase,
  .demo {
    padding-right: clamp(32px, 7vw, 96px);
    padding-left: clamp(32px, 7vw, 96px);
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 48px;
    min-height: 76vh;
  }

  .metric-row {
    flex-direction: row;
  }

  .feature-grid,
  .demo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo__intro {
    grid-column: span 1;
  }

  .lead-form {
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form label:nth-of-type(5),
  .lead-form label:nth-of-type(6),
  .lead-form button,
  .form-note,
  .form-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav-mini {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .platform-logo {
    width: 150px;
    height: 74px;
    padding: 15px 18px;
  }
}

/* ── Landing system (instructions.md) ── */
.landing-flow .landing-cost.container {
  padding-block: 0;
  margin-block: var(--ls-48, 48px);
}

.landing-flow .landing-proof.container {
  margin-block: var(--ls-48, 48px);
}

.landing-flow .landing-cta-band {
  margin-top: var(--ls-32, 32px);
}

.landing-sticky-cta {
  --bg: #f7faf9;
}

.section--problem {
  padding-block: var(--ls-64, 64px) var(--ls-48, 48px);
}

.pain-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.pain-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pain-card__icon {
  display: block;
  margin-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1;
}

.pain-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  padding: 32px 18px 48px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .nav-mini {
    display: flex;
  }

  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .landing-cta-band__inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 639px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-carousel__track {
    animation-duration: calc(var(--platform-carousel-speed) * 2);
  }

  .orbit-center::before,
  .orbit-logo,
  .copilot-chip i,
  .channel-row {
    animation: none;
  }
}
