:root {
  --green-900: #173f2d;
  --green-800: #20583d;
  --green-700: #2c6e49;
  --green-500: #4c956c;
  --green-300: #9ec7ad;
  --green-100: #e4f0e8;
  --cream: #fefee3;
  --orange: #d68c45;
  --white: #ffffff;
  --ink: #17312a;
  --muted: #66756f;
  --line: rgba(23, 63, 45, .12);
  --shadow: 0 24px 70px rgba(23, 63, 45, .13);
  --shadow-soft: 0 12px 36px rgba(23, 63, 45, .09);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfb;
  font-family: "Alexandria", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

body.lightbox-open { overflow: hidden; }

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

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

button,
input { font: inherit; }

button { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--orange);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 90px;
}

.section--cream { background: var(--cream); }

.section--dark {
  overflow: hidden;
  color: var(--white);
  background: var(--green-900);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .1;
  background: url("../assets/brand/caly-background.svg") center / cover no-repeat;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: -70px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--white);
  background: var(--green-900);
  transition: top .2s;
}

.skip-link:focus { top: 16px; }

/* Header and navigation */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: 16px 0;
  transition: padding .25s, background .25s, box-shadow .25s;
}

.site-header.is-scrolled {
  padding: 9px 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 30px rgba(23, 63, 45, .08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: .86rem;
  font-weight: 600;
}

.primary-nav > a:not(.button) {
  position: relative;
  color: #2d4b40;
}

.primary-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width .2s;
}

.primary-nav > a:hover::after,
.primary-nav > a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--green-900);
  transition: opacity .2s, transform .2s;
}

/* Shared typography and controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid var(--green-700);
  border-radius: 999px;
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 10px 26px rgba(44, 110, 73, .18);
  font-size: .93rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
  background: var(--green-800);
  box-shadow: 0 14px 34px rgba(44, 110, 73, .25);
  transform: translateY(-2px);
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
}

.button--ghost {
  color: var(--green-800);
  border-color: rgba(44, 110, 73, .28);
  background: rgba(255, 255, 255, .55);
  box-shadow: none;
}

.button--ghost:hover { color: var(--white); }

.button--cream {
  color: var(--green-900);
  border-color: var(--cream);
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
}

.button--cream:hover {
  color: var(--green-900);
  background: var(--white);
}

.button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.eyebrow--light { color: #d9eee1; }

.section-heading { margin-bottom: 52px; }

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.section-heading p {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-heading--split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 70px;
}

.section-heading--split > p { margin: 0 0 8px; }
.section-heading--center { text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading--center h2,
.section-heading--center p { margin-inline: auto; }
.section-heading--light p { color: rgba(255, 255, 255, .66); }

/* Hero */
.hero {
  overflow: hidden;
  min-height: 760px;
  padding: 136px 0 88px;
  background:
    radial-gradient(circle at 78% 22%, rgba(76, 149, 108, .18), transparent 29%),
    linear-gradient(135deg, #fff 15%, #f8fcf9 62%, #eef7f1);
}

.hero::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -300px;
  width: 800px;
  height: 800px;
  border: 1px solid rgba(76, 149, 108, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(76, 149, 108, .03), 0 0 0 200px rgba(76, 149, 108, .02);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.hero-logo {
  width: min(370px, 78%);
  max-height: 155px;
  margin: 0 0 25px;
  object-fit: contain;
  object-position: left center;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.25rem, 3.55vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.hero-copy h1 em {
  color: var(--green-500);
  font-style: normal;
}

.hero-lead {
  max-width: 640px;
  margin: 27px 0 34px;
  color: #52675f;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-visual {
  min-width: 0;
  width: 100%;
}

.hero-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-media-frame::before,
.hero-media-frame::after { content: none; }

.hero-media-frame__image {
  width: 100%;
  height: auto;
  max-height: 590px;
  object-fit: contain;
}

.trust-strip {
  overflow: hidden;
  padding: 20px 0;
  color: var(--white);
  background: var(--green-700);
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  -webkit-overflow-scrolling: touch;
}

.trust-list::-webkit-scrollbar { display: none; }
.trust-list > * { flex: 0 0 auto; }
.trust-list i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* Why CALY */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 26px;
}

.challenge-panel,
.solution-panel {
  min-width: 0;
  min-height: 100%;
  padding: 40px;
  border-radius: var(--radius-xl);
}

.challenge-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.challenge-panel::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(44, 110, 73, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(44, 110, 73, .025);
  pointer-events: none;
}

.mini-label {
  color: var(--green-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.challenge-panel h3,
.solution-panel h3 {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 9px 0 14px;
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.challenge-panel > p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.pain-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 31px;
}

.pain-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(44, 110, 73, .09);
  border-radius: 16px;
  background: rgba(76, 149, 108, .055);
}

.pain-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: var(--green-700);
  font-size: .67rem;
  font-weight: 800;
}

.pain-list p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.solution-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green-700), var(--green-800));
  box-shadow: var(--shadow);
}

