/* Seven Website — Styles */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #050907;
  --bg-1:         #090f0b;
  --bg-2:         #0d1510;
  --bg-3:         #131c16;
  --border:       #1e1e1e;
  --border-2:     #272727;
  --text:         #f0f0f0;
  --text-2:       #a0a0a0;
  --text-3:       #8c8c8c;
  --accent:       #00b4d8;
  --accent-dim:   #0090b0;
  --accent-glow:  rgba(0, 180, 216, 0.12);
  --accent-glow2: rgba(0, 180, 216, 0.06);
  --green:        #22c55e;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', 'Courier New', monospace;
  --radius:       10px;
  --radius-sm:    6px;
  --nav-h:        60px;
  --max-w:        1100px;
}

[data-theme="light"] {
  --bg:           #f8f9fa;
  --bg-1:         #ffffff;
  --bg-2:         #f0f1f2;
  --bg-3:         #e8e9eb;
  --border:       #e2e3e5;
  --border-2:     #d5d6d8;
  --text:         #0f0f0f;
  --text-2:       #404040;
  --text-3:       #5a5a5a;
  --accent:       #00778a;
  --accent-dim:   #005f70;
  --accent-glow:  rgba(0, 119, 138, 0.1);
  --accent-glow2: rgba(0, 119, 138, 0.05);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 9, 7, 0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
[data-theme="light"] .nav { background: rgba(248, 249, 250, 0.9); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.nav-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-github:hover { color: var(--text); border-color: var(--accent); }
.nav-github svg { width: 16px; height: 16px; }

.theme-btn {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.2s;
  font-size: 0.9rem;
}
.theme-btn:hover { color: var(--text); border-color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 5rem) 1.5rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }

.hero::before { /* faint blueprint grid, faded at the edges */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.hero::after { /* soft cyan bloom behind the board */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: 8%; top: 42%; width: 520px; height: 520px; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(40,170,95,.10), transparent 70%);
  filter: blur(20px);
}
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}
[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(0,119,138,.08), transparent 70%);
}


.hero-specs {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  opacity: 0.7;
}


/* ─── Boot sequence ─────────────────────────────────────────────── */
.boot {
  display: grid;
  font: 0.7rem var(--mono);
  color: var(--text-3);
  margin-top: 4px;
  margin-left: 10px;
  opacity: 0.6;
  text-align: left;
  white-space: nowrap;
  width: 100%;
}
.boot > * { grid-area: 1/1; }

@media (prefers-reduced-motion: no-preference) {
  .boot.run .connecting { animation: boot-out .3s ease 1.8s forwards; }
  .boot.run .connecting .dot { animation: pulse 1s ease-in-out infinite; }
  .boot.run .online { opacity: 0; animation: boot-in .4s ease 2.2s forwards; }
  .boot.run .bar { opacity: .2; }
  .boot.run .bar.b1 { animation: boot-in .3s ease 2.0s forwards; }
  .boot.run .bar.b2 { animation: boot-in .3s ease 2.2s forwards; }
  .boot.run .bar.b3 { animation: boot-in .3s ease 2.4s forwards; }

  .boot.run .live { opacity: 0; animation: boot-in .35s ease 3.2s forwards; }
  .boot.run .live .dot { animation: pulse 2.4s ease-in-out 3.5s infinite; color: var(--accent); }
}

/* No motion: skip sequence, show connected */
@media (prefers-reduced-motion: reduce) {
  .boot .connecting { display: none; }
}

.boot .telemetry { opacity: 0.5; }
.boot .online { opacity: 0; }
.boot .bar { font-size: 0.6rem; letter-spacing: -2px; }

