:root {
  color-scheme: dark;
  --ink: #101820;
  --ink-soft: #172126;
  --paper: #f6f1e8;
  --paper-soft: #e8e1d5;
  --teal: #5a9a93;
  --gold: #d6a84b;
  --orange: #ff8426;
  --muted: #aeb8cb;
  --line: rgba(246, 241, 232, 0.17);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(90, 154, 147, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 154, 147, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 9%, rgba(214, 168, 75, 0.14), transparent 31%),
    radial-gradient(circle at 12% 28%, rgba(90, 154, 147, 0.14), transparent 34%),
    var(--ink);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  font-weight: 850;
}

.skip-link:focus { transform: none; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 7px;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

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

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 82px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: 600px;
  padding: clamp(42px, 6vw, 76px);
  overflow: hidden;
  background: rgba(23, 33, 38, 0.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.detail-hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }

.lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 2.5vw, 1.55rem);
  line-height: 1.5;
  font-weight: 620;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(214, 168, 75, 0.2);
}

.button.secondary {
  color: var(--paper);
  background: transparent;
  border-color: var(--line);
}

.hero-diagram {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  min-width: 0;
}

.workflow-node {
  display: grid;
  align-content: space-between;
  min-height: 150px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(214, 168, 75, 0.65);
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.workflow-node:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 126px;
  color: var(--paper);
  background: var(--ink-soft);
  border-color: var(--teal);
}

.workflow-node strong {
  font-size: 1.06rem;
  line-height: 1.18;
}

.workflow-node span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  margin-top: 70px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.content-panel h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.demo-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  background: rgba(23, 33, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.demo-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.demo-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 11px);
  justify-self: center;
}

.card-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px 25px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.06;
}

.demo-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.proof-row span,
.fact {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--paper-soft);
  background: rgba(90, 154, 147, 0.12);
  border: 1px solid rgba(90, 154, 147, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.principles,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle,
.content-panel {
  padding: 28px;
  background: rgba(23, 33, 38, 0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.principle strong {
  display: block;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
}

.principle h3 {
  margin: 18px 0 8px;
  font-size: 1.24rem;
}

.principle p,
.content-panel p,
.content-panel li,
.cta-panel p {
  color: var(--muted);
}

.video-panel {
  margin-top: 48px;
  padding: 14px;
  background: #080d12;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.video-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
}

.video-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 13px 6px 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.content-grid { margin-top: 42px; }

.content-panel h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }

.content-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.content-panel li + li { margin-top: 9px; }

.content-panel.wide { grid-column: span 2; }

.cta-panel {
  margin-top: 42px;
  padding: clamp(30px, 5vw, 54px);
  color: var(--ink);
  background: var(--paper);
  border-left: 12px solid var(--teal);
  border-radius: 14px;
}

.cta-panel p { color: #4e5b61; }

.cta-panel .button.secondary {
  color: var(--ink);
  border-color: rgba(16, 24, 32, 0.24);
}

.disclosure {
  margin-top: 28px;
  padding: 18px 20px;
  color: var(--muted);
  background: rgba(214, 168, 75, 0.08);
  border: 1px solid rgba(214, 168, 75, 0.28);
  border-radius: 10px;
  font-size: 0.92rem;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero,
  .demo-grid,
  .principles,
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero { min-height: auto; }
  .demo-card:last-child {
    grid-column: auto;
    width: 100%;
  }
  .content-panel.wide { grid-column: auto; }
  .section-head { display: grid; }
  .section-head p { text-align: left; }
}

@media (max-width: 560px) {
  .site-nav,
  .wrap,
  footer { width: min(100% - 22px, 1180px); }

  .site-nav { align-items: flex-start; }
  .nav-links { display: grid; text-align: right; }
  .wrap { padding-top: 14px; }
  .hero { padding: 28px 22px; border-radius: 18px; }
  h1 { font-size: clamp(3rem, 18vw, 4.4rem); }
  .detail-hero h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
  .hero-diagram { grid-template-columns: minmax(0, 1fr); }
  .workflow-node:nth-child(3) { grid-column: auto; }
  .section { margin-top: 52px; }
  .card-body,
  .principle,
  .content-panel { padding: 22px; }
  .video-panel { padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover, .demo-card:hover { transform: none; }
}
