:root {
  color-scheme: light;
  --ink: #101820;
  --carbon: #17211f;
  --paper: #f5f1e8;
  --paper-strong: #fffaf0;
  --line: rgba(16, 24, 32, 0.16);
  --muted: #5a635d;
  --cyan: #00a7b5;
  --green: #2e7d5a;
  --amber: #d79a2b;
  --magenta: #9a4c72;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--paper-strong);
  border: 1px solid var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(128px, 190px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(245, 241, 232, 0.22);
  color: var(--paper-strong);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topbar.is-solid {
  background: rgba(245, 241, 232, 0.94);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  width: 178px;
  min-width: 128px;
}

.brand img {
  width: 100%;
  height: auto;
}

.topbar:not(.is-solid) .brand img {
  filter: invert(1) brightness(1.9) saturate(0.2);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav a,
.nav-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero {
  min-height: 86svh;
  display: flex;
  align-items: end;
  padding: 132px clamp(20px, 6vw, 72px) 64px;
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0.74) 45%, rgba(16, 24, 32, 0.34) 100%),
    url("assets/brand/social-card.png") center / cover no-repeat,
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 9.75rem;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: lowercase;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  border-radius: 6px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button-primary {
  background: var(--paper-strong);
  color: var(--ink);
}

.button-secondary {
  color: var(--paper-strong);
  border-color: rgba(255, 250, 240, 0.52);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, 100%);
  margin: 36px 0 0;
}

.hero-metrics div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 6px;
  background: rgba(245, 241, 232, 0.08);
}

.hero-metrics dt {
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 72px);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.capabilities {
  background:
    linear-gradient(0deg, rgba(245, 241, 232, 0.94), rgba(245, 241, 232, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(46, 125, 90, 0.12) 96px 97px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(0, 167, 181, 0.1) 96px 97px);
}

.capability-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability-card,
.use-case-grid article,
.demo-shell,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.capability-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.card-index {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.capability-card h3,
.use-case-grid h3 {
  margin: auto 0 12px;
  font-size: 1.4rem;
  line-height: 1.05;
}

.capability-card p,
.use-case-grid p,
.faq-list p,
.demo-shell p {
  color: var(--muted);
}

.demo-section {
  background: var(--carbon);
  color: var(--paper-strong);
}

.demo-shell {
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.03)),
    var(--ink);
  border-color: rgba(255, 250, 240, 0.2);
  box-shadow: var(--shadow);
}

.scenario-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.scenario-button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 250, 240, 0.72);
  cursor: pointer;
  font-weight: 900;
}

.scenario-button.is-active {
  background: var(--paper-strong);
  color: var(--ink);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.signal-panel,
.output-panel,
.workflow-steps {
  min-height: 310px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.panel-label {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-panel h3 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1;
}

.signal-panel p:not(.panel-label),
.output-panel p:not(.panel-label) {
  font-size: 1.02rem;
}

.signal-meter {
  height: 12px;
  margin-top: 34px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.signal-meter span {
  display: block;
  width: var(--meter, 82%);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
}

.workflow-steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 12px;
}

.workflow-steps li {
  counter-increment: step;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(255, 250, 240, 0.84);
}

.workflow-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.output-panel {
  display: flex;
  flex-direction: column;
}

.output-panel p:last-child {
  margin-top: auto;
  color: var(--paper-strong);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.18;
}

.use-cases {
  background: var(--paper-strong);
}

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

.use-case-grid article {
  min-height: 230px;
  padding: 24px;
}

.faq {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(960px, 100%);
}

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.12rem;
}

.footer {
  min-height: 220px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 34px clamp(20px, 6vw, 72px);
  background: var(--ink);
  color: var(--paper-strong);
}

.footer img {
  width: 52px;
  height: 52px;
}

.footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
}

.footer a {
  font-weight: 900;
}

@media (max-width: 980px) {
  h1 {
    font-size: 6.7rem;
  }

  .section-heading h2 {
    font-size: 3.35rem;
  }

  .signal-panel h3 {
    font-size: 2.3rem;
  }

  .topbar {
    grid-template-columns: 150px auto;
  }

  .nav {
    display: none;
  }

  .capability-grid,
  .demo-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .capability-card,
  .signal-panel,
  .output-panel,
  .workflow-steps,
  .use-case-grid article {
    min-height: auto;
  }

  .output-panel p:last-child {
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand {
    width: 142px;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  .hero {
    min-height: 82svh;
    padding: 112px 18px 40px;
  }

  h1 {
    font-size: 4.4rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 18px;
  }

  .section-heading h2 {
    font-size: 2.3rem;
  }

  .signal-panel h3 {
    font-size: 1.7rem;
  }

  .scenario-switcher {
    width: 100%;
    grid-template-columns: 1fr;
  }

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