:root {
  --bg: #050a0f;
  --panel: rgba(8, 20, 30, 0.82);
  --border: rgba(98, 193, 255, 0.22);
  --border-bright: rgba(41, 219, 245, 0.48);
  --text: #f4f7fb;
  --muted: #aab8c7;
  --cyan: #23d9f5;
  --blue: #30a7ff;
  --green: #35e69b;
  --teal: #29d6c8;
  --pink: #fa4e8c;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
  --radius: 18px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 166, 255, .08), transparent 28%),
    radial-gradient(circle at 12% 40%, rgba(0, 255, 204, .05), transparent 25%),
    var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(67, 139, 181, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 139, 181, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.6) 50%, transparent 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 18%, var(--cyan) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 29%, var(--blue) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 15%, var(--teal) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 31%, var(--cyan) 0 1px, transparent 2px);
  opacity: .5;
}

.bg-glow {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  position: fixed;
  pointer-events: none;
  z-index: -2;
  opacity: .12;
}
.bg-glow-1 { right: -100px; top: 120px; background: var(--cyan); }
.bg-glow-2 { left: -130px; bottom: 10%; background: var(--green); }

.section-shell,
.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  margin-top: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 1000;
  border: 1px solid rgba(121, 195, 241, .18);
  border-radius: 16px;
  background: rgba(5, 13, 20, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .06em;
}
.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--cyan);
  box-shadow: inset 0 0 18px rgba(35,217,245,.08), 0 0 18px rgba(35,217,245,.08);
}
.brand-icon svg {
  width: 31px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.1;
}

.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  color: #dce5ed;
  text-decoration: none;
  font-size: .96rem;
  position: relative;
  padding: 8px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--cyan);
  transition: transform .2s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  padding-block: 72px 45px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  color: #75dff1;
  letter-spacing: .12em;
  font-size: .78rem;
  margin: 0 0 14px;
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 7px;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 1.8s infinite;
}
.green-dot { background: var(--green); box-shadow: 0 0 14px var(--green); }

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.78);
  text-shadow: 0 0 36px rgba(52, 186, 255, .15);
}
.hero h2 {
  margin: 22px 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
  letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 620px;
  color: #cbd6e0;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #24cfe9, #178fe8);
  color: white;
  box-shadow: 0 10px 30px rgba(30, 173, 237, .18);
}
.btn-secondary {
  border: 1px solid rgba(197, 221, 239, .42);
  background: rgba(255,255,255,.025);
  color: #eef7fd;
}
.btn-secondary:hover { border-color: var(--cyan); }

.hero-visual { min-height: 500px; }
.hero-image-wrap {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(8, 20, 30, 0.55), rgba(4, 12, 18, 0.2));
  box-shadow: inset 0 0 50px rgba(35,217,245,.03), 0 30px 70px rgba(0,0,0,.25);
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(41, 219, 245, 0.14);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 18px 54px;
}
.feature-card {
  min-height: 235px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(11,25,36,.86), rgba(5,13,20,.72));
  box-shadow: inset 0 0 25px rgba(255,255,255,.01);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 18px 45px rgba(0,0,0,.25), inset 0 0 30px rgba(35,217,245,.025);
}
.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  border: 1px solid rgba(35,217,245,.35);
  background: rgba(35,217,245,.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.feature-icon.raspberry { color: var(--pink); border-color: rgba(250,78,140,.35); }
.feature-icon.lock { color: var(--green); border-color: rgba(53,230,155,.4); }

.feature-card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.feature-card p {
  color: var(--muted);
  line-height: 1.56;
  min-height: 78px;
  margin: 0 0 22px;
}
.feature-card a {
  text-decoration: none;
  color: var(--cyan);
  font-size: .9rem;
}
.feature-card a span { transition: margin-left .2s ease; }
.feature-card a:hover span { margin-left: 5px; }

.client-card {
  border-color: rgba(53,230,155,.28);
  box-shadow: inset 0 0 30px rgba(53,230,155,.025);
}
.tiny-lock { font-size: .72rem; opacity: .8; }

.bench {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(6,16,24,.62);
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 25px;
}
.section-heading h2,
.private-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 0;
}
.section-heading > p {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  padding: 20px;
  min-height: 145px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 15px;
  align-items: start;
  border: 1px solid rgba(113, 172, 208, .18);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(10,24,34,.9), rgba(4,12,18,.8));
}
.project-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(48,167,255,.52);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1.3rem;
}
.project-copy h3 { margin: 3px 0 6px; font-size: 1.05rem; }
.project-copy p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .88rem; }

.status-pill {
  margin-top: 3px;
  padding: 5px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.status-pill span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.status-pill.online,
.status-pill.active {
  color: var(--green);
  background: rgba(53,230,155,.1);
  border: 1px solid rgba(53,230,155,.22);
}
.status-pill.online span,
.status-pill.active span { background: var(--green); box-shadow: 0 0 8px var(--green); }

.status-pill.building {
  color: #56b7ff;
  background: rgba(48,167,255,.1);
  border: 1px solid rgba(48,167,255,.23);
}
.status-pill.building span { background: var(--blue); box-shadow: 0 0 8px var(--blue); }

.private-section {
  margin-top: 26px;
  margin-bottom: 42px;
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 22px;
  border: 1px solid rgba(53,230,155,.3);
  background:
    linear-gradient(120deg, rgba(7,30,31,.9), rgba(4,17,25,.9)),
    rgba(5,15,20,.88);
}
.private-icon {
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(53,230,155,.35);
  background: rgba(53,230,155,.06);
  font-size: 2rem;
}
.private-section p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }

.private-badge {
  min-width: 120px;
  text-align: center;
  padding: 14px 18px;
  border: 1px solid rgba(53,230,155,.32);
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
}
.private-badge span { color: #78928e; font-size: .65rem; display: block; }
.private-badge strong { color: var(--green); font-size: .9rem; }

.site-footer {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(116,177,211,.13);
  color: #8ea1b2;
  font-size: .82rem;
}

.terminal {
  font-family: "JetBrains Mono", monospace;
  color: #43d8c8;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,100% { opacity: .45; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
}

@media (max-width: 760px) {
  .section-shell, .site-header { width: min(calc(100% - 24px), var(--max)); }
  .site-header { top: 8px; margin-top: 10px; }
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(5, 13, 20, .97);
    flex-direction: column;
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 10px; }

  .hero {
    min-height: auto;
    padding-top: 48px;
    gap: 24px;
  }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.2rem); }
  .hero h2 { font-size: 1.7rem; }
  .hero-text { font-size: 1rem; }
  .hero-image-wrap { padding: 8px; }

  .feature-grid { grid-template-columns: 1fr; padding-bottom: 36px; }
  .feature-card { min-height: auto; }
  .feature-card p { min-height: auto; }

  .bench { padding: 22px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }

  .project-card { grid-template-columns: 48px 1fr; }
  .status-pill { grid-column: 2; justify-self: start; }

  .private-section { grid-template-columns: 1fr; }
  .private-badge { justify-self: start; }

  .site-footer {
    padding-block: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
