/* ==============================
   stedio.it - stile personale
   scuro, pulito, sostanza
   ============================== */

:root {
  --bg: #0b0b0b;
  --bg-alt: #111111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #d4d4d4;
  --text-dim: #999;
  --text-bright: #f0f0f0;
  --accent: #4a7c59; /* verde scuro, asciutto */
  --accent-light: #5a9a6a;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --serif: 'Source Serif 4', 'Georgia', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- NAV ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}

.nav-logo {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: font-size 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text-bright);
}

/* ---- PAGE HEADER ---- */

.page-header {
  padding: 8rem 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent);
  animation: drawLine 0.6s ease 0.3s forwards;
}

@keyframes drawLine {
  to { width: 100%; }
}

.page-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 600px;
}

/* ---- HERO ---- */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 2.5rem 4rem;
  gap: 4rem;
}

.hero-pre {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 480px;
  line-height: 1.8;
}

.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  line-height: 2;
  max-width: 380px;
  margin-left: auto;
}

.t-prompt {
  color: var(--accent-light);
}

.t-cmd {
  color: var(--text-bright);
}

.t-out {
  color: var(--text-dim);
}

.t-cursor {
  color: var(--accent-light);
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 6px var(--accent);
}

.t-prompt {
  text-shadow: 0 0 8px rgba(90, 154, 106, 0.3);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- HOME LINKS ---- */

.home-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-nav-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.25s;
}

.home-nav-block:first-child {
  border-right: 1px solid var(--border);
}

.home-nav-block:hover {
  background: var(--surface);
}

.home-nav-label {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 400;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-label::after {
  content: '→';
  font-size: 0.85rem;
  color: var(--accent-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-nav-block:hover .home-nav-label::after {
  opacity: 1;
  transform: translateX(0);
}

.home-nav-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- SECTIONS ---- */

.section {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: 100%;
  padding-left: calc((100% - 1100px) / 2 + 2.5rem);
  padding-right: calc((100% - 1100px) / 2 + 2.5rem);
}

.section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ---- PROJECTS ---- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid transparent;
  margin-bottom: 2rem;
  position: relative;
}

.project-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  opacity: 0;
  animation: gridReveal 0.5s ease 0.2s forwards;
  pointer-events: none;
}

@keyframes gridReveal {
  to { opacity: 1; }
}

.project-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.3s, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card[data-href] {
  cursor: pointer;
}

.project-card:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card:not([data-href]):hover {
  transform: none;
  box-shadow: none;
  cursor: default;
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.project-tag[data-tag="software"] {
  color: var(--accent-light);
}

.project-tag[data-tag="hardware"] {
  color: #c49a6c;
}

.project-tag[data-tag="servizio"] {
  color: #6a9bc4;
}

.project-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.project-link span,
.project-link::after {
  display: inline-block;
  transition: transform 0.2s ease;
}

.project-link:hover {
  color: var(--text-bright);
}

.project-link:hover span {
  transform: translateX(4px);
}

.more-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--serif);
}

/* ---- TOSING ---- */

.tosing-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tosing-desc p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.tosing-features {
  list-style: none;
  padding: 0;
}

.tosing-features li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.tosing-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.tosing-download h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 1.2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.5rem;
  min-width: 140px;
  border: none;
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
}

.dl-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 124, 89, 0.4), 0 0 40px rgba(74, 124, 89, 0.15);
}

.dl-btn:active {
  transform: translateY(0);
}

.dl-label {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.dl-size {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}

.dl-btn:hover .dl-size {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- INSTALL GUIDE ---- */

.install-guide h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0.1rem;
  box-shadow: 0 0 6px rgba(74, 124, 89, 0.2);
}

.install-step.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.install-step.fade-in .step-num {
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.install-step.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.install-step.fade-in.visible .step-num {
  transform: scale(1);
}

.install-step div {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.install-step strong {
  color: var(--text-bright);
  font-weight: 500;
}

.install-step code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  font-size: 0.8rem;
  color: var(--accent-light);
}

.install-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.install-note code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--accent-light);
}

/* ---- SERVICES ---- */

.services-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.service-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background: var(--surface);
}

.service-name {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 400;
  min-width: 140px;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  flex: 1;
}

