* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #0f2730;
  background:
    linear-gradient(180deg, rgba(243, 248, 251, 0.9), rgba(255, 255, 255, 0.98) 420px),
    radial-gradient(circle, rgba(42, 141, 191, 0.12) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
  font-family: "Atkinson Hyperlegible", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #2a8dbf;
  outline-offset: 3px;
}

::selection {
  background: #d8effb;
  color: #0f2730;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(215, 230, 238, 0.8);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2730;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  color: #55707b;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #0f2730;
  background: #f0f7fb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  color: #55707b;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: #0f2730;
}

/* ── BUTTONS ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

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

.button-primary {
  border-color: #2a8dbf;
  background: #2a8dbf;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(42, 141, 191, 0.25), 0 4px 12px rgba(42, 141, 191, 0.2);
}

.button-primary:hover {
  background: #2079a4;
  border-color: #2079a4;
  box-shadow: 0 2px 6px rgba(42, 141, 191, 0.3), 0 8px 20px rgba(42, 141, 191, 0.22);
}

.button-ghost {
  border-color: #d7e6ee;
  background: #ffffff;
  color: #374151;
}

.button-ghost:hover {
  border-color: #2a8dbf;
  color: #0f2730;
}

.button-secondary {
  border-color: #d7e6ee;
  background: #ffffff;
  color: #0f2730;
}

.button-secondary:hover {
  border-color: #2a8dbf;
}

.button-outline {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.button-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}

.button-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
  gap: 9px;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: #0b1f28;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 141, 191, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 141, 191, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  width: 800px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(42, 141, 191, 0.18) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 56px 80px 56px;
  min-height: calc(100svh - 64px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(42, 141, 191, 0.35);
  border-radius: 999px;
  background: rgba(42, 141, 191, 0.1);
  color: #73c9f7;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c9b7d;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(44, 155, 125, 0.8);
}

.hero h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 4rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero-subhead {
  margin: 0 0 36px;
  color: rgba(255,255,255,0.65);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 480px;
}

.section h2 {
  margin: 0;
  color: #0f2730;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 4px;
  transition: color 0.15s;
}

.hero-link:hover {
  color: #ffffff;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  color: #73c9f7;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-item span {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── HERO RIGHT: DASHBOARD + PHONE ── */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 60px;
}

