:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-soft: #eee9df;
  --text: #17212b;
  --muted: #5c6874;
  --line: #d8d0c3;
  --accent: #11354d;
  --accent-2: #245875;
  --gold: #b9892f;
  --shadow: 0 18px 48px rgba(17, 30, 43, 0.09);
  --shadow-soft: 0 10px 28px rgba(17, 30, 43, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.003em;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 137, 47, 0.08), transparent 34rem),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 88, 117, 0.22);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 243, 237, 0.9);
  border-bottom: 1px solid rgba(216, 208, 195, 0.85);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.05;
  font-family: var(--font-sans);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 12px rgba(17, 30, 43, 0.12));
}

.brand-mark {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.brand-sub {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

/* Typography */

h1,
h2,
h3,
.eyebrow,
.button,
.site-nav,
.brand {
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.7rem);
  font-weight: 780;
  max-width: 13.5ch;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  max-width: 15ch;
}

.page-hero .container.narrow {
  width: min(calc(100% - 2rem), var(--max));
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 760;
}

h3 {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.15rem;
  max-width: 68ch;
}

.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.68;
  color: #42515f;
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* Layout */

.hero,
.page-hero {
  padding: clamp(4.25rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section {
  padding: clamp(2.85rem, 5.4vw, 4.6rem) 0;
}

.band {
  background:
    linear-gradient(180deg, rgba(238, 233, 223, 0.66), rgba(238, 233, 223, 0.94));
  border-top: 1px solid rgba(216, 208, 195, 0.85);
  border-bottom: 1px solid rgba(216, 208, 195, 0.85);
}

.section-heading {
  margin-bottom: 1.75rem;
  max-width: 64ch;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Cards */

.cards {
  display: grid;
  gap: 1.25rem;
}

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

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

.hero-card,
.card,
.callout {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

.card {
  padding: clamp(1.2rem, 2vw, 1.55rem);
}

.card p:last-child,
.hero-card p:last-child {
  margin-bottom: 0;
}

.card p,
.hero-card p {
  max-width: 62ch;
}

.callout {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  box-shadow: var(--shadow);
}

/* Technical framework page */

.framework-hero {
  padding: clamp(3.6rem, 7vw, 6.4rem) 0 clamp(3rem, 6vw, 5rem);
}

.framework-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.framework-hero-copy h1 {
  font-size: clamp(2.25rem, 4.3vw, 4.05rem);
  max-width: 12.5ch;
}

.framework-system-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.framework-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 10rem);
  grid-template-areas:
    "index icon"
    "title icon"
    "copy icon";
  column-gap: 1.1rem;
  align-items: center;
  min-height: 10rem;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76));
  box-shadow: var(--shadow);
}

.framework-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--accent-2);
  opacity: 0.82;
}

.zone-standard::before {
  border-top-color: #1d7c55;
}

.zone-connection::before {
  border-top-color: #6a4c93;
}

.framework-zone h2 {
  grid-area: title;
  margin-top: 0.7rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  max-width: 11ch;
}

.framework-zone p {
  grid-area: copy;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.zone-icon {
  grid-area: icon;
  justify-self: end;
  align-self: center;
  width: min(100%, 9.25rem);
  max-height: 8.5rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(17, 30, 43, 0.12));
}

.zone-index {
  grid-area: index;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(17, 53, 77, 0.18);
}

.zone-standard .zone-index {
  background: #1d7c55;
}

.zone-connection .zone-index {
  background: #6a4c93;
}

.framework-connector {
  display: grid;
  place-items: center;
  min-height: 1.5rem;
}

.framework-connector span {
  position: relative;
  display: block;
  width: 2px;
  height: 100%;
  background: rgba(36, 88, 117, 0.36);
}

.framework-connector span::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-top: 2px solid rgba(36, 88, 117, 0.55);
  border-right: 2px solid rgba(36, 88, 117, 0.55);
  transform: translateX(50%) rotate(135deg);
}

.framework-section-head {
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.framework-section-head p:not(.eyebrow) {
  color: var(--muted);
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(13rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.how-it-works-intro h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.how-it-works-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.works-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.works-step {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.works-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.9rem;
  right: -0.72rem;
  width: 1.05rem;
  height: 1.05rem;
  border-top: 3px solid rgba(36, 88, 117, 0.42);
  border-right: 3px solid rgba(36, 88, 117, 0.42);
  transform: rotate(45deg);
}

.works-icon {
  display: grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.works-icon img {
  width: 68%;
  max-height: 68%;
  object-fit: contain;
}

.works-icon span {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.works-icon.green {
  background: #318763;
}

.works-icon.blue {
  background: #1c6aa6;
}

.works-icon.violet {
  background: #6a4c93;
}

.works-icon.navy {
  background: var(--accent);
}

.works-icon.teal {
  background: #258aa0;
}

.works-step h3 {
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.18;
}

.works-step p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.38;
}

.components-layout {
  display: grid;
  gap: 1.2rem;
}

.component-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.component-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
}

.component-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--accent-2);
  opacity: 0.86;
}

.component-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.72rem;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid rgba(36, 88, 117, 0.34);
  border-right: 2px solid rgba(36, 88, 117, 0.34);
  transform: translateY(-50%) rotate(45deg);
}

