:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0d1b18;
  --line: #1e3630;
  --text: #effff9;
  --muted: #91aaa2;
  --green: #50f2a7;
  --cyan: #52d9f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(80, 242, 167, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.nav, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  color: #04100c; background: var(--green); box-shadow: 0 0 28px rgba(80, 242, 167, .22);
}
nav { display: flex; gap: 32px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.nav-button, .secondary {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px; font-size: 14px;
}
.hero { min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 14px 0 22px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--green); }
.lead { max-width: 600px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin: 34px 0; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px;
  border-radius: 10px; background: var(--green); color: #06120e; font-weight: 800;
}
.facts { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.facts span { display: flex; flex-direction: column; }
.facts strong { color: var(--text); font-size: 18px; }
.board {
  position: relative; min-height: 430px; overflow: hidden; border: 1px solid #28473f;
  border-radius: 26px; background: linear-gradient(145deg, #102721, #091612);
  box-shadow: 0 35px 80px rgba(0,0,0,.35), inset 0 0 0 8px #0a1814;
}
.board-label { position: absolute; top: 24px; left: 28px; color: #54786c; font: 10px monospace; letter-spacing: .15em; }
.grid-dots { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(#5f9180 1px, transparent 1px); background-size: 18px 18px; }
.module, .controller { z-index: 2; position: absolute; border: 1px solid #356053; background: #102d25; box-shadow: 0 14px 30px #020806; }
.module { width: 142px; padding: 20px; border-radius: 15px; }
.module small, .module strong, .module em { display: block; }
.module small { color: var(--muted); font-size: 9px; }
.module strong { margin-top: 8px; font-size: 13px; }
.sensor { left: 45px; top: 95px; }
.display { right: 38px; bottom: 72px; color: var(--cyan); background: #0b2023; }
.display strong { font: 25px monospace; }
.display em { margin-top: 8px; font: 9px monospace; color: #73999c; }
.led { float: right; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pins { display: flex; gap: 9px; margin-top: 18px; }
.pins i { width: 8px; height: 8px; border-radius: 2px; background: #cb9b49; }
.controller { left: 38%; top: 40%; width: 150px; height: 125px; padding: 18px; border-radius: 12px; transform: rotate(-4deg); }
.controller span { position: absolute; bottom: 13px; color: var(--green); font: 11px monospace; }
.chip { width: 62px; height: 52px; margin: 10px auto; border: 6px double #567a70; background: #050b09; }
.wire { z-index: 1; position: absolute; height: 80px; width: 160px; border: 3px solid; border-color: transparent transparent var(--green) var(--green); border-radius: 0 0 0 60px; opacity: .75; }
.wire-a { left: 160px; top: 155px; transform: rotate(-10deg); }
.wire-b { right: 130px; bottom: 125px; transform: rotate(180deg); border-color: transparent transparent var(--cyan) var(--cyan); }
.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
h2 { margin: 10px 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; }
.section-heading > p, .project p { max-width: 460px; color: var(--muted); line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.card { min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; font-size: 25px; }
.cyan { color: var(--cyan); background: rgba(82,217,245,.1); }
.violet { color: #b59cff; background: rgba(181,156,255,.1); }
.orange { color: #ffb46b; background: rgba(255,180,107,.1); }
.card > p { margin-top: 34px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.card h3 { font-size: 21px; }
.card span { display: block; min-height: 58px; color: var(--muted); line-height: 1.5; }
.card a { color: var(--green); font-size: 14px; font-weight: 700; }
.steps { text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; text-align: left; }
.step-grid > div { padding: 20px 40px; border-left: 1px solid var(--line); }
.step-grid b { color: var(--green); font: 13px monospace; }
.step-grid p { color: var(--muted); }
.project { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 80px 0; }
  .board { min-height: 390px; }
  .cards, .step-grid { grid-template-columns: 1fr; }
  .section-heading, .project { align-items: start; flex-direction: column; }
  footer { padding: 35px 0; flex-direction: column; align-items: start; }
}

@media (max-width: 520px) {
  .nav-button { display: none; }
  .hero { gap: 35px; }
  .board { transform: scale(.9); margin: -20px; }
  .facts { gap: 16px; }
}