.solution-panel .mini-label { color: var(--cream); }
.solution-panel h3 { margin-bottom: 0; }

.before-after {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 0;
}

.before-after__column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 21px;
  background: rgba(255, 255, 255, .065);
}

.before-after__column > span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.before-after__column ol {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: comparison-row;
}

.before-after__column li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .74rem;
  line-height: 1.45;
  counter-increment: comparison-row;
}

.before-after__column li::before {
  content: counter(comparison-row, decimal-leading-zero);
  color: rgba(255, 255, 255, .55);
  font-size: .58rem;
  font-weight: 800;
}

.before-after__column--after {
  color: var(--green-900);
  border-color: rgba(254, 254, 227, .6);
  background: var(--cream);
}

.before-after__column--after li { border-color: rgba(23, 63, 45, .1); }
.before-after__column--after li::before { color: var(--green-500); }

.before-after__arrow {
  position: relative;
  display: grid;
  place-items: center;
}

.before-after__arrow::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, .25);
}

.before-after__arrow span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--green-800);
  background: var(--cream);
  font-size: 1.15rem;
  font-weight: 800;
}

/* Logging features */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  min-width: 0;
  min-height: 310px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid rgba(44, 110, 73, .14);
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 30px rgba(44, 110, 73, .05);
}

.feature-card--primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 18px 45px rgba(44, 110, 73, .17);
}

.feature-card__number {
  position: absolute;
  top: 21px;
  right: 25px;
  color: rgba(44, 110, 73, .16);
  font-size: 3rem;
  font-weight: 800;
}

.feature-card--primary .feature-card__number { color: rgba(255, 255, 255, .16); }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(23, 63, 45, .12);
}

.feature-card__icon svg {
  width: 26px;
  fill: none;
  stroke: var(--green-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__icon--orange { background: #fff3e6; }
.feature-card__icon--orange svg { stroke: var(--orange); }
.feature-card__icon--cream { background: var(--green-100); }

.feature-card h3 {
  margin: 27px 0 9px;
  font-size: 1.42rem;
  letter-spacing: -.025em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.feature-card--primary p { color: rgba(255, 255, 255, .74); }

/* Intelligence modules */
.module-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.module-tabs-scroll {
  position: relative;
  background: #f5f9f6;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px;
  border-bottom: 1px solid var(--line);
  background: #f5f9f6;
}

.module-tabs-hint { display: none; }

.module-tab {
  min-height: 58px;
  padding: 10px 15px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  transition: color .2s, background .2s, box-shadow .2s;
}

.module-tab:hover,
.module-tab.is-active {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 9px 20px rgba(44, 110, 73, .2);
}

.module-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  min-height: 515px;
}

.module-panel__copy {
  min-width: 0;
  padding: 48px;
  transition: opacity .14s ease;
}

.module-kicker {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: .72rem;
  font-weight: 700;
}

.module-panel h3 {
  max-width: 600px;
  margin: 21px 0 16px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}

.module-panel p {
  color: var(--muted);
  font-size: .9rem;
}

.module-panel ul {
  display: grid;
  gap: 9px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
}

.module-panel li {
  position: relative;
  padding-left: 23px;
}

.module-panel li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(214, 140, 69, .14);
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-800);
  background: #fbfdfb;
  font-size: .68rem;
  font-weight: 600;
}

.module-panel__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 430px;
  padding: 20px;
  overflow: hidden;
  border: 0;
  background: #eef5f0;
  cursor: zoom-in;
}

