:root {
  --bg: #07110f;
  --panel: rgba(8, 25, 21, 0.93);
  --panel-light: rgba(20, 58, 49, 0.88);
  --text: #edf7f4;
  --muted: #b8cac4;
  --accent: #39d98a;
  --accent-soft: rgba(57, 217, 138, 0.16);
  --line: rgba(57, 217, 138, 0.32);
  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(3, 18, 14, 0.62), rgba(3, 18, 14, 0.82)),
    url("pcb-background.png") center center / cover fixed no-repeat,
    #07110f;
  line-height: 1.6;
}

/* Uploaded PCB background image is used on the body. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.08);
}

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 30px rgba(57, 217, 138, 0.16);
}

.logo span {
  white-space: nowrap;
  max-width: none;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 48px;
}

.hero-card,
.content-card {
  background: linear-gradient(145deg, var(--panel), rgba(6, 18, 15, 0.88));
  border: 1px solid rgba(57, 217, 138, 0.24);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}

.hero-main {
  padding: clamp(34px, 6vw, 70px);
}

.eyebrow {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.8rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.2rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 760px;
}

.hero-side {
  border-left: 1px solid rgba(57, 217, 138, 0.22);
  background:
    linear-gradient(rgba(57, 217, 138, 0.06), rgba(57, 217, 138, 0.02)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(57, 217, 138, 0.12) 19px 20px);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(57, 217, 138, 0.42);
  background: var(--accent);
  color: #062217;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.section {
  position: relative;
  z-index: 1;
  padding: 34px 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--panel-light);
  border: 1px solid rgba(57, 217, 138, 0.2);
  border-radius: var(--radius);
  padding: 26px;
}

.card p,
.content-card p,
li {
  color: var(--muted);
}

.content-card {
  padding: clamp(28px, 5vw, 52px);
}

.list-clean {
  padding-left: 20px;
}

.list-clean li {
  margin-bottom: 10px;
}

.page-title {
  padding: 56px 0 20px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 44px 0 60px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  border-top: 1px solid rgba(57, 217, 138, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

code {
  color: var(--accent);
}

@media (max-width: 800px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-side {
    border-left: 0;
    border-top: 1px solid rgba(57, 217, 138, 0.22);
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
