:root {
  --ink: #25221f;
  --muted: #665f57;
  --line: #eadfd1;
  --paper: #fffaf2;
  --white: #ffffff;
  --soft-gray: #f4f3ef;
  --sun: #ffbe3d;
  --orange: #f46d2f;
  --coral: #ff8a5c;
  --sage: #8aa889;
  --teal: #3aa99f;
  --shadow: 0 18px 60px rgba(113, 72, 33, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 190, 61, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f6f1 48%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(234, 223, 209, 0.75);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(244, 109, 47, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--sun));
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(244, 109, 47, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a,
.header-link,
.button,
.language-selector,
.site-footer a,
.repo-link {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover,
.repo-link:hover {
  color: var(--orange);
}

.header-link,
.button,
.language-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 8px;
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.language-selector {
  gap: 0.45rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  color: #463f38;
  background: rgba(255, 255, 255, 0.76);
}

.language-selector:hover {
  border-color: rgba(244, 109, 47, 0.32);
  color: var(--orange);
  background: rgba(255, 255, 255, 0.95);
}

.flag-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.header-link {
  padding: 0 1rem;
  color: var(--orange);
  background: rgba(244, 109, 47, 0.09);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(44rem, calc(88svh - 4.8rem));
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem) 2rem;
}

.hero-content {
  max-width: 57rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 58rem;
  font-size: clamp(2.55rem, 3.7vw, 4.3rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 47rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.16rem);
}

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

.button {
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #f29f26);
  box-shadow: 0 18px 36px rgba(244, 109, 47, 0.25);
}

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

.hero-panel {
  min-width: 0;
}

.signal-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 223, 209, 0.9);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 231, 0.86));
  box-shadow: var(--shadow);
}

.signal-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 95, 87, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 95, 87, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.signal-topline,
.system-map,
.metrics {
  position: relative;
}

.signal-topline {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-dot {
  color: #4d805f;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 3.6rem);
  gap: 0.65rem;
  padding: 1.2rem;
}

.node {
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 109, 47, 0.18);
  border-radius: 8px;
  color: #3b342e;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(113, 72, 33, 0.08);
}

.node-core {
  grid-column: 2 / 6;
  grid-row: 1 / 3;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(244, 109, 47, 0.96), rgba(255, 190, 61, 0.96)),
    var(--orange);
  font-size: clamp(2rem, 6vw, 4.8rem);
}

.node:nth-child(2) {
  grid-column: 1 / 3;
  grid-row: 3;
}

.node:nth-child(3) {
  grid-column: 3 / 5;
  grid-row: 3;
}

.node:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 3;
}

.node:nth-child(5) {
  grid-column: 2 / 6;
  grid-row: 4;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metrics div {
  padding: 0.85rem;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.intro-band,
.products-section,
.approach-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.intro-band {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading.wide {
  max-width: 68rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.capability-grid article,
.approach-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #fff9ee);
}

.capability-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  color: #7e4c00;
  background: rgba(255, 190, 61, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
}

.capability-grid h3,
.approach-grid h3 {
  font-size: 1.2rem;
}

.capability-grid p,
.approach-grid p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 1.2rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2.6vw, 1.5rem);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 34px rgba(113, 72, 33, 0.08);
}

.product-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
}

.product-card:nth-child(even) img {
  order: 2;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid rgba(234, 223, 209, 0.9);
  border-radius: 8px;
  background: var(--soft-gray);
}

.product-kicker {
  margin-bottom: 0.45rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-content h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.product-content p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #4d4741;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--sun));
}

.repo-link {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--orange);
  font-weight: 800;
}

.approach-section {
  background:
    linear-gradient(120deg, rgba(255, 190, 61, 0.2), transparent 40%),
    #fffaf2;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #2b2926;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.simple-page {
  min-height: 100svh;
  background: linear-gradient(180deg, #fffdf8, #f6f5ef);
}

.simple-main {
  width: min(54rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.simple-main h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.simple-panel {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.simple-panel p,
.simple-panel li {
  color: var(--muted);
}

.simple-panel h2 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.simple-panel h2:first-child {
  margin-top: 0;
}

.panel-actions {
  margin: 1.2rem 0 1.35rem;
}

.simple-panel a {
  color: var(--orange);
  font-weight: 700;
}

.simple-panel a.button.primary {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero,
  .product-card,
  .product-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(even) img {
    order: 0;
  }

  .capability-grid,
  .approach-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }
}

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

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .header-link {
    display: none;
  }

  .header-tools {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .hero {
    min-height: calc(82svh - 4.8rem);
    padding-top: 2.25rem;
  }

  .hero-panel {
    display: none;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 2.55rem);
  }

  .system-map {
    grid-template-rows: repeat(4, 3.5rem);
    padding: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
