@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --home-nav-height: clamp(84px, 14vh, 160px);
  --meshcore-deep: #0b1a36;
  --meshcore-bright: #1ba4ff;
  --meshcore-glow: rgba(27, 164, 255, 0.35);
  --meshtastic-deep: #0b2b1e;
  --meshtastic-bright: #37d67a;
  --meshtastic-glow: rgba(55, 214, 122, 0.35);
  --home-hero-bg: rgba(7, 10, 18, 0.68);
  --home-ink: #050713;
  --section-glass: rgba(7, 10, 18, 0.72);
  --section-border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: "Space Grotesk", "Ubuntu", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.home-layout {
  font-family: "Space Grotesk", "Futura", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

.home-navbar {
  height: var(--home-nav-height);
  background: linear-gradient(180deg, #0f161f 0%, #0b0f16 100%);
}

.home-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(0.75rem, 2vh, 1.75rem);
  padding-bottom: clamp(0.75rem, 2vh, 2rem);
}

.home-brand {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 0;
  margin: 0;
  height: 100%;
  gap: 0.75rem;
}

.site-logo-home {
  height: clamp(64px, 9vh, 120px);
  width: auto;
  max-height: 12vh;
}

.site-logo-page {
  width: 80px;
  height: 80px;
}

.home-brand-text {
  font-size: clamp(1rem, 2.2vh, 1.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-nav-actions {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(0.5rem, 2vh, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.home-forum-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.home-forum-link:hover {
  color: #ffffff;
}

.home-language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

.home-nav-collapse {
  width: 100%;
}

.home-nav-collapse-card {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 18, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.home-nav-collapse-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-nav-collapse-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.home-nav-collapse-lang {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-nav-collapse-lang.is-active {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 575px) {
  .home-nav-container {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .home-nav-actions {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  .home-nav-container {
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .home-nav-container {
    justify-content: space-between;
  }
}

.home-language-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-language-link:hover {
  color: #ffffff;
}

.home-language-link.is-active {
  color: #ffffff;
  font-weight: 600;
}

.home-nav-list {
  gap: 0.6rem;
}

.home-nav-list .nav-link {
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.home-nav-list .nav-link:hover,
.home-nav-list .nav-link.active {
  color: #ffffff;
}

.home-navbar .dropdown-menu {
  background: rgba(11, 15, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.75);
}

.home-navbar .dropdown-item:hover,
.home-navbar .dropdown-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar:not(.home-navbar) .nav-link,
.navbar:not(.home-navbar) .dropdown-item {
  font-family: "Space Grotesk", "Ubuntu", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.navbar:not(.home-navbar) .site-brand-text {
  font-family: "Space Grotesk", "Ubuntu", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar:not(.home-navbar) .dropdown-menu {
  background: rgba(12, 14, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.navbar:not(.home-navbar) .dropdown-item {
  color: rgba(255, 255, 255, 0.75);
}

.navbar:not(.home-navbar) .dropdown-item:hover,
.navbar:not(.home-navbar) .dropdown-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.main-standard {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.home-main {
  position: relative;
  background: radial-gradient(circle at top, rgba(16, 32, 48, 0.55), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(24, 94, 140, 0.35), transparent 45%),
    var(--home-ink);
  overflow: visible;
}

.home-main::before {
  content: "";
  position: absolute;
  inset: -15% -10% 0;
  z-index: 0;
  background-image: radial-gradient(circle at 70% 10%, rgba(27, 164, 255, 0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(55, 214, 122, 0.16), transparent 45%),
    url("/net_bg.svg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 700px 700px, 650px 650px, 380px 380px;
  opacity: 0.32;
  pointer-events: none;
  mix-blend-mode: screen;
}

.home-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(5, 7, 19, 0.4) 0%, rgba(5, 7, 19, 0.85) 70%);
  pointer-events: none;
}

.home-hero {
  position: relative;
  z-index: 3;
  margin: clamp(1.1rem, 3vh, 2.5rem) auto clamp(0.75rem, 2.5vh, 1.6rem);
  width: min(92vw, 960px);
  padding: clamp(1.1rem, 3vw, 2.4rem);
  background: var(--home-hero-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: heroFade 0.6s ease both;
}

.home-hero-inner {
  animation: heroIn 0.85s ease both;
}

@media (min-width: 992px) {
  .home-main {
    padding-top: clamp(1.5rem, 4vh, 3rem);
  }
}

.home-hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.home-hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.home-hero-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.home-hero-actions .btn {
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-hero-tags span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .home-navbar {
    height: clamp(72px, 12vh, 120px);
  }

  .home-brand-text {
    letter-spacing: 1.5px;
  }

  .home-hero {
    width: min(94vw, 960px);
    padding: 1.1rem;
  }

  .home-hero-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
  }

  .home-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .home-hero-lede {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
  }

  .home-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-hero-tags {
    gap: 0.35rem;
  }

  .home-hero-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
  }
}

.home-cred {
  position: relative;
  z-index: 3;
  margin: clamp(1.25rem, 4vh, 3.2rem) auto 0;
  width: min(92vw, 1100px);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  align-items: center;
}

.home-cred-map {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.home-cred-map img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.home-cred-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.65));
  pointer-events: none;
}

.home-cred-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
}

.home-cred-content {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-radius: 1.4rem;
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.home-cred-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.6rem;
}

.home-cred-lede {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 1.4rem;
}

.home-cred-items {
  display: grid;
  gap: 0.85rem;
}

.home-cred-item {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.home-cred-item-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-cred-item-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .home-cred {
    grid-template-columns: 1.05fr 1fr;
  }

  .home-cred-map {
    min-height: 320px;
  }
}

.home-forum {
  position: relative;
  z-index: 3;
  margin: clamp(1.25rem, 3.5vh, 2.6rem) auto clamp(1.5rem, 4vh, 3rem);
  width: min(92vw, 1100px);
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(15, 28, 40, 0.85), rgba(7, 12, 20, 0.95));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.home-forum-title {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin-bottom: 0.35rem;
}

.home-forum-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.home-forum-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.home-forum-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.home-splits {
  /* min-height removed, let content dictate or use specific height */
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .home-splits {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: clamp(1rem, 4vh, 2.5rem) 0;
  }
  
  .home-splits .home-meshcore,
  .home-splits .home-meshtastic {
    width: 50%;
    margin: 0;
    min-height: 60vh;
    height: auto;
  }
}

.home-freeband, .home-meshcore, .home-meshtastic {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 30vh;
  margin: clamp(1rem, 4vh, 2.5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  overflow: visible;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.6s ease;
}

.home-freeband {
  background-color: #ebba34;
  background-image:
    linear-gradient(140deg, rgba(88, 52, 0, 0.65), rgba(24, 14, 0, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(255, 236, 170, 0.35), transparent 55%),
    url("/net_bg.svg");
}

.home-meshcore {
    background-color: var(--meshcore-deep);
    background-image:
        linear-gradient(135deg, rgba(7, 14, 26, 0.85), rgba(13, 72, 120, 0.4)),
        radial-gradient(circle at top left, rgba(27, 164, 255, 0.25), transparent 45%),
        url("/meshcore_bg.png");
}

.home-meshtastic {
  background-color: var(--meshtastic-deep);
  background-image:
    linear-gradient(135deg, rgba(6, 18, 12, 0.85), rgba(12, 92, 58, 0.35)),
    radial-gradient(circle at top right, rgba(55, 214, 122, 0.22), transparent 45%),
    url("/meshtastic_bg.png");
}

.home-freeband:hover, .home-meshcore:hover, .home-meshtastic:hover {
  transform: translateY(-6px) scale(1.01);
  background-position: 50% 40%;
}

.home-freeband:hover {
  box-shadow: 0 0 80px rgba(235, 186, 52, 0.5);
}

.home-meshcore:hover {
  box-shadow: 0 0 80px var(--meshcore-glow);
}

.home-meshtastic:hover {
  box-shadow: 0 0 80px var(--meshtastic-glow);
}

.home-freeband .overlay, .home-meshcore .overlay, .home-meshtastic .overlay {
  background: linear-gradient(160deg, rgba(40, 24, 0, 0.45), rgba(10, 6, 0, 0.7));
}

.home-freeband:hover .overlay, .home-meshcore:hover .overlay, .home-meshtastic:hover .overlay {
  background: linear-gradient(160deg, rgba(40, 24, 0, 0.6), rgba(10, 6, 0, 0.85));
}

.home-hardware {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 38vh;
  margin: clamp(1rem, 4vh, 2.5rem) 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px;
  padding-top: 30px;
  overflow: visible;
  color: #ffffff;
  background-color: #f28c28;
  background-image:
    url("/board_circuit.svg"),
    linear-gradient(140deg, rgba(120, 58, 8, 0.7), rgba(30, 16, 6, 0.8)),
    radial-gradient(circle at 20% 20%, rgba(255, 204, 140, 0.35), transparent 55%);
  background-size: 420px 420px, cover, cover;
  background-position: center, center, center;
  background-repeat: repeat, no-repeat, no-repeat;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.6s ease;
}

.home-hardware:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 0 80px rgba(242, 140, 40, 0.5);
  background-position: 50% 40%;
}

.home-hardware .overlay {
  background: linear-gradient(160deg, rgba(48, 26, 6, 0.35), rgba(12, 6, 0, 0.65));
}

.home-hardware:hover .overlay {
  background: linear-gradient(160deg, rgba(48, 26, 6, 0.45), rgba(12, 6, 0, 0.75));
}

.freeband-split .home-split-content,
.meshcore-split .home-split-content,
.meshtastic-split .home-split-content {
  width: 80%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin: clamp(1.6rem, 4vh, 3rem) 0;
  background: rgba(12, 10, 6, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(20, 12, 0, 0.45);
}

.hardware-split .home-split-content {
  width: 80%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin: clamp(1.6rem, 4vh, 3rem) 0;
  background: rgba(12, 10, 6, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(20, 12, 0, 0.45);
}

.home-freeband:hover .home-split-content {
  box-shadow: 0 0 60px rgba(235, 186, 52, 0.35);
}

.home-meshcore:hover .home-split-content {
  box-shadow: 0 0 60px var(--meshcore-glow);
}

.home-meshtastic:hover .home-split-content {
  box-shadow: 0 0 60px var(--meshtastic-glow);
}

.home-hardware:hover .home-split-content {
  box-shadow: 0 0 60px rgba(242, 140, 40, 0.35);
}

.freeband-logo, .meshcore-logo, .meshtastic-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.freeband-logo .logo-placeholder, .meshcore-logo .logo-placeholder, .meshtastic-logo .logo-placeholder {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.freeband-logo .split-kicker, .meshcore-logo .split-kicker, .meshtastic-logo .split-kicker {
  grid-column: 2;
  grid-row: 1;
}

.freeband-logo .home-split-title, .meshcore-logo .home-split-title, .meshtastic-logo .home-split-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.hardware-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.hardware-logo .logo-placeholder {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.hardware-logo .split-kicker {
  grid-column: 2;
  grid-row: 1;
}

.hardware-logo .home-split-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.freeband-copy, .meshcore-copy, .meshtastic-copy {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
}

.hardware-copy {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
}

.freeband-actions,
.hardware-actions,
.meshcore-actions,
.meshtastic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.freeband-button, .meshcore-button, .meshtastic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.freeband-button:hover, .meshcore-button:hover, .meshtastic-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.freeband-split .split-highlights, .meshcore-split .split-highlights, .meshtastic-split .split-highlights {
  text-align: center;
}

.hardware-split .split-highlights {
  text-align: center;
}

@media (min-width: 900px) {
  .freeband-split .home-split-content {
    flex-direction: row;
    text-align: left;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  /* Keep meshcore/meshtastic content stacked vertically */
  .meshcore-split .home-split-content,
  .meshtastic-split .home-split-content {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }

  .hardware-split .home-split-content {
    flex-direction: row;
    text-align: left;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .freeband-split .logo-placeholder {
    margin-bottom: 0;
  }

  .hardware-split .logo-placeholder {
    margin-bottom: 0;
  }

  .freeband-logo, .meshcore-logo, .meshtastic-logo {
    justify-items: start;
    text-align: left;
  }

  .hardware-logo {
    justify-items: start;
    text-align: left;
  }

  .freeband-copy, .meshcore-copy, .meshtastic-copy {
    justify-items: start;
    text-align: left;
  }

  .hardware-copy {
    justify-items: start;
    text-align: left;
  }

  .freeband-actions,
  .meshcore-actions,
  .meshtastic-actions {
    justify-content: flex-start;
  }

  .hardware-actions {
    justify-content: flex-start;
  }

  .freeband-split .split-highlights,
  .meshcore-split .split-highlights,
  .meshtastic-split .split-highlights {
    text-align: left;
  }

  .hardware-split .split-highlights {
    text-align: left;
  }
}

.freeband-split .split-kicker {
  background: rgba(235, 186, 52, 0.2);
  border: 1px solid rgba(235, 186, 52, 0.5);
}

.meshcore-split .split-kicker {
    background: rgba(27, 164, 255, 0.2);
    border: 1px solid rgba(27, 164, 255, 0.5);
}
.meshtastic-split .split-kicker {
    background: rgba(55, 214, 122, 0.2);
    border: 1px solid rgba(55, 214, 122, 0.5);
}

.hardware-split .split-kicker {
  background: rgba(242, 140, 40, 0.2);
  border: 1px solid rgba(242, 140, 40, 0.5);
}

.freeband-split .split-highlights li::before {
  background: rgba(255, 222, 140, 0.9);
  box-shadow: 0 0 12px rgba(235, 186, 52, 0.55);
}

.meshcore-split .split-highlights li::before {
    background: var(--meshcore-bright);
    box-shadow: 0 0 12px var(--meshcore-glow);
}
.meshtastic-split .split-highlights li::before {
    background: var(--meshtastic-bright);
    box-shadow: 0 0 12px var(--meshtastic-glow);
}

.hardware-split .split-highlights li::before {
  background: rgba(255, 214, 150, 0.9);
  box-shadow: 0 0 12px rgba(242, 140, 40, 0.55);
}

/* Split landing page styles */
.landing-split {
  flex: 1 0 50vh;
  /* Do not shrink below 50vh */
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.6s ease;
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  width: 100%;
  /* Default to full width for stacking */
}

@media (min-width: 768px) {
  .landing-split {
    flex: 1;
    /* Evenly split on desktop */
    min-height: 80vh;
    width: 50%;
  }
}

.landing-split:hover {
  /* Removed flex-grow to prevent middle boundary flickering */
  z-index: 2;
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background-position: 50% 40%;
}

.landing-split:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -6px;
}

/* Ensure no conflict with bootstrap col widths in flex container */
@media (min-width: 768px) {
  .landing-split {
    width: auto !important;
  }
}

.meshcore-split {
  background-color: var(--meshcore-deep);
  background-image:
    linear-gradient(135deg, rgba(7, 14, 26, 0.85), rgba(13, 72, 120, 0.4)),
    radial-gradient(circle at top left, rgba(27, 164, 255, 0.25), transparent 45%),
    url("/meshcore_bg.png");
}

.meshtastic-split {
  background-color: var(--meshtastic-deep);
  background-image:
    linear-gradient(135deg, rgba(6, 18, 12, 0.85), rgba(12, 92, 58, 0.35)),
    radial-gradient(circle at top right, rgba(55, 214, 122, 0.22), transparent 45%),
    url("/meshtastic_bg.png");
}

.meshcore-split:hover {
  box-shadow: 0 30px 80px var(--meshcore-glow);
}

.meshtastic-split:hover {
  box-shadow: 0 30px 80px var(--meshtastic-glow);
}

.home-split::after {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.home-split:hover::after {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 900px) {
  .home-splits::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    z-index: 2;
    pointer-events: none;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(3, 8, 16, 0.45), rgba(2, 6, 12, 0.65));
  transition: background 0.3s ease;
}

.landing-split:hover .overlay {
  background: linear-gradient(160deg, rgba(3, 8, 16, 0.6), rgba(2, 6, 12, 0.8));
}

.logo-placeholder svg {
  width: clamp(72px, 12vw, 120px);
  height: clamp(72px, 12vw, 120px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.content {
  padding: 2rem;
  width: 100%;
}

.home-split-content {
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: rgba(7, 10, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  animation: splitIn 0.85s ease both;
}

.meshcore-split .home-split-content {
  animation-delay: 0.15s;
}

.meshtastic-split .home-split-content {
  animation-delay: 0.3s;
}

.split-kicker {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.home-split-title {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 0.5rem;
}

.home-split-lede {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.split-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.split-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

.split-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.split-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.home-footer {
  position: relative;
  z-index: 3;
  margin: clamp(1.5rem, 4vh, 3rem) auto clamp(2.5rem, 6vh, 4rem);
  width: min(92vw, 1100px);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 1.2rem;
}

.home-footer-title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.home-footer-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-footer-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.home-footer-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.home-footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .home-cred {
    margin-top: 1rem;
  }

  .home-cred-content {
    padding: 1.1rem;
  }

  .home-cred-items {
    gap: 0.7rem;
  }

  .home-cred-item {
    padding: 0.75rem 0.85rem;
  }

  .home-forum {
    margin-top: 1rem;
    padding: 1rem;
  }

  .home-forum-button {
    width: 100%;
  }

  .home-freeband, .home-meshcore, .home-meshtastic, .home-hardware {
    height: auto;
    min-height: 30vh;
  }

  .freeband-split .home-split-content, .meshcore-split .home-split-content, .meshtastic-split .home-split-content, .hardware-split .home-split-content {
    padding: 1.1rem;
  }

  .home-split-content {
    padding: 1.25rem;
    border-radius: 1.1rem;
  }

  .split-highlights li {
    font-size: 0.92rem;
  }

  .home-footer {
    margin-top: 1.25rem;
    padding: 1.2rem;
  }

  .home-footer-links {
    gap: 0.5rem;
  }

  .section-hero {
    width: min(94vw, 1100px);
  }

  .section-hero-inner {
    padding: 1.2rem;
  }

  .section-hero-actions {
    flex-direction: column;
  }

  .section-hero-button {
    width: 100%;
  }
}
@media (min-width: 900px) {
  .home-footer {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .home-footer-meta {
    grid-column: span 2;
  }
}

.content-container {
  position: relative;
  padding: 1.25rem;
  width: min(92vw, 1100px);
  margin: clamp(1rem, 3vh, 2.2rem) auto clamp(2rem, 6vh, 3.5rem);
  background: var(--section-glass);
  border: 1px solid var(--section-border);
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .content-container {
    padding: clamp(1.5rem, 3vw, 3rem);
  }
}

.content-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 18, 30, 0.35), rgba(10, 20, 40, 0.1));
  pointer-events: none;
}

.content-container>.row,
.content-container article {
  position: relative;
  z-index: 1;
}

.main-bg {
  position: relative;
  background-color: #050713;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
}

.main-bg>* {
  position: relative;
  z-index: 1;
}

body.section-meshcore {
  --section-accent: #1ba4ff;
}

body.section-meshtastic {
  --section-accent: #37d67a;
}

body.section-cb {
  --section-accent: #ebba34;
}

body.section-hardware {
  --section-accent: #f28c28;
}

body:not(.home-layout) {
  --section-accent: #6ea8fe;
}

.section-hero {
  position: relative;
  z-index: 2;
  margin: clamp(1.5rem, 4vh, 2.6rem) auto 0;
  width: min(92vw, 1100px);
}

.section-hero-inner {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: 1.6rem;
  background: rgba(7, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.section-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.section-hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
}

.section-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.section-hero-lede {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.4rem;
}

.section-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.section-hero-button.primary {
  background: rgba(255, 255, 255, 0.12);
}

.section-hero-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.section-hero-inner {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

body.section-meshcore .section-hero-inner {
  border-color: rgba(27, 164, 255, 0.25);
  box-shadow: 0 24px 70px rgba(27, 164, 255, 0.2);
}

body.section-meshtastic .section-hero-inner {
  border-color: rgba(55, 214, 122, 0.25);
  box-shadow: 0 24px 70px rgba(55, 214, 122, 0.2);
}

body.section-cb .section-hero-inner {
  border-color: rgba(235, 186, 52, 0.3);
  box-shadow: 0 24px 70px rgba(235, 186, 52, 0.22);
}

body.section-hardware .section-hero-inner {
  border-color: rgba(242, 140, 40, 0.3);
  box-shadow: 0 24px 70px rgba(242, 140, 40, 0.22);
}

.content h1,
.content h2,
.content h3 {
  letter-spacing: 0.02em;
}

.content h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-top: 2.5rem;
}

.content h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-top: 2.25rem;
}

.content h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-top: 1.8rem;
}

/* Section Backgrounds */
.section-meshcore .main-bg {
  background-color: #080b14;
  background-image:
    linear-gradient(135deg, rgba(7, 12, 22, 0.92), rgba(7, 12, 22, 0.55)),
    url("/meshcore_bg.png");
}

.section-meshtastic .main-bg {
  background-color: #05160c;
  background-image:
    linear-gradient(135deg, rgba(6, 14, 10, 0.92), rgba(6, 14, 10, 0.55)),
    url("/meshtastic_bg.png");
}

.section-cb .main-bg {
  background-color: #1b1305;
  background-image:
    linear-gradient(135deg, rgba(26, 17, 5, 0.92), rgba(26, 17, 5, 0.6)),
    radial-gradient(circle at 20% 20%, rgba(235, 186, 52, 0.22), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(235, 186, 52, 0.12), transparent 55%);
}

.section-hardware .main-bg {
  background-color: #1d1206;
  background-image:
    linear-gradient(135deg, rgba(32, 18, 6, 0.92), rgba(32, 18, 6, 0.6)),
    radial-gradient(circle at 18% 22%, rgba(242, 140, 40, 0.22), transparent 45%),
    radial-gradient(circle at 82% 68%, rgba(242, 140, 40, 0.12), transparent 55%),
    url("/board_circuit.svg");
  background-size: cover, cover, cover, 460px 460px;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}

.section-meshcore .main-bg::before,
.section-meshtastic .main-bg::before,
.section-cb .main-bg::before,
.section-hardware .main-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/net_bg.svg");
  background-repeat: repeat;
  background-size: 320px 320px;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Global Dark Theme */
/* Standard layout for all pages */
body {
  background-color: #212529;
  color: #f8f9fa;
  width: 100%;
  margin: 0 !important;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  body:not(.home-layout) {
    width: 90%;
    margin: 0 auto !important;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
}

/* Home page is edge-to-edge */
.home-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .home-layout {
    min-height: 100vh;
  }

  .home-main {
    min-height: calc(100vh - var(--home-nav-height));
  }
}

@media (max-width: 767px) {
  .home-main {
    min-height: 70vh;
  }
}





a {
  color: #6ea8fe;
}

a:hover {
  color: #8bb9fe;
}

.section-cb .content a {
  color: #f2c35a;
}

.section-cb .content a:hover {
  color: #f6d07b;
}

.section-hardware .content a {
  color: #f7b45b;
}

.section-hardware .content a:hover {
  color: #f9c77a;
}

/* Hairline Tables */
table {
  width: 100%;
  margin-bottom: 1rem;
  color: #fff;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #444;
  /* Hairline */
}

thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #444;
}

tbody+tbody {
  border-top: 2px solid #444;
}

/* UI Depth Shadows */
.navbar {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

footer {
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Nav Colors - High specificity to override Bootstrap */
.navbar.bg-meshcore,
.bg-meshcore {
  background-color:#1E5174 !important;
}

/* Mobile Table Responsiveness */
@media (max-width: 767px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

.navbar.bg-meshtastic,
.bg-meshtastic {
  background-color: #286346 !important;
}

.navbar.bg-cb,
.bg-cb {
  background-color: #8a5a10 !important;
}

.navbar.bg-hardware,
.bg-hardware {
  background-color: #b56119 !important;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.75rem;
  background: transparent;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: none;
}

.breadcrumb-item {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #ffffff;
}

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

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .home-hero-inner,
  .home-split-content,
  .landing-split {
    animation: none;
    transition: none;
  }
}