@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
@keyframes boot-in { from { opacity: 0; } to { opacity: 1; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 180, 216, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hero-title {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f0f0f 0%, rgba(0,0,0,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 44ch;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #00ccf0; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,180,216,0.3); }
.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Board image */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.board-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: visible;
  border: none;
  background: transparent;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.board-frame img,
.board-frame svg {
  width: 100%; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)) drop-shadow(0 0 60px rgba(0,180,216,0.06));
}
.board-frame.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PCB placeholder SVG */
.pcb-placeholder {
  width: 100%;
  height: 100%;
}

/* ─── Specs Strip ─────────────────────────────────────────────────── */
.specs-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
}
.specs-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-between;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid var(--border);
}
.spec-item:first-child { padding-left: 0; }
.spec-item:last-child { border-right: none; }
.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.spec-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
}

/* ─── Sections ───────────────────────────────────────────────────── */
section {
  padding: 6rem 1.5rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}
section {
  overflow: hidden;
}
.hero {
  overflow: visible;
}
#hardware {
  overflow: visible;
}
#hardware .section-inner {
  overflow: visible;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ─── Overview ───────────────────────────────────────────────────── */
#overview {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.overview-card {
  overflow: hidden;
  background: var(--bg-1);
  padding: 2rem;
  transition: background 0.2s;
}
.overview-card:hover { background: var(--bg-2); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(0,180,216,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Hardware ───────────────────────────────────────────────────── */
#hardware {
  background: var(--bg-1);
}
.hw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.spec-table tbody tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 0.8rem 0;
  font-size: 0.875rem;
}
.spec-table td:first-child {
  color: var(--text-3);
  font-weight: 500;
  width: 45%;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-table td:last-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.hw-image-col {
  position: static;
}
.hw-board-frame {
  border-radius: var(--radius);
  overflow: visible;
  border: none;
  background: transparent;
  margin-bottom: 1.5rem;
  padding: 20px;
}
.hw-board-frame img {
  width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)) drop-shadow(0 0 60px rgba(0,180,216,0.06));
  object-fit: cover;
}
.github-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.github-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.github-link-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.github-link-content { flex: 1; }
.github-link-title {
  font-size: 0.875rem;
  font-weight: 600;
}
.github-link-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--mono);
}
.github-link-arrow {
  color: var(--text-3);
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}
.github-link:hover .github-link-arrow { transform: translateX(4px); color: var(--accent); }

