:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716d;
  --paper: #f4f1ea;
  --paper-strong: #fffaf0;
  --line: rgba(23, 32, 29, 0.14);
  --finance: #0b6f75;
  --finance-soft: #d9eeee;
  --office: #5e5f9f;
  --office-soft: #e6e5f5;
  --oil: #9a5822;
  --oil-soft: #f2dfc8;
  --accent: #c72f24;
  --charcoal: #202823;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(11, 111, 117, 0.08), transparent 34%),
    linear-gradient(310deg, rgba(154, 88, 34, 0.12), transparent 42%),
    var(--paper);
  font-family: Avenir Next, Seravek, Gill Sans, Trebuchet MS, sans-serif;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--paper-strong);
  background: var(--charcoal);
  border-radius: 50%;
  font-family: Georgia, Cambria, serif;
  font-size: 21px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 10px 12px;
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.language-button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px) 48px;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: Georgia, Cambria, Times New Roman, serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
}

.hero-lede {
  max-width: 760px;
  color: #3f4c47;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 750;
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.54);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: var(--paper-strong);
  background:
    linear-gradient(145deg, rgba(199, 47, 36, 0.28), transparent 42%),
    linear-gradient(315deg, rgba(11, 111, 117, 0.42), transparent 50%),
    var(--charcoal);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.signal-row,
.metric-grid,
.workflow-strip {
  position: relative;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 14px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  background: #74d57e;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(116, 213, 126, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 70px 0 28px;
  background: rgba(255, 250, 240, 0.18);
  border: 1px solid rgba(255, 250, 240, 0.18);
}

.metric-grid div {
  min-height: 128px;
  padding: 18px 14px;
  background: rgba(32, 40, 35, 0.72);
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, Cambria, Times New Roman, serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.metric-grid span {
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.workflow-strip span {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 4px;
}

.section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.band {
  background: rgba(255, 250, 240, 0.6);
  border-block: 1px solid var(--line);
}

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

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-family: Georgia, Cambria, Times New Roman, serif;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
}

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

.business-card,
.demo-card {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.business-card {
  padding: clamp(22px, 4vw, 38px);
}

.card-topline,
.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.finance-pill {
  color: #06484d;
  background: var(--finance-soft);
}

.oil-pill {
  color: #653610;
  background: var(--oil-soft);
}

.office-pill {
  color: #35366d;
  background: var(--office-soft);
}

.business-card h3 {
  margin: 26px 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.business-card p,
.demo-copy p {
  color: #52605b;
  line-height: 1.58;
}

.business-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.business-card li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.demos-section {
  padding-bottom: 92px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.filter.is-active {
  color: var(--paper-strong);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

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

.demo-card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.demo-card.is-hidden {
  display: none;
}

.thumbnail-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #101512;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transform: scale(1.01);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.demo-card:hover img {
  opacity: 1;
  transform: scale(1.045);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  color: var(--paper-strong);
  background: rgba(23, 32, 29, 0.86);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.demo-copy {
  padding: 18px;
}

.demo-copy h3 {
  margin: 16px 0 8px;
  font-size: 23px;
  line-height: 1.1;
}

.demo-copy p {
  min-height: 76px;
  margin-bottom: 18px;
}

.demo-meta {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--charcoal);
  border-top: 1px solid var(--line);
}

.video-dialog {
  width: min(1120px, calc(100vw - 32px));
  padding: 0;
  color: var(--paper-strong);
  background: var(--charcoal);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.video-dialog::backdrop {
  background: rgba(9, 13, 11, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  padding: 18px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.dialog-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.dialog-header .eyebrow {
  margin-bottom: 6px;
  color: #f0a58d;
}

.close-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--paper-strong);
  background: transparent;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 4px;
  cursor: pointer;
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #050706;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .hero,
  .business-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .demo-copy p {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-switcher {
    width: max-content;
  }

  .hero {
    padding-top: 42px;
  }

  .metric-grid,
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    margin-top: 40px;
  }

  .metric-grid div {
    min-height: 96px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .dialog-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