.service-arrow {
  color: var(--accent-light);
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.service-item:hover .service-arrow {
  transform: translateX(4px);
}

/* ---- ABOUT ---- */

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.about-details dl {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.about-details dt {
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.about-details dt:first-child {
  margin-top: 0;
}

.about-details dd {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ---- PILLOLE (BLOG) ---- */

.pillole {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillola {
  background: var(--bg);
  padding: 2rem;
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.pillola:hover {
  border-left-color: var(--accent-light);
  background: var(--surface);
}

.pillola-date {
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}

.pillola-content p {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.pillola-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.pillola-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.pillola-link:hover {
  color: var(--text-bright);
}

.pillola-link:hover span {
  transform: translateX(4px);
}

/* ---- ARTICLE MEDIA (image + text side by side) ---- */

.article-media {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.article-media[data-side="right"] {
  flex-direction: row-reverse;
}

.article-media .article-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.article-media .article-img:hover {
  opacity: 1;
}

.article-media p {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* ---- ARTICLE SUMMARY ---- */

.article-summary {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 0 0 3rem;
}

.article-summary p {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.article-summary p:last-child {
  margin-bottom: 0;
}

/* ---- PROSE GALLERY ---- */

.prose-gallery {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}

.prose-gallery img {
  flex: 1;
  min-width: 0;
  max-height: 200px;
  object-fit: cover;
  border: 1px solid var(--border);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.prose-gallery img:hover {
  opacity: 1;
}

.prose-gallery-single {
  justify-content: center;
}

.prose-gallery-single img {
  flex: none;
  max-width: 100%;
  max-height: 300px;
}

/* ---- FOOTER ---- */

footer {
  padding: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.footer-sep {
  margin: 0 0.5rem;
  color: var(--accent-light);
  animation: heartbeat 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent-light);
  box-shadow: 0 0 6px var(--accent);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ---- ANIMATIONS ---- */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.06s; }
.fade-in:nth-child(3) { transition-delay: 0.12s; }
.fade-in:nth-child(4) { transition-delay: 0.18s; }
.fade-in:nth-child(5) { transition-delay: 0.24s; }

/* Navbar compact on scroll */
nav.nav-scrolled {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

nav.nav-scrolled .nav-logo {
  font-size: 0.82rem;
}

/* Page fade-in */
body {
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 0.9rem 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6rem 1.2rem 3rem;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .terminal-block {
    margin-left: 0;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 1.2rem 1.4rem;
  }

  /* Home nav */
  .home-nav {
    grid-template-columns: 1fr;
  }

  .home-nav-block:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .home-nav-block {
    padding: 2rem 1.2rem;
  }

  /* Page header */
  .page-header {
    padding: 5.5rem 1.2rem 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  /* Sections */
  .section {
    padding: 3rem 1.2rem;
  }

  .section-alt {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.5rem;
  }

  /* ToSing */
  .tosing-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tosing-desc p {
    font-size: 0.92rem;
  }

  .download-buttons {
    gap: 0.6rem;
  }

  .dl-btn {
    padding: 1.1rem 1.8rem;
    min-width: 0;
    flex: 1;
  }

  /* Install guide */
  .install-step {
    gap: 0.8rem;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .install-step div {
    font-size: 0.82rem;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-details dl {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  /* Pillole */
  .pillola {
    padding: 1.5rem;
  }

  /* Article media */
  .article-media {
    flex-direction: column !important;
    align-items: center;
  }

  .article-media .article-img {
    width: 160px;
    height: 160px;
  }

  /* Prose gallery */
  .prose-gallery {
    flex-wrap: wrap;
  }

  .prose-gallery img {
    flex: 1 1 calc(50% - 0.5rem);
    max-height: 150px;
  }

  /* Home Automation */
  .ha-apps-row {
    gap: 1rem;
  }

  .ha-app img {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .ha-result img {
    width: 56px;
    height: 56px;
  }

  .page-prose h2 {
    margin-top: 2rem;
  }

  /* Server Lab */
  .lab-services {
    grid-template-columns: 1fr;
  }

  /* Footer */
  footer {
    padding: 2rem 1.2rem;
  }
}

/* ---- PAGE PROSE ---- */

.page-prose {
  max-width: 700px;
}

.page-prose p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.page-prose .highlight {
  color: var(--text-bright);
  font-style: italic;
}

.page-prose h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

/* ---- HOME AUTOMATION VISUAL ---- */

.ha-replacement {
  text-align: center;
}

.ha-replaced-label,
.ha-result-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ha-replaced-label {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.ha-result-label {
  color: var(--accent-light);
  margin-top: 1rem;
}

.ha-apps-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 750px;
  margin: 0 auto;
}

.ha-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ha-app img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}

.ha-app span {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.ha-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0 1.5rem;
}

.ha-connector::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), var(--accent-light));
}

.ha-connector::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--accent-light);
}

.ha-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ha-result img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(74, 124, 89, 0.4));
}

.ha-result span {
  font-size: 1.1rem;
  color: var(--text-bright);
  font-weight: 500;
}

/* ---- SERVER LAB SERVICES ---- */

.lab-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.lab-service {
  background: var(--bg);
  padding: 1.2rem 1.5rem;
  transition: background 0.2s;
}

.lab-service:hover {
  background: var(--surface);
}

.lab-service-name {
  font-size: 0.9rem;
  color: var(--text-bright);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.lab-service-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .nav-logo {
    font-size: 0.8rem;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .download-buttons {
    flex-direction: column;
  }
}
