:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #111827;
  --text: #151922;
  --muted: #5f6876;
  --line: #d7dbe2;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --blue: #1d4ed8;
  --yellow: #f4c542;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(246, 247, 249, 0.94);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: min(820px, calc(100svh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(54px, 7vw, 86px) 0 clamp(38px, 5vw, 62px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.9rem, 5.7vw, 5.4rem);
  line-height: 0.98;
  font-weight: 820;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #374151;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--surface-strong);
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--surface-strong);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
}

.status-panel,
.visual-panel {
  align-self: end;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.visual-panel {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  min-height: 420px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(29, 78, 216, 0.08)),
    var(--surface);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: var(--radius);
}

.node-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
}

.node span {
  color: var(--text);
  font-weight: 820;
}

.node small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-node {
  background: var(--surface-strong);
}

.primary-node span,
.primary-node small {
  color: #ffffff;
}

.muted-node {
  border-style: dashed;
}

.status-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #374151;
}

.status-panel li {
  padding-left: 18px;
  border-left: 3px solid var(--yellow);
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.two-column,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.section-copy {
  color: #374151;
  font-size: 1.05rem;
}

.section-copy p:first-child {
  margin-top: 0;
}

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

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

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-card.featured {
  background: var(--surface-strong);
  color: #ffffff;
}

.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-card.featured p {
  color: #d1d5db;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: #eef2f7;
  border-radius: 999px;
  color: #243041;
  font-size: 0.82rem;
  font-weight: 700;
}

.featured .tag {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.project-link {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.featured .project-link {
  color: #f8e08e;
}

.demos-band {
  margin-inline: calc((100vw - min(1180px, calc(100vw - 36px))) / -2);
  padding-inline: calc((100vw - min(1180px, calc(100vw - 36px))) / 2);
  background: #e9f6f2;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.demo-layout p {
  margin: 0;
  color: #284039;
  font-size: 1.06rem;
}

.route-list {
  display: grid;
  gap: 10px;
}

.route-list span {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  color: #12322d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
}

.contact-links {
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 740;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  font-size: 0.95rem;
}

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

  .hero,
  .two-column,
  .contact,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .status-panel {
    align-self: stretch;
  }

  .visual-panel {
    align-self: stretch;
    min-height: 320px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.9rem);
  }

  .button {
    width: 100%;
  }
}