.component-panel:last-child::after {
  display: none;
}

.component-panel.defines::before {
  border-top-color: #1d7c55;
}

.component-panel.unlocks::before {
  border-top-color: #6a4c93;
}

.component-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.component-panel-head span {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.component-panel.defines .component-panel-head span,
.component-panel.defines .component-icon {
  background: #1d7c55;
}

.component-panel.unlocks .component-panel-head span,
.component-panel.unlocks .component-icon {
  background: #6a4c93;
}

.component-panel-head h3 {
  margin: 0;
  font-size: clamp(1.16rem, 1.8vw, 1.45rem);
}

.component-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.component-list li {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-height: 4.1rem;
  padding: 0.72rem;
  border: 1px solid rgba(216, 208, 195, 0.72);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}

.component-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.component-list strong {
  display: block;
  color: var(--accent);
  font-size: 0.94rem;
  line-height: 1.22;
}

.component-list p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.38;
}

.framework-future {
  background:
    linear-gradient(180deg, rgba(17, 53, 77, 0.05), rgba(246, 243, 237, 0)),
    var(--bg);
}

.framework-future .framework-section-head {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .framework-zone {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease;
  }

  .framework-zone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(184, 137, 47, 0.52);
  }
}

/* Lists */

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li {
  margin-bottom: 0.72rem;
  padding-left: 0.15rem;
}

.clean-list li::marker {
  color: var(--gold);
}

/* Buttons and links */

.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 53, 77, 0.18);
}

.button.primary:hover {
  background: var(--accent-2);
  box-shadow: 0 13px 28px rgba(17, 53, 77, 0.23);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: rgba(184, 137, 47, 0.55);
  box-shadow: var(--shadow-soft);
}

.text-link {
  color: var(--accent-2);
  font-weight: 700;
  border-bottom: 1px solid rgba(36, 88, 117, 0.28);
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--gold);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

fieldset {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--accent);
}

input,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(36, 88, 117, 0.16);
  border-color: var(--accent-2);
}

input:disabled,
textarea:disabled,
button:disabled,
fieldset:disabled .button {
  cursor: not-allowed;
  opacity: 0.72;
}

.form-note {
  font-size: 0.96rem;
  color: var(--muted);
  margin-top: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.65rem 0 2.6rem;
  background: rgba(255, 255, 255, 0.62);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.site-footer strong {
  font-family: var(--font-sans);
  color: var(--accent);
}

.footer-text {
  color: var(--muted);
  max-width: 44ch;
  margin-top: 0.35rem;
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .framework-hero-grid,
  .two-column,
  .contact-grid,
  .three-up,
  .two-up,
  .how-it-works,
  .component-panels {
    grid-template-columns: 1fr;
  }

  .component-panel::after {
    top: auto;
    right: 50%;
    bottom: -0.62rem;
    transform: translateX(50%) rotate(135deg);
  }

  .framework-zone {
    min-height: 9rem;
  }

  .zone-icon {
    width: min(100%, 8.5rem);
  }

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

  .works-step:not(:last-child)::after {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: 4.6rem;
  }

  h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero-card {
    max-width: 680px;
  }
}

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

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .site-nav a.active::after {
    bottom: -0.28rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    font-size: 1.08rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .framework-zone {
    grid-template-columns: 1fr;
    grid-template-areas:
      "index"
      "title"
      "copy"
      "icon";
    min-height: auto;
  }

  .zone-icon {
    justify-self: center;
    margin-top: 1rem;
  }

  .works-flow {
    grid-template-columns: 1fr;
  }

  .works-step {
    grid-template-columns: 5rem minmax(0, 1fr);
    column-gap: 1rem;
    justify-items: start;
    text-align: left;
  }

  .works-icon {
    grid-row: span 2;
    width: 4.6rem;
    height: 4.6rem;
    margin-bottom: 0;
  }

  .card,
  .hero-card,
  .callout,
  .framework-zone,
  .component-panel {
    border-radius: 16px;
  }
}