/* ─── Software ───────────────────────────────────────────────────── */
#software {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}
.sw-grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sw-card {
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}
.sw-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}
.sw-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sw-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(0,180,216,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.sw-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}
.sw-card-sub {
  font-size: 0.72rem;
  color: var(--text-3);
}
.sw-card-body {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.65;
}
.sw-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.sw-tag {
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,180,216,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ─── Expansion ─────────────────────────────────────────────────── */
#expansion {
  background: var(--bg-1);
}
.expansion-layout {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.expansion-visual {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.mikrobus-diagram {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.click-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.click-chip {
  padding: 0.6rem 0.75rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
}
.expansion-content .section-sub { margin-bottom: 1.75rem; }

.pin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.pin-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-2);
}
.pin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.pin-table td:first-child {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.78rem;
}
.pin-table tr:last-child td { border-bottom: none; }

/* ─── Get Started ────────────────────────────────────────────────── */
#get-started {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 50%);
}
.gs-steps {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.gs-step {
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.gs-step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.gs-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.gs-step-body {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.65;
}
.gs-step-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.code-block {
  word-break: break-all;
  white-space: pre-wrap;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 0.75rem;
  overflow-x: auto;
}
.code-block .cmd { color: var(--accent); }
.code-block .cmt { color: var(--text-3); }

.gs-note {
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.gs-note-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }

/* ─── Licenses ───────────────────────────────────────────────────── */
#licenses {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.license-grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.license-card {
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.license-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,180,216,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.license-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.license-body {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-sub {
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer-sub a { color: var(--text-2); }
.footer-sub a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── Dividers / Utilities ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

/* Light mode SVG illustrations */

.pcb-light { display: none !important; }
.pcb-dark { display: block !important; }
[data-theme="light"] .pcb-light { display: block !important; }
[data-theme="light"] .pcb-dark { display: none !important; }

[data-theme="light"] .pcb-placeholder {
  filter: none;
}
[data-theme="light"] .mikrobus-diagram {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)) invert(0.9) hue-rotate(160deg) saturate(2) brightness(0.95) contrast(1.2);
}
[data-theme="light"] .board-frame {
  background: transparent;
}
[data-theme="light"] .hw-board-frame {
  background: transparent;
}


/* ─── Connectivity heartbeat ────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .seven-dot,
  .led-status { animation: pulse 2.4s ease-in-out infinite; }
  .led-lte { animation: pulse 2.4s ease-in-out infinite .6s; position: relative; }
  .seven-dot { animation-delay: .3s; }
  .led-lte::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 1px var(--accent);
    animation: signal 3s ease-out infinite;
  }
}
@keyframes pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
@keyframes signal { 0% { transform: scale(.6); opacity: .55 } 100% { transform: scale(2.6); opacity: 0 } }


[data-theme="light"] .hero-specs {
  color: #3a3a3a;
}
[data-theme="light"] .boot {
  color: #3a3a3a;
}
[data-theme="light"] .boot .telemetry {
  opacity: 0.6;
}

/* ─── Tablet landscape (≤1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .hero-title { font-size: clamp(3.5rem, 8vw, 5rem); }
  .hero-tagline { font-size: 1rem; }
  .sw-grid { grid-template-columns: repeat(2, 1fr); }
  .expansion-layout { gap: 2.5rem; }
}

/* ─── Tablet portrait (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav → hamburger */
  .nav-links { display: none !important; }
  .nav-right .theme-btn { display: flex; }
  .nav-right .nav-github { display: none; }
  #menuToggle { display: flex !important; }
  .nav-mobile.open { display: flex !important; }

  /* Hero: text first, image second — stack vertically */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 1rem;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 1rem;
  }
  .hero-visual { order: 1; width: 100%; display: flex; justify-content: center; }
  .hero-content { order: 0; }
  .board-frame { max-width: 420px; margin: 0 auto; }
  .boot { font-size: 0.58rem; margin-left: 4px; }
  .hero-specs { display: none; }
  .hero-title { font-size: clamp(3rem, 10vw, 4rem); }
  .hero-tagline { font-size: 0.95rem; max-width: none; margin-bottom: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Sections */
  section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 1.8rem; }

  /* Grids → single/dual column */
  .overview-grid { grid-template-columns: 1fr; }
  .sw-grid { grid-template-columns: 1fr; }
  .expansion-layout { grid-template-columns: 1fr; gap: 2rem; }
  .gs-steps { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; }

  /* Hardware */
  .hw-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hw-image-col { position: static; }

  /* Specs strip */
  .specs-strip { padding: 1.25rem; }
  .specs-strip-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .spec-item { 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    padding: 0.75rem 0.5rem; 
  }
  .spec-item:nth-child(3n) { border-right: none; }
  .spec-item:last-child { border-bottom: none; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-links { flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8rem; }
  footer { padding: 1.5rem 1.25rem; }
}

/* ─── Mobile (≤480px) ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-inner { padding: 1.5rem 1rem; gap: 1.75rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-tagline { font-size: 0.9rem; }
  .board-frame { max-width: 380px; }
  .boot { font-size: 0.6rem; white-space: normal; padding-left: 12px; }
  .board-frame img { max-width: 100%; height: auto; }
  .hero-cta .btn { font-size: 0.8rem; padding: 0.7rem 1rem; }

  section { padding: 3rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.9rem; }

  /* Specs strip → 2 columns */
  .specs-strip-inner { grid-template-columns: repeat(2, 1fr); }

  /* Code blocks */
  .code-block { font-size: 0.75rem; padding: 0.75rem; }

  /* Footer */
  .footer-inner { padding: 0 1rem; }
}
