:root {
  --pine: #075f2b;
  --pine-deep: #06371d;
  --leaf: #2f8f28;
  --leaf-bright: #77ba2f;
  --earth: #8b5a2b;
  --log: #b97836;
  --bark: #2a2924;
  --sky: #d9f1fb;
  --sky-soft: #eef9fd;
  --water: #0b8fd3;
  --water-deep: #075d9f;
  --rain: #2f6f91;
  --clay: #d66a25;
  --cream: #f3f8ef;
  --paper: #ffffff;
  --muted: #56665f;
  --line: rgba(7, 95, 43, 0.16);
  --shadow: 0 22px 70px rgba(7, 55, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--bark);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(243, 248, 239, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand img {
  filter: drop-shadow(0 2px 8px rgba(6, 55, 29, 0.12));
  height: 48px;
  object-fit: contain;
  width: 230px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--pine-deep);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(6, 55, 29, 0.78) 0 46%, rgba(6, 55, 29, 0.28) 72%, rgba(6, 55, 29, 0.12)),
    linear-gradient(180deg, #9fddf6 0%, #d9f1fb 28%, #9ed7e8 48%, #4eaa55 74%, #0b5f2c 100%);
  color: var(--paper);
  min-height: 78vh;
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.58), transparent 0 13%, transparent 26%),
    linear-gradient(158deg, transparent 0 46%, rgba(255, 255, 255, 0.28) 46% 47%, transparent 47%),
    linear-gradient(24deg, transparent 0 58%, rgba(11, 143, 211, 0.22) 58% 59%, transparent 59%),
    linear-gradient(0deg, rgba(6, 55, 29, 0.4), transparent 32%);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero::after {
  background: url("assets/tmi-icon-web.jpg") center / contain no-repeat;
  content: "";
  height: min(900px, 82vw);
  left: 50%;
  mix-blend-mode: screen;
  opacity: 0.22;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 82vw);
}

.hero-inner {
  align-items: center;
  display: flex;
  max-width: 980px;
  padding: clamp(86px, 14vw, 160px) clamp(20px, 6vw, 80px) clamp(70px, 10vw, 120px);
  position: relative;
  z-index: 2;
}

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

.product-lockup {
  align-items: center;
  background: rgba(217, 241, 251, 0.16);
  border-left: 4px solid var(--water);
  border-radius: 0 6px 6px 0;
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
}

.product-lockup span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
}

.eyebrow,
.section-kicker {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bce9ff;
}

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

h1 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  color: var(--pine-deep);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 22px;
}

h3 {
  color: var(--pine-deep);
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  max-width: 760px;
}

.hero-actions,
.contact-section {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--paper);
}

.article-button {
  background: var(--pine);
  color: var(--paper);
  margin-top: 10px;
}

.intro-band,
.section {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 80px);
}

.intro-band {
  background: linear-gradient(120deg, var(--paper), var(--sky-soft));
  border-bottom: 1px solid var(--line);
}

.content-grid,
.cost-layout,
.product-section,
.contact-section {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  margin: 0 auto;
  max-width: 1180px;
}

.content-grid p,
.cost-story p,
.product-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 900px;
  text-align: center;
}