.hero-dashboard {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #ffbd2e; }
.dot-green { background: #28ca41; }

.dash-title {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 600;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #2c9b7d;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c9b7d;
  box-shadow: 0 0 6px rgba(44,155,125,0.8);
}

.dash-body {
  display: grid;
  grid-template-columns: 100px 1fr;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: default;
}

.sidebar-item.active {
  background: rgba(42, 141, 191, 0.2);
  color: #73c9f7;
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(42, 141, 191, 0.12);
  border: 1px solid rgba(42, 141, 191, 0.2);
}

.metric-card.metric-green {
  background: rgba(44, 155, 125, 0.12);
  border-color: rgba(44, 155, 125, 0.2);
}

.metric-card.metric-amber {
  background: rgba(215, 156, 47, 0.12);
  border-color: rgba(215, 156, 47, 0.2);
}

.metric-val {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-card.metric-green .metric-val { color: #6ee7c7; }
.metric-card.metric-amber .metric-val { color: #fcd47a; }

.metric-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  font-weight: 600;
}

.dash-heatmap {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.heatmap-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.heatmap-grid span {
  height: 18px;
  border-radius: 4px;
}

.h-hi  { background: rgba(42, 141, 191, 0.7); }
.h-md  { background: rgba(42, 141, 191, 0.35); }
.h-lo  { background: rgba(42, 141, 191, 0.12); }

.dash-live {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(44, 155, 125, 0.08);
  border: 1px solid rgba(44, 155, 125, 0.2);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c9b7d;
  box-shadow: 0 0 6px rgba(44,155,125,0.8);
  flex-shrink: 0;
}

.live-indicator strong {
  color: #6ee7c7;
  font-size: 0.78rem;
}

.dash-live p {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
}

.live-langs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-langs span {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(42, 141, 191, 0.15);
  color: #73c9f7;
  font-size: 0.7rem;
  font-weight: 700;
}

.live-langs svg {
  color: rgba(255,255,255,0.2);
}

/* Phone mockup */
.hero-phone {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 175px;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 26px;
  background: rgba(8, 16, 22, 0.98);
  box-shadow: 0 24px 56px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  z-index: 10;
}

.phone-notch {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin: 10px auto 0;
}

.phone-screen {
  padding: 10px 12px 14px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.phone-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(42, 141, 191, 0.2);
  color: #73c9f7;
  font-size: 0.65rem;
  font-weight: 700;
}

.phone-lang {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 600;
}

.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.chat-bubble {
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.65rem;
  line-height: 1.4;
  max-width: 90%;
}

.chat-bubble.teacher {
  background: rgba(42, 141, 191, 0.2);
  color: #b3dcef;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.phone-offline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #2c9b7d;
  font-size: 0.62rem;
  font-weight: 700;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: #2a8dbf;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.badge-row li,
.capability-cloud span,
.tech-stack span,
.reference-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d7e6ee;
  border-radius: 999px;
  background: #ffffff;
  color: #55707b;
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  border-bottom: 1px solid #d7e6ee;
  background: #d7e6ee;
  box-shadow: 0 4px 20px rgba(13, 52, 70, 0.06);
}

.stat-strip div {
  display: grid;
  gap: 5px;
  min-height: 124px;
  padding: 24px 28px;
  background: #ffffff;
}

.stat-strip strong {
  color: #2a8dbf;
  font-size: 2.2rem;
  line-height: 1;
}

.stat-strip span {
  color: #55707b;
  font-weight: 700;
}

.section {
  padding: 94px 28px;
}

.section-muted {
  border-block: 1px solid #d7e6ee;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.94), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle, rgba(42, 141, 191, 0.1) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
}

.section > *,
.footer > * {
  max-width: 1180px;
  margin-inline: auto;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading h2,
.impact-band h2,
.open-source-layout h2 {
  max-width: 780px;
  font-size: 2.8rem;
  line-height: 1.1;
}

.section-heading.compact {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
}

.section-heading.compact h2,
.section-heading.compact p {
  margin-inline: auto;
}

.section-heading p,
.prose p,
.tech-copy p,
.open-source-layout p,
.impact-band p {
  color: #55707b;
  font-size: 1.02rem;
}

.two-column,
.tech-layout,
.open-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: start;
}

.prose {
  max-width: 720px;
}

.prose p:first-child,
.tech-copy p:first-child {
  margin-top: 0;
}

.impact-band > div > p:first-child {
  margin-top: 0;
  margin-bottom: 8px;
}

.impact-band h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.fact-grid,
.pillar-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

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

.fact-grid article,
.pillar-grid article,
.feature-grid article,
.license-note {
  border: 1px solid #d7e6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(13, 52, 70, 0.07);
}

.fact-grid article {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
}

.fact-grid strong {
  color: #2c9b7d;
  font-size: 2.2rem;
  line-height: 1;
}

.fact-grid span {
  color: #55707b;
  font-weight: 700;
}

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

.pillar-grid article,
.feature-grid article {
  padding: 22px;
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 999px;
  background: #d8effb;
  color: #2079a4;
  font-weight: 900;
}

.pillar-grid h3,
.feature-grid h3 {
  margin: 18px 0 8px;
  color: #0f2730;
  font-size: 1.22rem;
}

.pillar-grid p,
.feature-grid p {
  margin: 0;
  color: #55707b;
}

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

.feature-grid article:nth-child(2) {
  border-color: #bfe8d9;
}

.feature-grid article:nth-child(3) {
  border-color: #c7dff0;
}

.feature-grid article:nth-child(6) {
  border-color: #e4d2a4;
}

.capability-cloud,
.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 1180px;
  margin: 24px auto 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: start;
  align-self: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.steps li {
  position: relative;
  min-height: 250px;
  padding: 62px 18px 18px;
  border: 1px solid #d7e6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(13, 52, 70, 0.07);
  counter-increment: setup-step;
}

.steps li::before {
  content: counter(setup-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  background: #d9f1e9;
  color: #1f7b63;
  font-weight: 900;
}

.steps strong {
  display: block;
  color: #0f2730;
  font-size: 1.04rem;
  line-height: 1.25;
}

.steps p {
  margin: 10px 0 0;
  color: #55707b;
  font-size: 0.94rem;
}

.section-tech {
  background: #0f2730;
  color: #e7f4fb;
  padding-bottom: 60px;
  padding-top: 72px;
}

.section-tech .section-label,
.section-tech .tech-stack span {
  color: #73c9f7;
}

.section-tech h2,
.section-tech p {
  color: #e7f4fb;
}

.section-tech .tech-copy p {
  color: #b9d0d9;
}

.tech-stack span {
  border-color: rgba(115, 201, 247, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.tech-layout {
  align-items: start;
  margin-top: 48px;
}

.tech-copy {
  max-width: 650px;
  margin: 0 auto;
}

.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 36px;
  border: 1px solid #d7e6ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(13, 52, 70, 0.07);
}

.impact-stats {
  display: grid;
  gap: 12px;
}

.impact-stats span {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: #f7fbfd;
  color: #55707b;
  font-weight: 800;
}

.impact-stats strong {
  color: #2a8dbf;
  font-size: 2rem;
  line-height: 1;
}

.open-source-layout {
  align-items: center;
}

.license-note {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}

.license-note img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.license-note strong {
  color: #0f2730;
  font-size: 1.35rem;
}

.license-note span {
  color: #55707b;
}

.reference-list span {
  border-radius: 8px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  padding: 42px 28px 34px;
  border-top: 1px solid #d7e6ee;
  background: #ffffff;
}

.footer > * {
  margin: 0;
}

.footer p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #55707b;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer nav a {
  color: #55707b;
  font-weight: 800;
  text-decoration: none;
}

.footer small {
  grid-column: 1 / -1;
  color: #55707b;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 1100px) {
  .hero-inner {
    gap: 40px;
    padding: 60px 32px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

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

@media (max-width: 900px) {
  /* Header */
  .nav-links {
    display: none;
  }

  /* Hero collapses to single column */
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 28px 52px;
    gap: 48px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subhead {
    max-width: 100%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-dashboard {
    flex: 1;
    min-width: 0;
  }

  .hero-phone {
    position: static;
    width: 150px;
    flex-shrink: 0;
  }

  /* Stats strip */
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  /* Grids */
  .pillar-grid,
  .two-column,
  .tech-layout,
  .open-source-layout,
  .impact-band,
  .footer {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer nav {
    justify-content: flex-start;
  }

  .tech-layout {
    margin-top: 36px;
  }

  .tech-copy {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  /* Header */
  .site-header {
    padding: 0 16px;
    height: 56px;
  }

  .header-actions .button-ghost {
    display: none;
  }

  /* Hero */
  .hero-inner {
    padding: 48px 20px 44px;
    gap: 36px;
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.1;
  }

  .hero-subhead {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-right {
    flex-direction: column;
  }

  .hero-phone {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .trust-divider {
    display: none;
  }

  /* Stat strip */
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .stat-strip div {
    min-height: 100px;
    padding: 18px 16px;
  }

  .stat-strip strong {
    font-size: 1.7rem;
  }

  /* Sections */
  .section {
    padding: 60px 18px;
  }

  .section-heading h2,
  .impact-band h2,
  .open-source-layout h2 {
    font-size: 2rem;
  }

  .fact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: auto;
  }

  .impact-band {
    padding: 22px;
  }

  .inline-actions {
    align-items: stretch;
  }

  .footer {
    padding-inline: 18px;
  }

  .tech-layout {
    margin-top: 28px;
  }
}