.module-panel__visual img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform .3s;
}

.module-panel__visual:hover img { transform: scale(1.015); }

.module-panel.is-changing .module-panel__copy { opacity: .94; }

.module-panel__loader {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 63, 45, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(23, 63, 45, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}

.module-panel__loader::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(44, 110, 73, .22);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: module-loader-spin .75s linear infinite;
}

.module-panel.is-loading .module-panel__loader {
  opacity: 1;
  transform: translateY(0);
}

@keyframes module-loader-spin {
  to { transform: rotate(360deg); }
}

/* Results */
.metrics-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  min-width: 0;
  min-height: 225px;
  padding: 28px 25px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(8px);
}

.metric-card--accent {
  color: var(--green-900);
  border-color: var(--orange);
  background: var(--orange);
}

.metric-card__value {
  display: block;
  margin-bottom: 30px;
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.metric-card--accent .metric-card__value { color: var(--green-900); }
.metric-card strong { display: block; font-size: .88rem; }
.metric-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: .73rem;
  line-height: 1.55;
}

.metric-card--accent p { color: rgba(23, 63, 45, .7); }

/* Mobile experience */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(38px, 6vw, 72px);
}

.app-copy,
.app-showcase { min-width: 0; }

.app-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.3vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.app-copy > p { color: var(--muted); }

.app-checklist {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.app-checklist > div {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: start;
  gap: 12px;
}

.app-checklist > div > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  font-weight: 700;
}

.app-checklist p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.app-checklist strong {
  display: block;
  color: var(--ink);
  font-size: .88rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--green-700);
  font-size: .83rem;
  font-weight: 700;
}

.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }

.app-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.app-showcase__image {
  width: min(100%, 720px);
  height: auto;
  object-fit: contain;
}

.app-showcase__badge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: .7rem;
}

.app-showcase__badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.app-showcase__badge strong {
  display: block;
  color: var(--green-900);
}

/* Product architecture */
.architecture-map {
  display: grid;
  grid-template-columns: minmax(0, .92fr) 72px minmax(0, 1.08fr) 72px minmax(0, 1.25fr);
  align-items: stretch;
  gap: 0;
  padding: 24px;
  border: 1px solid rgba(44, 110, 73, .13);
  border-radius: 36px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--shadow);
}

.architecture-lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 21px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .8);
}

.architecture-lane--orchestration {
  color: var(--white);
  background: var(--green-900);
}

.architecture-lane__label {
  display: block;
  margin-bottom: 15px;
  color: var(--green-700);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.architecture-lane--orchestration .architecture-lane__label { color: var(--green-300); }

.architecture-node {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 63, 45, .06);
}

.architecture-node--primary {
  flex: 1;
  align-items: center;
}

.architecture-node--core {
  flex: 1;
  align-items: center;
  color: var(--white);
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .075);
  box-shadow: none;
}

.architecture-node--core > img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .16));
}

.architecture-node--compact { padding: 16px; }

.architecture-node__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--white);
  background: var(--green-700);
}

.architecture-node__icon--orange { background: var(--orange); }
.architecture-node__icon--cream { color: var(--green-800); background: var(--cream); }

.architecture-node__icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.architecture-node span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-500);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.architecture-node--core span { color: var(--green-300); }

.architecture-node h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .98rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.architecture-node p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.6;
}

.architecture-node--core p { color: rgba(255, 255, 255, .62); }

.architecture-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.architecture-services span {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .055);
  text-align: center;
  font-size: .57rem;
  font-weight: 600;
}

.architecture-system-stack { display: grid; gap: 10px; }

.architecture-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--green-500);
}

.architecture-connector span {
  position: relative;
  display: block;
  width: calc(100% - 16px);
  height: 2px;
  background: rgba(76, 149, 108, .38);
}

