:root {
  --bg: #07111f;
  --bg-soft: rgba(10, 21, 38, 0.8);
  --bg-alt: rgba(11, 24, 43, 0.92);
  --card: rgba(12, 25, 44, 0.7);
  --line: rgba(140, 190, 255, 0.16);
  --line-strong: rgba(140, 190, 255, 0.32);
  --text: #eaf3ff;
  --muted: #9db3cb;
  --accent: #77c6ff;
  --accent-2: #71ffd1;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(75, 157, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(113, 255, 209, 0.08), transparent 24%),
    linear-gradient(180deg, #050d19 0%, #08111f 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(119, 198, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 198, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.bg-glow-1 {
  background: var(--accent);
  top: -80px;
  right: -80px;
}

.bg-glow-2 {
  background: var(--accent-2);
  bottom: -120px;
  left: -80px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 13, 25, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}


.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(280px, 42vw);
  height: auto;
  display: block;
}

.hero-logo {
  width: min(340px, 100%);
  height: auto;
  display: block;
  margin: 0.75rem 0 1.15rem;
  filter: drop-shadow(0 10px 22px rgba(35, 150, 255, 0.22));
}

.footer-logo {
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 0.7rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.hero {
  padding-top: 6.5rem;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.hero h1,
.section-head h2,
.split-intro h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  max-width: 11ch;
}

.hero-text,
.section-head p,
.split-intro p,
.tech-card p,
.cta-box p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(119, 198, 255, 0.18), rgba(113, 255, 209, 0.16));
  border: 1px solid rgba(119, 198, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

.btn-secondary,
.btn-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-card {
  background: linear-gradient(180deg, rgba(13, 29, 50, 0.75), rgba(7, 17, 31, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.main-card {
  padding: 1.7rem;
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.card-topline {
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.main-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 1rem 0;
  letter-spacing: -0.04em;
}

.signal-lines {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.signal-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 198, 255, 0.95), transparent);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  padding: 1.15rem;
}

.stat-card strong,
.area-card h3,
.feature-card h3,
.tech-card h3 {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.section-head {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-head h2,
.split-intro h2,
.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
}

.philosophy-grid,
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.philosophy-grid .tech-card,
.area-card,
.feature-card,
.timeline-card,
.cta-box {
  padding: 1.45rem;
}

.timeline-card {
  display: grid;
  gap: 1.25rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-top: 0.55rem;
  box-shadow: 0 0 0 5px rgba(119, 198, 255, 0.08);
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.quote-block {
  text-align: center;
}

.quote {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text);
}

.cta-section {
  padding-top: 2rem;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .reverse,
  .philosophy-grid,
  .cards-grid,
  .cta-box,
  .footer-wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(8, 17, 31, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .stat-row,
  .philosophy-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .main-card,
  .philosophy-grid .tech-card,
  .area-card,
  .feature-card,
  .timeline-card,
  .cta-box {
    padding: 1.2rem;
  }

  .brand-logo {
    width: min(210px, 60vw);
  }

  .hero-logo {
    width: min(280px, 100%);
  }

  .footer-logo {
    width: 170px;
  }
}

/* Product pages */
.site-nav a.active {
  color: var(--text);
}

.product-hero .hero h1,
.product-hero h1 {
  max-width: 12ch;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.6rem;
  overflow: hidden;
  position: relative;
}

.product-showcase::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 25%;
  height: 180px;
  background: radial-gradient(circle, rgba(113, 255, 209, 0.22), transparent 65%);
  pointer-events: none;
}

.product-icon {
  width: min(240px, 100%);
  border-radius: 34px;
  filter: drop-shadow(0 22px 45px rgba(35, 150, 255, 0.25));
}

.flow-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.35rem;
  color: var(--muted);
}

.flow-card span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.flow-card strong {
  color: var(--accent-2);
}

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

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.download-card,
.install-card {
  padding: 1.45rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-card p {
  flex: 1;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.warning-card {
  border-color: rgba(255, 196, 87, 0.34);
}

pre {
  margin: 0.85rem 0 1rem;
  padding: 1rem;
  border-radius: 16px;
  overflow-x: auto;
  background: rgba(2, 8, 16, 0.72);
  border: 1px solid rgba(119, 198, 255, 0.16);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #d8f5ff;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  text-align: right;
}

.footer-links a {
  color: var(--accent-2);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .product-showcase,
  .feature-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    padding: 1.2rem;
  }
}

/* Navigation dropdown + cleaner header actions */
.site-nav > a,
.nav-dropdown-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.dropdown-chevron {
  font-size: 0.74rem;
  transform: translateY(1px);
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  width: 310px;
  transform: translate(-50%, -8px);
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(6, 15, 28, 0.97);
  border: 1px solid rgba(119, 198, 255, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.dropdown-menu a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-menu a:hover {
  border-color: rgba(113, 255, 209, 0.28);
  background: rgba(113, 255, 209, 0.06);
}

.dropdown-menu small {
  color: var(--muted);
  line-height: 1.4;
}

.nav-dropdown.active .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  color: var(--text);
}



/* BEANalyzer GUI gallery and external hardware links */
.gui-gallery {
  display: grid;
  gap: 1.25rem;
}

.gui-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) 0.75fr;
  align-items: stretch;
}

.gui-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top left;
  border-right: 1px solid rgba(119, 198, 255, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

.gui-card div {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gui-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.link-card {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.link-card .btn {
  width: fit-content;
}

@media (max-width: 980px) {
  .gui-card {
    grid-template-columns: 1fr;
  }

  .gui-card img {
    border-right: 0;
    border-bottom: 1px solid rgba(119, 198, 255, 0.16);
    min-height: 220px;
  }
}

/* Clean, separated OS installation blocks */
.install-stack {
  display: grid;
  gap: 1.35rem;
}

.os-install-block {
  padding: 1.55rem;
  overflow: hidden;
}

.os-install-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.os-install-head h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.os-install-head p,
.install-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, rgba(119, 198, 255, 0.18), rgba(113, 255, 209, 0.12));
  border: 1px solid rgba(119, 198, 255, 0.28);
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-step-card {
  min-width: 0;
  padding: 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.install-step-card h4 {
  margin: 0 0 0.55rem;
  color: var(--text);
}

pre {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 980px) {
  .nav-dropdown {
    display: grid;
    gap: 0.5rem;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.025);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu,
  .nav-dropdown.dropdown-open .dropdown-menu {
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .install-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .os-install-block {
    padding: 1.15rem;
  }

  .os-install-head {
    grid-template-columns: 1fr;
  }

  .os-badge {
    width: fit-content;
  }
}

/* v5 mobile navigation polish */
.nav-toggle {
  position: relative;
  border: 1px solid rgba(119, 198, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-toggle:hover {
  background: rgba(119, 198, 255, 0.08);
  border-color: rgba(119, 198, 255, 0.35);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(5, 13, 25, 0.86);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(8px);
  }

  .nav-wrap {
    padding: 0.72rem 0;
  }

  .brand-logo {
    width: min(230px, 58vw);
  }

  .site-nav {
    top: calc(100% + 0.7rem);
    left: auto;
    right: max(0.85rem, env(safe-area-inset-right));
    width: min(390px, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.85rem;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(119, 198, 255, 0.13), transparent 35%),
      linear-gradient(180deg, rgba(7, 18, 34, 0.98), rgba(5, 13, 25, 0.985));
    border: 1px solid rgba(119, 198, 255, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
  }

  .site-nav.open {
    transform: translateY(0) scale(1);
  }

  .site-nav > a,
  .nav-dropdown-trigger {
    min-height: 50px;
    width: 100%;
    padding: 0 0.95rem;
    border-radius: 16px;
    justify-content: space-between;
    color: var(--text);
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.065);
  }

  .site-nav > a:hover,
  .nav-dropdown-trigger:hover,
  .site-nav > a.active,
  .nav-dropdown-trigger.active {
    background: rgba(119, 198, 255, 0.095);
    border-color: rgba(119, 198, 255, 0.26);
  }

  .site-nav .btn-nav {
    border-radius: 16px;
    min-height: 52px;
    background: linear-gradient(135deg, rgba(119, 198, 255, 0.18), rgba(113, 255, 209, 0.11));
    border-color: rgba(113, 255, 209, 0.23);
  }

  .nav-dropdown {
    width: 100%;
    display: grid;
    gap: 0.45rem;
  }

  .dropdown-chevron {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.dropdown-open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: grid;
    gap: 0.45rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .nav-dropdown.dropdown-open .dropdown-menu {
    max-height: 220px;
    padding: 0.15rem 0 0.15rem 0.65rem;
  }

  .dropdown-menu a {
    position: relative;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(119, 198, 255, 0.055);
    border: 1px solid rgba(119, 198, 255, 0.14);
  }

  .dropdown-menu a::before {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 16px;
    bottom: 16px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
  }

  .dropdown-menu small {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .nav-wrap {
    gap: 0.7rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .site-nav {
    right: 0.7rem;
    width: calc(100vw - 1.4rem);
    max-height: calc(100dvh - 82px);
    border-radius: 22px;
  }

  .site-nav > a,
  .nav-dropdown-trigger {
    min-height: 48px;
    font-size: 0.98rem;
  }
}

/* v6 mobile content polish: prevent GUI screenshots and text from crowding */
@media (max-width: 760px) {
  .section#interface {
    padding-top: 3.2rem;
  }

  .gui-gallery {
    gap: 1.6rem;
  }

  .gui-card,
  .gui-card.gui-card-feature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
  }

  .gui-card img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
    border-right: 0;
    border-bottom: 1px solid rgba(119, 198, 255, 0.16);
    background: rgba(0, 0, 0, 0.28);
  }

  .gui-card div {
    display: block;
    padding: 1.25rem;
  }

  .gui-card h3 {
    margin: 0.45rem 0 0.75rem;
    line-height: 1.16;
  }

  .gui-card p {
    margin-top: 0;
  }

  .gui-card .eyebrow {
    margin-bottom: 0.55rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--container), calc(100% - 1rem));
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .gui-gallery {
    gap: 1.25rem;
  }

  .gui-card div {
    padding: 1.05rem;
  }

  .gui-card h3 {
    font-size: 1.22rem;
  }

  .gui-card p {
    line-height: 1.65;
  }
}

.muted-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.install-step-wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .install-step-wide {
    grid-column: auto;
  }
}

/* v20 release archive */
.release-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.release-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(119, 198, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.release-card-copy {
  min-width: 0;
}

.release-card h3 {
  margin: 0 0 0.35rem;
}

.release-card p {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.release-card small {
  color: var(--text-muted);
  opacity: 0.78;
}

@media (max-width: 720px) {
  .release-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .release-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* v23 release archive visibility fixes */
.download-grid .release-archive-card {
  border-style: dashed;
}

.release-archive-section {
  position: relative;
}

.release-card-empty {
  opacity: 0.92;
}

.release-card-empty .btn {
  margin-top: 0.75rem;
}


/* v25 dynamic release/version notes */
.current-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 198, 255, 0.24);
  background: linear-gradient(135deg, rgba(119, 198, 255, 0.12), rgba(113, 255, 209, 0.08));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.current-download-pill span,
.current-download-pill small {
  color: var(--text-muted);
}

.current-download-pill strong {
  color: var(--text);
  font-weight: 900;
}

.release-notes {
  color: var(--text-muted);
  line-height: 1.7;
}

.release-notes p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.release-notes p:last-child,
.release-notes ul:last-child {
  margin-bottom: 0;
}

.release-notes ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.release-notes li {
  color: var(--text-muted);
  line-height: 1.6;
}

.release-note-continuation {
  opacity: 0.86;
}

.release-card .release-notes {
  max-width: 100%;
}

.release-card .release-notes ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}

@media (max-width: 980px) {
  .release-card .release-notes ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .current-download-pill {
    width: 100%;
    justify-content: center;
    border-radius: 22px;
    text-align: center;
  }
}

/* v26 visible latest-version download labels */
.latest-version-inline {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.download-version-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 198, 255, 0.18);
  background: rgba(119, 198, 255, 0.075);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.download-version-badge strong {
  color: var(--text);
  font-weight: 900;
}

.download-card {
  display: flex;
  flex-direction: column;
}

.download-card .btn {
  margin-top: 0;
}

@media (max-width: 640px) {
  .latest-version-inline {
    white-space: normal;
  }

  .download-version-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* v28 Buy Me A Coffee support section */
.support-section {
  padding-top: 2rem;
}

.support-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
  border-radius: 28px;
  border: 1px solid rgba(119, 198, 255, 0.20);
  background:
    radial-gradient(circle at top right, rgba(95, 127, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.support-copy h2 {
  margin: 0.35rem 0 0.8rem;
}

.support-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 820px;
  color: var(--text-muted);
  line-height: 1.72;
}

.bmc-button-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 280px;
}

.bmc-button-wrap iframe,
.bmc-button-wrap a {
  max-width: 100%;
}

@media (max-width: 820px) {
  .support-box {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bmc-button-wrap {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .support-box {
    border-radius: 22px;
  }

  .bmc-button-wrap {
    justify-content: center;
  }
}
