@font-face {
  font-family: "DDIN";
  src: url("assets/fonts/d-din.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DDIN";
  src: url("assets/fonts/d-din-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DDIN Exp";
  src: url("assets/fonts/d-din-exp.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e1b36;
  --ink-soft: #1f2d48;
  --wattle: #f4dd7c;
  --wattle-deep: #e8c547;
  --paper: #fbf9f3;
  --cream: #eae4d5;
  --muted: #737f9c;
  --fill: #fcfbf8;
  --signal: #385390;
  --risk: #96a6cb;
  --line: rgba(14, 27, 54, 0.16);
  --shadow: 0 18px 60px rgba(14, 27, 54, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DDIN", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: "DDIN Exp", "DDIN", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  max-width: 860px;
  font-size: 4.7rem;
}

h2 {
  max-width: 820px;
  font-size: 3.1rem;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--wattle);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 1rem 2rem;
  background: rgba(251, 249, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a,
.nav-cta {
  text-decoration: none;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.1;
}

.nav-cta,
.button--primary {
  background: var(--wattle);
  color: var(--ink);
}

.button--secondary {
  border-color: rgba(252, 251, 248, 0.72);
  color: var(--fill);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  height: 78svh;
  max-height: 780px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 27, 54, 0.96), rgba(14, 27, 54, 0.82) 44%, rgba(14, 27, 54, 0.44)),
    url("assets/images/ide-hero-abstract.png") center / cover;
  color: var(--fill);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 9px;
  background: var(--wattle);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 4rem 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--signal);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--wattle);
  font-size: 1.1rem;
}

.hero__lead {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(252, 251, 248, 0.88);
  font-size: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 3rem 0 0;
}

.hero__proof div {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid rgba(252, 251, 248, 0.28);
  border-radius: 8px;
  background: rgba(14, 27, 54, 0.42);
}

.hero__proof dt {
  margin-bottom: 0.35rem;
  color: var(--wattle);
  font-weight: 700;
}

.hero__proof dd {
  margin: 0;
  color: rgba(252, 251, 248, 0.82);
  font-size: 0.95rem;
}

.mobile-proof-section {
  display: none;
}

.section {
  padding: 6rem 0;
}

.section__inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-bottom: 2.4rem;
}

.section-heading--wide {
  max-width: 960px;
}

.section-heading p,
.section--split p,
.section--proof p,
.section--clinical p,
.section--contact p {
  max-width: 760px;
  font-size: 1.1rem;
}

.section--focus,
.section--comparison,
.section--team {
  background: var(--fill);
}

.focus-grid,
.feature-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.focus-card,
.feature-grid article,
.team-grid article,
.proof-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.focus-card {
  min-height: 270px;
  padding: 1.4rem;
}

.focus-card h3,
.feature-grid h3,
.team-grid h3 {
  margin-top: 1.1rem;
}

.focus-card p,
.feature-grid p,
.team-grid p {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.card-number {
  display: inline-block;
  color: var(--risk);
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--wattle-deep);
}

.image-panel {
  margin: 0;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section--engine {
  background: var(--ink);
  color: var(--fill);
}

.section--engine p {
  color: rgba(252, 251, 248, 0.76);
}

.engine-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(252, 251, 248, 0.18);
  border-radius: 8px;
  background: rgba(252, 251, 248, 0.18);
}

.engine-source,
.engine-output,
.engine-stage {
  min-height: 220px;
  padding: 1.2rem;
  background: var(--ink);
}

.engine-source,
.engine-output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.engine-source span,
.engine-output span,
.engine-stage span {
  color: var(--wattle);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.engine-source strong,
.engine-output strong {
  font-size: 1.2rem;
  line-height: 1.22;
}

.engine-stage h3 {
  margin-top: 2.8rem;
}

.engine-stage p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.engine-stage--runtime {
  background: var(--ink);
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: var(--fill);
}

tbody th {
  width: 24%;
  color: var(--ink);
}

td {
  color: var(--ink-soft);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* Highlight the Wattle AI Engine column so it stands out */
thead th:last-child {
  background: var(--wattle-deep);
  color: var(--ink);
}

tbody td:last-child {
  background: rgba(244, 221, 124, 0.38);
  color: var(--ink);
}

.proof-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.proof-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-steps li {
  padding: 1.2rem;
}

.proof-steps span {
  color: var(--risk);
  font-weight: 700;
}

.proof-steps strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
}

.proof-steps p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.section--governance {
  background: #f2efe6;
}

.feature-grid article,
.team-grid article {
  min-height: 190px;
  padding: 1.25rem;
  background: var(--fill);
}

.team-grid .team-role {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.team-grid .team-bio {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.team-grid .team-quals {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.clinical-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}

.clinical-mark {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.clinical-mark img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.demo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.8rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--fill);
}

.demo-panel p {
  color: rgba(252, 251, 248, 0.78);
}

.demo-intro p {
  margin-top: 1rem;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.demo-form span {
  font-weight: 700;
  color: var(--fill);
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(252, 251, 248, 0.28);
  border-radius: 6px;
  background: rgba(252, 251, 248, 0.06);
  color: var(--fill);
  font-family: inherit;
  font-size: 1rem;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: 2px solid var(--wattle);
  outline-offset: 1px;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form button {
  margin-top: 0.4rem;
  justify-self: start;
}

.demo-honeypot {
  display: none;
}

.demo-note {
  font-size: 0.9rem;
  color: rgba(252, 251, 248, 0.7);
}

.demo-note a {
  color: var(--wattle);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  background: var(--ink);
  color: rgba(252, 251, 248, 0.7);
  border-top: 1px solid rgba(252, 251, 248, 0.14);
}

.site-footer img {
  width: 156px;
}

.site-footer p {
  color: rgba(252, 251, 248, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero__proof,
  .focus-grid,
  .feature-grid,
  .team-grid,
  .split-layout,
  .proof-layout,
  .clinical-layout,
  .demo-panel {
    grid-template-columns: 1fr;
  }

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

  .clinical-mark {
    min-height: 190px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 66px;
    padding: 0.8rem 1rem;
  }

  .brand img {
    width: 142px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero {
    height: auto;
    min-height: 470px;
  }

  .hero__content {
    width: min(100% - 32px, var(--max));
    padding: 3rem 0 2.7rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero__lead {
    font-size: 1.15rem;
  }

  .hero__proof {
    display: none;
  }

  .mobile-proof-section {
    display: block;
    padding: 1rem 0 0;
    background: var(--fill);
  }

  .mobile-proof {
    display: grid;
    gap: 0.75rem;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
  }

  .mobile-proof div {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }

  .mobile-proof dt {
    color: var(--risk);
    font-weight: 700;
  }

  .mobile-proof dd {
    margin: 0.35rem 0 0;
    color: var(--ink-soft);
  }

  .section {
    padding: 4rem 0;
  }

  .section__inner {
    width: min(100% - 32px, var(--max));
  }

  .hero__proof div,
  .focus-card,
  .feature-grid article,
  .team-grid article,
  .proof-steps li {
    min-height: auto;
  }

  .engine-board {
    grid-template-columns: 1fr;
  }

  .engine-source,
  .engine-output,
  .engine-stage {
    min-height: 168px;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.6rem;
  }

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