.architecture-connector span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--green-500);
  border-right: 2px solid var(--green-500);
  transform: translateY(-50%) rotate(45deg);
}

.architecture-connector b {
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.architecture-return {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(900px, 90%);
  margin: 26px auto 0;
  padding: 15px 21px;
  border: 1px solid rgba(44, 110, 73, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.architecture-return__line {
  position: relative;
  flex: 0 0 62px;
  height: 2px;
  background: var(--orange);
}

.architecture-return__line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.architecture-return p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

.architecture-return strong { color: var(--green-800); }

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.stack-list span {
  padding: 9px 13px;
  border: 1px solid rgba(44, 110, 73, .18);
  border-radius: 999px;
  color: var(--green-800);
  background: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 600;
}

.stack-list--center {
  justify-content: center;
  margin-top: 22px;
}

/* Team */
.graduation-project-banner {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 34px;
  margin-bottom: 22px;
  padding: 25px 29px;
  border-radius: 24px;
  color: var(--white);
  background: var(--green-700);
  box-shadow: var(--shadow-soft);
}

.graduation-project-banner > div { display: grid; }
.graduation-project-banner span {
  color: var(--cream);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.graduation-project-banner strong {
  margin-top: 4px;
  font-size: 1.05rem;
}

.graduation-project-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
}

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

.team-member {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(23, 63, 45, .055);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.team-member:hover {
  border-color: rgba(76, 149, 108, .35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.team-member__number {
  color: rgba(44, 110, 73, .28);
  font-size: .68rem;
  font-weight: 800;
}

.team-member__identity { min-width: 0; }

.team-member h3 {
  margin: 0;
  font-size: .96rem;
  line-height: 1.35;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--green-700);
  font-size: .73rem;
  font-weight: 700;
}

.linkedin-link span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  color: var(--white);
  background: var(--green-700);
  font-size: .68rem;
}

.linkedin-link--icon {
  padding: 8px 11px;
  border: 1px solid rgba(44, 110, 73, .13);
  border-radius: 12px;
  background: #f8fbf9;
}

.linkedin-link--icon b { font-size: .65rem; }

.supervisor-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 24px 30px;
  border-radius: 25px;
  color: var(--white);
  background: var(--green-900);
}

.supervisor-card img {
  width: 82px;
  height: 67px;
  object-fit: contain;
}

.supervisor-card span {
  color: var(--green-300);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.supervisor-card h3 {
  margin: 3px 0 0;
  font-size: 1.3rem;
}

.supervisor-card p {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: .78rem;
}

/* Closed beta */
.download-section { padding-top: 50px; }

.download-card {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  border-radius: 42px;
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 30px 80px rgba(23, 63, 45, .25);
}

.beta-app-visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 48px 30px;
}

.beta-app-icon {
  display: grid;
  place-items: center;
  width: clamp(170px, 18vw, 220px);
  aspect-ratio: 1;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(23, 63, 45, .08);
  border-radius: 28%;
  background: var(--white);
  box-shadow: 0 24px 55px rgba(10, 35, 23, .24);
}

.beta-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-card__copy { padding: 56px 60px 56px 20px; }

.download-card h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.35rem, 4.7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.download-card p {
  max-width: 650px;
  color: rgba(255, 255, 255, .72);
}

.download-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.download-notes span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: .67rem;
  font-weight: 600;
}

.download-card small {
  display: block;
  max-width: 650px;
  margin-top: 17px;
  color: rgba(255, 255, 255, .55);
  font-size: .62rem;
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 70px 0 26px;
  color: var(--white);
  background: var(--green-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr .7fr .7fr 1.1fr;
  gap: 45px;
}

.footer-brand img {
  width: 190px;
  height: auto;
}

.footer-brand p {
  color: var(--green-300);
  font-size: .75rem;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid strong {
  margin-bottom: 8px;
  color: var(--green-300);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-grid a:hover,
.back-to-top:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 82px 20px 20px;
  background: rgba(11, 29, 22, .88);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] { display: none; }

.lightbox__toolbar {
  position: fixed;
  z-index: 2;
  top: 18px;
  left: 20px;
  display: flex;
  gap: 8px;
}

.lightbox__action,
.lightbox__close {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 700;
}

.lightbox__action {
  min-width: 46px;
  padding: 0 13px;
  border-radius: 999px;
}

.lightbox__action[data-action="zoom-reset"] { min-width: 68px; }

.lightbox__close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 20px;
  width: 46px;
  border-radius: 50%;
  font-size: 1.55rem;
}

.lightbox__viewport {
  width: min(1440px, 100%);
  height: 100%;
  overflow: auto;
  border-radius: 18px;
  background: rgba(5, 18, 12, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  cursor: default;
  overscroll-behavior: contain;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox__canvas {
  display: grid;
  place-items: center;
  min-width: 100%;
  min-height: 100%;
}

.lightbox__viewport.is-zoomed { cursor: grab; }
.lightbox__viewport.is-panning { cursor: grabbing; user-select: none; }

.lightbox img {
  max-width: none;
  max-height: none;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .45);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .primary-nav { gap: 17px; font-size: .76rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .architecture-map {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .architecture-connector { min-height: 70px; }
  .architecture-connector span {
    width: 2px;
    height: 43px;
  }

  .architecture-connector span::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 860px) {
  .section { padding: 86px 0; }

  .site-header { padding: 11px 0; }
  .brand { width: 48px; height: 48px; }
  .brand img { width: 44px; height: 44px; }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .primary-nav {
    position: fixed;
    inset: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 100dvh;
    padding: 88px 24px 28px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 50px rgba(23, 63, 45, .14);
    transform: translateY(-110%);
    transition: transform .3s;
  }

  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav > a { display: flex; align-items: center; min-height: 44px; padding: 7px 4px; }
  .primary-nav .button { margin-top: 6px; }

  .hero {
    min-height: 0;
    padding: 112px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy { text-align: center; }
  .hero-copy .eyebrow,
  .hero-actions { justify-content: center; }

  .hero-logo {
    width: min(350px, 82%);
    margin-inline: auto;
    object-position: center;
  }

  .hero-lead { margin-inline: auto; }
  .hero-visual { width: min(650px, 100%); margin-inline: auto; }

  .section-heading--split,
  .problem-grid,
  .module-panel,
  .app-grid,
  .download-card { grid-template-columns: 1fr; }

  .section-heading--split { gap: 18px; }
  .section-heading--split > p { margin: 0; }

  .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card--primary { grid-column: span 2; }

  .module-panel__visual { min-height: 400px; }

  .app-copy { max-width: 680px; }
  .app-showcase { width: min(720px, 100%); margin-inline: auto; }

  .graduation-project-banner { grid-template-columns: 1fr; gap: 10px; }
  .team-roster { grid-template-columns: 1fr; }
  .architecture-return { width: 100%; }

  .download-card { min-height: 0; }
  .beta-app-visual { padding: 42px 30px 12px; }
  .beta-app-icon { width: min(190px, 45vw); }
  .download-card__copy { padding: 28px 42px 46px; text-align: center; }
  .download-card__copy .eyebrow,
  .download-notes { justify-content: center; }
  .download-card p,
  .download-card small { margin-inline: auto; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 68px 0; }

  .site-header.is-scrolled { padding: 7px 0; }

  .hero { padding: 102px 0 60px; }
  .hero::before { right: -480px; opacity: .65; }
  .hero-logo { width: min(295px, 86%); margin-bottom: 21px; }
  .hero-copy h1 {
    font-size: clamp(1.85rem, 9.2vw, 2.8rem);
    line-height: 1.06;
  }
  .hero-copy .eyebrow { font-size: .64rem; letter-spacing: .08em; }
  .hero-lead { font-size: .91rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-grid { gap: 34px; }
  .hero-media-frame__image { max-height: none; }

  .section-heading { margin-bottom: 38px; }
  .section-heading h2,
  .app-copy h2 { font-size: clamp(2rem, 10vw, 3.1rem); }

  .challenge-panel,
  .solution-panel { padding: 25px; border-radius: 27px; }
  .challenge-panel h3,
  .solution-panel h3 { font-size: clamp(1.7rem, 8.5vw, 2.15rem); }

  .pain-list > div {
    grid-template-columns: 36px 1fr;
    padding: 11px;
  }

  .pain-list span { width: 34px; height: 34px; }

  .before-after {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .before-after__arrow { min-height: 48px; }
  .before-after__arrow::before {
    top: 50%;
    right: 18px;
    bottom: auto;
    left: 18px;
    width: auto;
    height: 1px;
  }

  .before-after__arrow span { transform: rotate(90deg); }

  .feature-cards { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card--primary {
    grid-column: auto;
    min-height: 0;
    padding: 27px;
  }

  .module-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(124px, 38vw, 164px);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 9px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .module-tabs::-webkit-scrollbar { display: none; }
  .module-tab {
    min-height: 50px;
    scroll-snap-align: start;
  }

  .module-tabs-scroll::before,
  .module-tabs-scroll::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 1px;
    width: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .module-tabs-scroll::before {
    left: 0;
    background: linear-gradient(to left, transparent, rgba(245, 249, 246, .96) 88%);
  }

  .module-tabs-scroll::after {
    right: 0;
    background: linear-gradient(to right, transparent, rgba(245, 249, 246, .96) 88%);
  }

  .module-tabs-scroll.can-scroll-left::before,
  .module-tabs-scroll.can-scroll-right::after { opacity: 1; }

  .module-tabs-hint:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 18px 9px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: #f5f9f6;
    font-size: .66rem;
    font-weight: 600;
  }

  .module-tabs-hint span { color: var(--green-700); }
  .module-panel__copy { padding: 32px 23px; }
  .module-panel h3 { font-size: clamp(1.8rem, 9vw, 2.55rem); }
  .module-panel__visual { min-height: 270px; padding: 12px; }

  .metric-card { min-height: 185px; }
  .metric-card__value { margin-bottom: 24px; }

  .app-grid { gap: 36px; }
  .app-showcase { gap: 10px; }
  .app-showcase__badge { padding: 8px 12px; }
  .app-showcase__badge img { width: 36px; height: 36px; }

  .architecture-map { padding: 12px; border-radius: 28px; }
  .architecture-lane { padding: 15px; border-radius: 21px; }
  .architecture-node { padding: 16px; }
  .architecture-node--core { align-items: flex-start; }
  .architecture-node--core > img { width: 56px; height: 56px; }
  .architecture-return { align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .architecture-return__line { flex-basis: 35px; margin-top: 10px; }

  .graduation-project-banner { padding: 22px; border-radius: 21px; }
  .team-member { grid-template-columns: 1fr auto; gap: 10px; padding: 15px; }
  .team-member__number { display: none; }
  .linkedin-link--icon b { display: none; }
  .linkedin-link--icon { padding: 8px; }
  .supervisor-card { align-items: flex-start; flex-direction: column; padding: 22px; }

  .download-card { border-radius: 30px; }
  .beta-app-visual { padding: 32px 22px 8px; }
  .beta-app-icon { width: min(160px, 48vw); }
  .download-card__copy { padding: 24px 23px 34px; }
  .download-card h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .download-card .button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 40px; }

  .lightbox { padding: 74px 10px 10px; }
  .lightbox__toolbar { top: 12px; left: 10px; gap: 6px; }
  .lightbox__close { top: 12px; right: 10px; }
  .lightbox__action,
  .lightbox__close { height: 44px; }
  .lightbox__action { min-width: 44px; padding: 0 10px; }
  .lightbox__action[data-action="zoom-reset"] { min-width: 62px; }
  .lightbox__close { width: 44px; }
  .lightbox__viewport { border-radius: 13px; }
}

@media (max-width: 430px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 170px; }
  .architecture-services { grid-template-columns: 1fr; }
  .team-member h3 { font-size: .88rem; }
}

@media (max-width: 360px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .eyebrow { font-size: .66rem; letter-spacing: .08em; }
  .challenge-panel,
  .solution-panel { padding: 21px; }
  .architecture-node { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .module-panel__loader::before { animation: none; }
}
