:root {
  color: #17272a;
  background: #f6f7f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f6f7f3;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(23, 39, 42, 0.12);
  background: rgba(246, 247, 243, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.header-actions,
nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #17272a;
  font-weight: 900;
}

.brand-mark,
.feature-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #0b6f6a;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 32px;
  font-size: 13px;
}

nav {
  gap: 18px;
  color: #52676a;
  font-size: 14px;
  font-weight: 800;
}

.header-actions,
.hero-actions,
.footer-links {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.link-button,
.walkthrough-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 900;
}

.primary-button {
  color: #ffffff;
  background: #0b6f6a;
}

.secondary-button {
  color: #1f2d1d;
  background: #e1be45;
}

.link-button {
  color: #0d4e53;
  background: #e0ebe7;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(28px, 6vw, 76px) clamp(18px, 5vw, 72px) 52px;
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #a34436;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: #17272a;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
}

h2 {
  margin: 0;
  color: #17272a;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1;
}

h3 {
  margin: 0;
  color: #17272a;
  font-size: 20px;
}

h4 {
  margin: 0 0 12px;
  color: #17272a;
  font-size: 14px;
  text-transform: uppercase;
}

.lead {
  margin: 22px 0;
  color: #43585c;
  font-size: 19px;
  line-height: 1.58;
  font-weight: 650;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.hero-stats div {
  min-height: 78px;
  padding: 14px;
  border-left: 4px solid #0b6f6a;
  background: #ffffff;
}

.hero-stats dt {
  color: #17272a;
  font-size: 24px;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #617174;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.console-shot,
.phone-shot,
.function-panel,
.module-table {
  border: 1px solid rgba(23, 39, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 39, 42, 0.12);
}

.console-shot {
  width: min(920px, 100%);
}

.phone-shot {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(350px, 42%);
}

.section-band,
.content-section {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.core-band {
  color: #ffffff;
  background: #17272a;
}

.core-band h2,
.core-band h3 {
  color: #ffffff;
}

.core-band p,
.core-band .eyebrow {
  color: #d7e5df;
}

.section-intro {
  max-width: 980px;
  margin-bottom: 28px;
}

.section-intro.narrow {
  max-width: 780px;
}

.section-intro > p:not(.eyebrow) {
  max-width: 760px;
  color: inherit;
  line-height: 1.56;
  font-weight: 650;
}

.core-grid,
.walkthrough-grid {
  display: grid;
  gap: 14px;
}

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

.core-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.core-card:hover,
.core-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(225, 190, 69, 0.82);
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}

.feature-icon {
  width: 44px;
  height: 34px;
  font-size: 12px;
}

.core-card:nth-child(2n) .feature-icon {
  background: #a34436;
}

.core-card:nth-child(3n) .feature-icon {
  color: #17272a;
  background: #e1be45;
}

.core-card p {
  margin: auto 0 0;
  line-height: 1.55;
  font-weight: 650;
}

.function-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(18px, 3vw, 32px);
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 34px);
  scroll-margin-top: 92px;
}

.function-number {
  margin: 0 0 20px;
  color: #a34436;
  font-size: 13px;
  font-weight: 950;
}

.function-copy p:last-child,
.process-grid li {
  color: #52676a;
  line-height: 1.55;
  font-weight: 650;
}

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

.process-grid ol,
.process-grid ul {
  margin: 0;
  padding-left: 20px;
}

.process-grid li + li {
  margin-top: 8px;
}

.walkthrough-link {
  min-height: 46px;
  grid-column: 1 / -1;
  color: #ffffff;
  background: #0b6f6a;
}

.walkthrough-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.walkthrough-stack .walkthrough-link {
  grid-column: auto;
}

.walkthrough-band {
  background: #eef3ee;
}

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

.walkthrough-grid a {
  min-height: 78px;
  display: flex;
  align-items: center;
  border-left: 4px solid #0b6f6a;
  border-radius: 8px;
  padding: 18px;
  color: #17272a;
  background: #ffffff;
  font-weight: 900;
}

.walkthrough-grid a:nth-child(even) {
  border-left-color: #a34436;
}

.handover-section {
  background: #ffffff;
}

.module-table {
  overflow: hidden;
  box-shadow: none;
}

.module-table div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid #e5ece9;
}

.module-table div:first-child {
  border-top: 0;
}

.module-table span:first-child {
  color: #17272a;
  font-weight: 950;
}

.module-table span:last-child {
  color: #52676a;
  font-weight: 700;
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: #17272a;
}

.site-footer div:first-child {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: #c9d9d4;
}

.site-footer a {
  color: #ffffff;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .phone-shot {
    right: 20px;
    bottom: -16px;
  }

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

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

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-stats,
  .core-grid,
  .function-panel,
  .process-grid,
  .walkthrough-stack,
  .walkthrough-grid,
  .module-table div {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
  }

  .phone-shot {
    position: static;
    width: 100%;
  }

  .core-card {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
