:root {
  --bg: #eef7f1;
  --bg-soft: #f4fbf6;
  --panel: #f8fcf9;
  --panel-border: rgba(31, 138, 76, 0.12);
  --text: #17212b;
  --muted: #667085;
  --green: #1f8a4c;
  --green-strong: #31a85f;
  --cyan: #1f7a78;
  --shadow: 0 18px 40px rgba(34, 94, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SUIT", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7fcf8 0%, #edf7f0 46%, #f4fbf6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(86, 184, 111, 0.11), transparent 26%),
    radial-gradient(circle at bottom right, rgba(126, 204, 150, 0.08), transparent 24%);
  pointer-events: none;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 36px;
  margin-bottom: 24px;
  position: sticky;
  top: 14px;
  z-index: 10;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(248, 252, 249, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand img {
  width: 188px;
  display: block;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover {
  color: var(--text);
}

main {
  display: grid;
  gap: 22px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.98), rgba(242, 249, 244, 0.95));
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 190, 109, 0.12), transparent 68%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  min-height: 530px;
  align-items: center;
}

.compact-hero {
  min-height: 320px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
strong,
.scan-grid span {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
}

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

.lead,
.hero-copy p,
.info-card p,
.industry-card p,
.timeline p,
.stack-card p,
.principles p,
.benefit-list p,
.contact-panel p,
.stats-strip p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #167a45, #31a85f);
  box-shadow: 0 10px 24px rgba(49, 168, 95, 0.18);
}

.button-secondary {
  border: 1px solid rgba(31, 138, 76, 0.12);
  background: rgba(248, 252, 249, 0.92);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.scan-card,
.scan-grid article,
.info-card,
.industry-card,
.stack-card,
.principles article,
.benefit-list article {
  border: 1px solid rgba(31, 138, 76, 0.1);
  background: rgba(248, 252, 249, 0.88);
  border-radius: 24px;
}

.scan-card-main {
  padding: 28px;
  min-height: 230px;
  background: linear-gradient(160deg, rgba(231, 245, 235, 0.98), rgba(245, 251, 247, 1));
}

.scan-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(49, 168, 95, 0.1);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.scan-card-main strong {
  display: block;
  margin-top: 24px;
  font-size: 1.55rem;
}

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

.scan-grid article {
  padding: 18px;
}

.scan-grid span {
  display: block;
  color: var(--green);
  font-size: 1.42rem;
}

.stats-strip,
.card-grid,
.architecture-grid,
.principles,
.benefit-list {
  display: grid;
  gap: 16px;
}

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

.stats-strip article {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(246, 251, 247, 0.95);
}

.stats-strip h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.narrow {
  max-width: 760px;
}

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

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

.info-card,
.industry-card,
.stack-card,
.principles article,
.benefit-list article {
  padding: 26px;
}

.comparison-intro {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(31, 138, 76, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(227, 245, 232, 0.95), rgba(246, 251, 247, 0.92));
}

.comparison-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.comparison-table {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.15fr;
  gap: 12px;
}

.comparison-row > div {
  padding: 18px;
  border: 1px solid rgba(31, 138, 76, 0.1);
  border-radius: 20px;
  background: rgba(248, 252, 249, 0.88);
  color: var(--muted);
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.comparison-head > div {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #d9f0df, #f3fbf5);
  border-color: rgba(31, 138, 76, 0.22);
}

.comparison-head > div:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(31, 138, 76, 0.18), rgba(217, 240, 223, 0.94));
}

.comparison-head > div:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(31, 122, 120, 0.14), rgba(232, 247, 246, 0.96));
}

.comparison-label {
  color: var(--text) !important;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(237, 248, 240, 0.98), rgba(248, 252, 249, 0.92)) !important;
  border-left: 4px solid var(--green);
}

.comparison-row:not(.comparison-head) > div:nth-child(2) {
  background: linear-gradient(180deg, rgba(240, 250, 243, 0.96), rgba(248, 252, 249, 0.88));
}

.comparison-row:not(.comparison-head) > div:nth-child(3) {
  background: linear-gradient(180deg, rgba(242, 250, 249, 0.96), rgba(248, 252, 249, 0.88));
}

.comparison-benefits {
  margin-top: 12px;
}

.insight-panel {
  background: linear-gradient(180deg, rgba(246, 251, 247, 0.98), rgba(235, 246, 239, 0.96));
}

.insight-grid {
  margin-bottom: 20px;
}

.insight-card {
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1f8a4c, #79c98f);
}

.insight-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(31, 138, 76, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.insight-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.compact-actions {
  margin-top: 0;
}

.compact-actions .button {
  min-width: 180px;
}

.comparison-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.info-card h3,
.industry-card h3,
.timeline h3,
.stack-card h3,
.principles h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

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

.timeline article {
  padding: 24px;
  border-top: 2px solid rgba(69, 191, 103, 0.38);
  background: rgba(246, 251, 247, 0.95);
  border-radius: 20px;
}

.timeline strong,
.stack-card span {
  color: var(--green);
  font-size: 1.4rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero,
  .stats-strip,
  .three-up,
  .two-up,
  .timeline,
  .architecture-grid,
  .principles,
  .benefit-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    display: grid;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 12px;
  }

  .comparison-head > div {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  .brand img {
    width: 150px;
  }

  h1 {
    max-width: none;
  }

  .nav {
    gap: 14px;
  }

  .site-shell {
    width: min(100% - 16px, 1180px);
    padding-bottom: 40px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .compact-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .comparison-intro,
  .comparison-row > div,
  .info-card,
  .industry-card,
  .stack-card,
  .principles article,
  .benefit-list article {
    padding: 20px;
  }

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

  .scan-grid {
    grid-template-columns: 1fr;
  }
}