.cost-story {
  background: var(--paper);
  border-left: 6px solid var(--log);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

.cost-points {
  display: grid;
  gap: 14px;
}

.cost-points div,
.feature-grid article,
.question-list p {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.cost-points span {
  color: var(--water-deep);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cost-points strong {
  color: var(--pine-deep);
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.cost-points p,
.feature-grid p,
.question-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.tinted {
  background: linear-gradient(120deg, #e9f6eb, var(--sky-soft));
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.feature-grid article {
  min-height: 220px;
}

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

.product-section {
  align-items: center;
}

.workflow-section {
  grid-template-columns: minmax(0, 780px);
}

.screenshots-section {
  background: var(--paper);
}

.screenshots-section .section-heading p {
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.screenshot-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.screenshot-card h3 {
  margin-top: 18px;
}

.screenshot-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.screenshot-card-featured {
  align-items: center;
  display: grid;
  gap: clamp(18px, 4vw, 42px);
  grid-column: 1 / -1;
  grid-template-columns: minmax(245px, 0.72fr) minmax(240px, 1fr);
}

.screenshot-card-featured h3 {
  align-self: end;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  margin-top: 0;
}

.screenshot-card-featured p {
  align-self: start;
  font-size: 1.05rem;
  max-width: 520px;
}

.screenshot-card-featured .screenshot-media {
  grid-row: span 2;
  max-height: 620px;
}

.test-ribbon {
  background: var(--clay);
  border-radius: 4px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 7px 8px;
}

.screenshot-card > .test-ribbon {
  left: 30px;
  position: absolute;
  top: 30px;
  z-index: 2;
}

.screenshot-media {
  align-items: center;
  aspect-ratio: 9 / 16;
  background: #f9faf7;
  border: 1px solid rgba(20, 63, 42, 0.14);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.screenshot-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.screenshot-media-graph img {
  object-position: center top;
}

.screen-frame {
  background: #f9faf7;
  border: 8px solid var(--pine-deep);
  border-radius: 22px;
  margin-top: 14px;
  min-height: 360px;
  padding: 18px;
}

.screen-topbar {
  background: var(--leaf);
  border-radius: 6px;
  height: 54px;
  margin-bottom: 22px;
}

.screen-topbar.blue {
  background: var(--rain);
}

.screen-topbar.earth {
  background: var(--earth);
}

.screen-row {
  background: rgba(20, 63, 42, 0.14);
  border-radius: 5px;
  height: 24px;
  margin-bottom: 14px;
  width: 74%;
}

.screen-row.wide {
  height: 42px;
  width: 100%;
}

.screen-row.short {
  width: 48%;
}

.screen-metric-group {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.screen-metric-group span {
  background: var(--sky);
  border-radius: 6px;
  height: 74px;
}

.screen-curve {
  border-bottom: 5px solid var(--water);
  border-radius: 0 0 50% 50%;
  height: 110px;
  margin: 18px 6px 28px;
}

.screen-stock {
  background: linear-gradient(90deg, var(--leaf), var(--water), var(--log));
  border-radius: 8px;
  height: 92px;
  margin: 18px 0 26px;
}

.questions-section {
  background: var(--paper);
}

.article-shell {
  margin: 0 auto;
  max-width: 860px;
}

.article-shell h1 {
  color: var(--pine-deep);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin: 0 0 24px;
}

.article-shell h2 {
  color: var(--pine-deep);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin: 46px 0 12px;
}

.article-shell p {
  color: var(--muted);
  font-size: 1.12rem;
}

.article-lead {
  color: var(--pine) !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  line-height: 1.55;
}

.article-action {
  margin-top: 38px;
}

.question-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.question-list p {
  color: var(--pine-deep);
  font-weight: 800;
  min-height: 96px;
}

.contact-section {
  align-items: end;
  background:
    linear-gradient(rgba(6, 55, 29, 0.88), rgba(6, 55, 29, 0.88)),
    linear-gradient(110deg, var(--pine), var(--water));
  color: var(--paper);
  max-width: none;
}

.contact-section div {
  max-width: 820px;
}

.contact-section h2,
.contact-section p {
  color: var(--paper);
}

.contact-section .button {
  justify-self: end;
}

.site-footer {
  align-items: center;
  background: var(--pine-deep);
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 80px);
}

.site-footer img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
  max-width: 240px;
}

.site-footer p {
  margin: 0;
  max-width: 780px;
}

.northwood-page {
  background: #f4f2ea;
}

.northwood-header {
  background: rgba(244, 242, 234, 0.96);
}

.northwood-hero {
  background:
    linear-gradient(90deg, rgba(13, 38, 27, 0.88), rgba(20, 63, 42, 0.64) 54%, rgba(244, 242, 234, 0.18)),
    linear-gradient(180deg, #dcebf0 0%, #6b8f70 42%, #143f2a 76%, #f4f2ea 100%);
  color: var(--paper);
  min-height: 82vh;
  overflow: hidden;
  position: relative;
}

.northwood-hero::before {
  background:
    url("assets/northwood-logo-hero-web.png") center / contain no-repeat;
  content: "";
  height: min(640px, 56vw);
  opacity: 0.12;
  position: absolute;
  right: clamp(16px, 5vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, 56vw);
}

.northwood-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(244, 242, 234, 0.72) 78%, #f4f2ea 100%);
  bottom: 0;
  content: "";
  height: 34%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.northwood-hero-inner {
  max-width: 980px;
  padding: clamp(74px, 12vw, 142px) clamp(20px, 6vw, 80px);
  position: relative;
  z-index: 2;
}

.northwood-hero-logo {
  filter:
    drop-shadow(0 16px 26px rgba(13, 38, 27, 0.34))
    drop-shadow(0 2px 10px rgba(244, 242, 234, 0.24));
  margin-bottom: 32px;
  max-width: min(620px, 88vw);
}

.northwood-hero h1 {
  max-width: 900px;
}

.northwood-button {
  background: var(--clay);
}

.northwood-intro {
  background: linear-gradient(120deg, var(--paper), #f0f1e7);
}

.product-family-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.product-card {
  background: var(--paper);
  border: 1px solid rgba(20, 63, 42, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 280px;
  padding: 22px;
}

.featured-product {
  background: linear-gradient(180deg, #ffffff, #eef9fd);
  border-top: 5px solid var(--water);
}

.product-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.product-card-head img {
  border-radius: 8px;
  height: 54px;
  width: 54px;
}

.product-card-head span,
.stage-label {
  color: var(--clay);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.product-card-head span {
  margin-bottom: 0;
}

.product-card p,
.custom-layout p,
.roadmap-list p {
  color: var(--muted);
}

.text-link {
  color: var(--water-deep);
  font-weight: 900;
  text-decoration: none;
}

.northwood-custom {
  background:
    linear-gradient(rgba(244, 242, 234, 0.92), rgba(244, 242, 234, 0.92)),
    linear-gradient(120deg, var(--pine), var(--earth));
}

.custom-layout {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  margin: 0 auto;
  max-width: 1080px;
}

.custom-points {
  display: grid;
  gap: 12px;
}

.custom-points span,
.roadmap-list div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--pine-deep);
  font-weight: 900;
  padding: 18px;
}

.northwood-roadmap {
  background: var(--paper);
}

.roadmap-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.roadmap-list strong {
  color: var(--pine-deep);
  display: block;
  margin-bottom: 8px;
}

.roadmap-list p {
  margin-bottom: 0;
}

.northwood-contact {
  background:
    linear-gradient(rgba(13, 38, 27, 0.93), rgba(13, 38, 27, 0.93)),
    linear-gradient(110deg, var(--pine), var(--earth));
}

.fdi-page {
  background: #f7f1e7;
}

.fdi-header {
  background: rgba(247, 241, 231, 0.96);
}

.fdi-hero {
  background:
    linear-gradient(90deg, rgba(10, 28, 22, 0.9), rgba(45, 52, 34, 0.56) 55%, rgba(214, 106, 37, 0.16)),
    linear-gradient(180deg, #ffe3a8 0%, #f0a33a 38%, #d66a25 64%, #183227 100%);
  color: var(--paper);
  min-height: 80vh;
  overflow: hidden;
  position: relative;
}

.fdi-hero::before {
  background: url("assets/fdi-icon-northwood-web.jpg") center / contain no-repeat;
  content: "";
  height: min(980px, 88vw);
  left: 50%;
  mix-blend-mode: screen;
  opacity: 0.34;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 88vw);
}

.fdi-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 241, 231, 0.66) 78%, #f7f1e7 100%);
  bottom: 0;
  content: "";
  height: 30%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.fdi-hero-inner {
  max-width: 900px;
  padding: clamp(78px, 13vw, 148px) clamp(20px, 6vw, 80px);
  position: relative;
  z-index: 2;
}

.fdi-product-lockup {
  align-items: center;
  display: inline-flex;
  margin-bottom: 22px;
}

.fdi-product-lockup span {
  background: rgba(255, 227, 168, 0.16);
  border-left: 4px solid var(--clay);
  border-radius: 0 6px 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: uppercase;
}

.fdi-button {
  background: var(--clay);
}

.fdi-intro {
  background: linear-gradient(120deg, #ffffff, #fff3df);
}

.fdi-feature-grid article {
  border-top: 5px solid var(--clay);
}

.fdi-smart-section {
  background:
    linear-gradient(rgba(247, 241, 231, 0.92), rgba(247, 241, 231, 0.92)),
    linear-gradient(120deg, #183227, var(--clay));
}

.fdi-story {
  border-left-color: var(--clay);
}

.fdi-question-list p {
  border-left: 5px solid var(--clay);
}

.fdi-roadmap {
  background: var(--paper);
}

.fdi-roadmap-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
}

.owi-page {
  background: #edf4ed;
}

.owi-header {
  background: rgba(237, 244, 237, 0.96);
}

.owi-hero {
  background:
    linear-gradient(90deg, rgba(7, 36, 30, 0.88), rgba(47, 111, 145, 0.5) 52%, rgba(119, 186, 47, 0.16)),
    linear-gradient(180deg, #d8f2ff 0%, #79b8d4 28%, #88b957 58%, #1f6d34 82%, #edf4ed 100%);
  color: var(--paper);
  min-height: 80vh;
  overflow: hidden;
  position: relative;
}

.owi-hero::before {
  background: url("assets/owi-icon-web.jpg") center / contain no-repeat;
  content: "";
  height: min(1500px, 140vw);
  left: 58%;
  mix-blend-mode: soft-light;
  opacity: 0.42;
  position: absolute;
  top: 54%;
  transform: translate(-50%, -50%) scale(1.35);
  width: min(1500px, 140vw);
}

.owi-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(237, 244, 237, 0.68) 78%, #edf4ed 100%);
  bottom: 0;
  content: "";
  height: 30%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.owi-hero-inner {
  max-width: 940px;
  padding: clamp(78px, 13vw, 148px) clamp(20px, 6vw, 80px);
  position: relative;
  z-index: 2;
}

.owi-product-lockup {
  align-items: center;
  display: inline-flex;
  margin-bottom: 22px;
}

.owi-product-lockup span {
  background: rgba(216, 242, 255, 0.16);
  border-left: 4px solid #7ed0e7;
  border-radius: 0 6px 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: uppercase;
}

.owi-button {
  background: #2f6f91;
}

.owi-intro {
  background: linear-gradient(120deg, #ffffff, #e8f7ec);
}

.owi-feature-grid article {
  border-top: 5px solid #2f6f91;
}

.owi-intelligence-section {
  background:
    linear-gradient(rgba(237, 244, 237, 0.93), rgba(237, 244, 237, 0.93)),
    linear-gradient(120deg, #2f6f91, #77ba2f);
}

.owi-story {
  border-left-color: #2f6f91;
}

.owi-question-list p {
  border-left: 5px solid #2f6f91;
}

.owi-next {
  background: var(--paper);
}

.owi-roadmap-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .content-grid,
  .cost-layout,
  .custom-layout,
  .product-section,
  .contact-section,
  .product-family-grid,
  .roadmap-list,
  .screenshot-grid,
  .feature-grid,
  .question-list {
    grid-template-columns: 1fr;
  }

  .screenshot-card-featured {
    grid-template-columns: 1fr;
  }

  .screenshot-card-featured .screenshot-media {
    grid-row: auto;
  }

  .hero::after {
    height: 500px;
    opacity: 0.14;
    width: 500px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .contact-section .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 18px;
    position: static;
  }

  .brand img {
    height: 46px;
    width: min(230px, 72vw);
  }

  .site-nav {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav a {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .button {
    width: 100%;
  }
}
