:root {
  --ink: #132219;
  --muted: #5d6d64;
  --green-deep: #0a3d24;
  --green: #155c35;
  --green-bright: #3f9e55;
  --lime: #c9f169;
  --surface: #f8fbf7;
  --line: #dbe6dc;
  --shadow: 0 24px 60px rgba(15, 67, 38, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 88% 4%, rgba(91, 177, 100, 0.2), transparent 26rem),
    radial-gradient(circle at 4% 44%, rgba(201, 241, 105, 0.17), transparent 25rem),
    linear-gradient(180deg, #f9fcf8 0%, #f4f8f3 100%);
}

a { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-klabs { height: 3.6rem; border-radius: 0.3rem; }
.brand-logo-mittimagic { height: 4rem; }

.brand-divider {
  width: 1px;
  height: 3rem;
  background: rgba(21, 92, 53, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.text-link,
.outline-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.text-link { color: var(--green); }

.outline-link {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.primary-link {
  padding: 0.85rem 1.2rem;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(21, 92, 53, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--green);
  background: rgba(21, 92, 53, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 12ch;
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
}

h1 span { color: var(--green); }

.hero-copy > p {
  max-width: 59ch;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 92, 53, 0.13);
  border-radius: 2rem;
  background: white;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-visual.is-training {
  background:
    radial-gradient(circle at 72% 18%, rgba(201, 241, 105, 0.28), transparent 13rem),
    linear-gradient(145deg, #edf7ed, #ffffff);
}

.hero-visual.is-training > img {
  height: clamp(25rem, 47vw, 35rem);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
  padding: 1.25rem 1.25rem 0;
}

.hero-visual-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 1rem;
}

.hero-visual-note div {
  padding: 0.85rem;
  border-radius: 1rem;
  background: #f1f7f1;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.section { padding: clamp(3.8rem, 8vw, 7rem) 0; }

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.need-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.need-story,
.need-stat,
.feature-card,
.boundary-card {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
}

.need-story {
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.need-story h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.need-story p,
.need-stat p,
.feature-card p,
.boundary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.need-list {
  display: grid;
  gap: 1rem;
}

.need-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.need-stat i,
.feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  color: var(--green);
  background: linear-gradient(135deg, #e6f5e8, #f2f8ce);
  font-size: 1.15rem;
}

.compare-panel {
  overflow: hidden;
  border-radius: 2rem;
  background: var(--green-deep);
  color: white;
  box-shadow: var(--shadow);
}

.compare-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.2rem);
}

.compare-intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.compare-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.comparison-column {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.08);
}

.comparison-column.is-grounded { background: rgba(201, 241, 105, 0.12); }

.comparison-column h3 { margin: 0 0 1rem; font-size: 1.45rem; }

.comparison-column ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-column li {
  display: flex;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.comparison-column li i { color: var(--lime); }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.pipeline-step {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: white;
}

.step-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.pipeline-step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.screen-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.screen-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(15, 67, 38, 0.08);
}

.screen-card-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.screen-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.screen-card-media {
  display: grid;
  min-height: 32rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #e7f4e8, #f9fbf7);
}

.screen-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(34rem, 68vw);
  object-fit: contain;
}

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

.feature-card {
  min-height: 15rem;
  padding: 1.35rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 67, 38, 0.1);
}

.feature-card h3 { margin: 1.1rem 0 0.55rem; font-size: 1.2rem; }

.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.boundary-card { padding: clamp(1.4rem, 4vw, 2.2rem); }
.boundary-card h3 { margin: 0 0 0.7rem; font-size: 1.5rem; }

.boundary-card.ai { background: linear-gradient(145deg, #eff8ef, #fbfdec); }
.boundary-card.human { background: linear-gradient(145deg, #fff9e8, #ffffff); }

.closing {
  margin-bottom: 3rem;
  padding: clamp(1.6rem, 5vw, 3.4rem);
  border-radius: 2rem;
  color: white;
  background: linear-gradient(135deg, var(--green-deep), #217041);
  box-shadow: var(--shadow);
}

.closing h2 {
  max-width: 15ch;
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1;
}

.closing p {
  max-width: 55ch;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.closing .primary-link { color: var(--green-deep); background: white; }

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-positioning {
  max-width: 46rem;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 0.38rem;
  justify-self: end;
  min-width: 17rem;
  font-style: normal;
  line-height: 1.55;
}

.footer-contact strong { color: var(--ink); }

.footer-contact a {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .need-grid,
  .compare-intro,
  .boundary-grid { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .screen-card-media { min-height: 28rem; }
  h1 { max-width: 14ch; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 1.2rem, 1180px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .brand-logo-klabs { height: 3rem; }
  .brand-logo-mittimagic { height: 3.35rem; }
  .brand-divider { height: 2.5rem; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .hero { padding-top: 2rem; }
  h1 { max-width: none; font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-visual-note,
  .feature-grid,
  .pipeline,
  .comparison-grid { grid-template-columns: 1fr; }
  .screen-showcase { grid-template-columns: 1fr; }
  .screen-card-media { min-height: 26rem; }
  .screen-card img { height: min(32rem, 125vw); }
  .comparison-grid { gap: 1px; }
  .feature-card { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
  .footer-contact { justify-self: start; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card { transition: none; }
}
