:root {
  --bg: #070b12;
  --panel: #0f1724;
  --panel-2: #121c2c;
  --text: #f7f9fc;
  --muted: #98a6ba;
  --line: #263246;
  --accent: #61d394;
  --accent-2: #6db8ff;
  --warning: #f7ba4d;
  --danger: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(97, 211, 148, 0.14), transparent 28rem),
    radial-gradient(circle at 78% 4%, rgba(109, 184, 255, 0.15), transparent 25rem),
    linear-gradient(180deg, #070b12 0%, #0a101a 46%, #080b10 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 11, 18, .78);
  backdrop-filter: blur(18px);
}

.brand, nav { display: flex; align-items: center; gap: 14px; }

.brand { font-weight: 760; letter-spacing: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(97,211,148,.2), rgba(109,184,255,.12));
  font-size: 13px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

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

main { overflow: hidden; }

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
  padding: clamp(64px, 9vw, 128px) clamp(18px, 5vw, 76px) 72px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(54px, 9vw, 128px);
  line-height: .88;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  margin: 30px 0 0;
  color: #c4cedd;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 720;
  border: 1px solid rgba(255,255,255,.14);
}

.button.primary { color: #06120d; background: var(--accent); border-color: var(--accent); }
.button.secondary { color: var(--text); background: rgba(255,255,255,.05); }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18,28,44,.96), rgba(12,18,28,.96));
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  padding: 22px;
}

.scope-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.scope-line span { color: var(--muted); }
.scope-line strong { font-size: 38px; line-height: 1; }

.signal-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.signal-map span {
  height: 54px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(97,211,148,.24), rgba(109,184,255,.1));
  border: 1px solid rgba(255,255,255,.08);
}

.section { padding: 58px clamp(18px, 5vw, 76px); }

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-heading.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: 0;
  line-height: 1;
}

.section-heading p, .lab p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.feature-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(5,8,13,.94) 100%);
}

.feature-card > div { position: relative; z-index: 1; }

.feature-card h3 { margin: 0 0 8px; font-size: 20px; }
.feature-card p { margin: 0; color: #c7d1df; font-size: 14px; line-height: 1.38; }

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

.deploy-row, .project-card, .lab-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,23,36,.86);
}

.deploy-row {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  min-height: 126px;
  overflow: hidden;
}

.deploy-row img { width: 100%; height: 100%; object-fit: cover; }

.deploy-row div { padding: 14px; min-width: 0; }
.deploy-row h3, .project-card h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.deploy-row p, .project-card p { color: var(--muted); line-height: 1.42; }
.deploy-row p { margin: 8px 0 0; font-size: 13px; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; }

input, select {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d1420;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  min-width: 160px;
}

.language-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.language-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: #cbd5e1;
  background: rgba(255,255,255,.035);
  font-size: 13px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }

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

.project-card {
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #111827;
}

.project-card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #dbe5f4;
  font-size: 12px;
}

.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions a {
  color: #dbeafe;
  font-weight: 720;
  font-size: 13px;
}

.lab {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.lab-cards article { padding: 18px; }
.lab-cards strong { display: block; margin-bottom: 8px; }
.lab-cards span { color: var(--muted); line-height: 1.45; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1100px) {
  .hero, .lab { grid-template-columns: 1fr; }
  .featured-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deployment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero { min-height: auto; padding-top: 48px; }
  .section-heading.row { align-items: stretch; flex-direction: column; }
  .featured-grid, .project-grid, .deployment-list, .lab-cards { grid-template-columns: 1fr; }
  .deploy-row { grid-template-columns: 132px minmax(0, 1fr); }
  footer { flex-direction: column; }
}
