/* ==========================================================================
   FreeRadioNetwork – Website
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark: #0b1220;
  --bg-dark-2: #101d31;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #5b6b7f;
  --line: #dbe4ef;
  --brand: #00b894;
  --brand-strong: #008f72;
  --brand-soft: #e6faf5;
  --accent: #ff8a3d;
  --accent-soft: #fff1e6;
  --blue: #2f6fed;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(9, 24, 44, 0.12);
  --shadow-soft: 0 6px 24px rgba(9, 24, 44, 0.07);
  --container: 1160px;
  --font: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "DejaVu Sans Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin-top: 0;
}

::selection {
  background: var(--brand);
  color: #04120f;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--brand);
  color: #04120f;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-text strong {
  color: #4be3c4;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #c8d6e5;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
  border-color: var(--brand);
}

.site-nav .nav-cta {
  background: var(--brand);
  color: #04120f;
  padding: 9px 16px;
  border-radius: 10px;
  border-bottom: 0;
  font-weight: 800;
}

.site-nav .nav-cta:hover {
  background: #4be3c4;
  color: #04120f;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: #ffffff;
  width: 44px;
  height: 42px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

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

.btn--primary {
  background: var(--brand);
  color: #04120f;
}

.btn--primary:hover {
  background: #4be3c4;
  color: #04120f;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn--light {
  background: #ffffff;
  color: var(--ink);
}

.btn--light:hover {
  background: #e6faf5;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(0, 184, 148, 0.2), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(255, 138, 61, 0.12), transparent 34%),
    linear-gradient(150deg, #0b1220 0%, #0d1a2b 58%, #10263a 100%);
  color: #ffffff;
  padding: 92px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-waves {
  position: absolute;
  right: -150px;
  top: 50%;
  width: 760px;
  transform: translateY(-50%);
  color: rgba(0, 184, 148, 0.22);
  z-index: 1;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: #4be3c4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero h1 .accent {
  color: #4be3c4;
}

.lead {
  max-width: 760px;
  margin: 0 0 1.1em;
  color: #c8d6e5;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.hero .lead {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbe7f2;
  font-size: 0.86rem;
  font-weight: 650;
}

.fact::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.fact:nth-child(2)::before {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 82px 0;
}

.section--alt {
  background: var(--bg-soft);
}

.section--dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 184, 148, 0.16), transparent 36%),
    var(--bg-dark);
  color: #ffffff;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section--dark p,
.section--dark .lead {
  color: #c8d6e5;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-bottom: 0.4em;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.section-head .lead {
  margin-bottom: 0;
  color: var(--muted);
}

.section--dark .section-head .lead {
  color: #c8d6e5;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */

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

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

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

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d6e5;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.card .text-link {
  margin-top: auto;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  flex: none;
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-icon--accent {
  background: var(--accent-soft);
  color: #b34d00;
}

.card-icon--blue {
  background: #eaf0ff;
  color: var(--blue);
}

.card--dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.card--dark h3 {
  color: #ffffff;
}

.card--dark p {
  color: #b9c9da;
}

.card--dark .card-icon {
  background: rgba(0, 184, 148, 0.14);
  color: #4be3c4;
}

/* --------------------------------------------------------------------------
   Split & feature lists
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split--wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.split-visual {
  min-width: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin: 11px 0;
  color: #3c4b5e;
}

.section--dark .feature-list li {
  color: #c8d6e5;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.section--dark .feature-list li::before {
  background: rgba(0, 184, 148, 0.16);
  color: #4be3c4;
}

/* --------------------------------------------------------------------------
   Network diagram
   -------------------------------------------------------------------------- */

.diagram {
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 184, 148, 0.14), transparent 35%),
    #0f1b2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.diagram-title {
  margin: 0 0 20px;
  color: #9fb3c8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.diagram-node {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
  font-weight: 750;
}

.diagram-node strong {
  display: block;
  color: #4be3c4;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.diagram-arrow {
  color: #4be3c4;
  font-size: 1.3rem;
  flex: none;
}

.diagram-label {
  margin-top: 3px;
  color: #9fb3c8;
  font-size: 0.78rem;
  font-weight: 500;
}

.diagram-notes {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b9c9da;
  font-size: 0.85rem;
}

.diagram-notes span {
  color: #4be3c4;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--brand-soft);
  color: #17423a;
}

.callout--accent {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: #5b2c08;
}

.callout strong {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Compatibility table
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compat-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compat-table--compact {
  min-width: 0;
}

.compat-table th,
.compat-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.compat-table th {
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.compat-table td {
  border-top: 1px solid var(--line);
  color: #3c4b5e;
  font-size: 0.94rem;
}

.compat-table tr:nth-child(even) td {
  background: #fbfdff;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #007a5e;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge--warn {
  background: var(--accent-soft);
  color: #a24b00;
}

.badge--muted {
  background: #eef2f7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Figures & screenshots
   -------------------------------------------------------------------------- */

.figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: var(--radius);
  background: var(--bg-dark);
  box-shadow: var(--shadow);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  padding: 12px 16px;
  background: var(--bg-dark);
  color: #9fb3c8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.figure--light {
  background: #ffffff;
  border-color: var(--line);
}

.figure--light figcaption {
  background: var(--bg-soft);
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.screenshot-grid .figure--tall {
  grid-row: span 2;
}

/* --------------------------------------------------------------------------
   Code blocks
   -------------------------------------------------------------------------- */

.code-block {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #1f3a5f;
  border-radius: 12px;
  background: var(--bg-dark);
  color: #e6f0fb;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-x: auto;
}

.code-block code {
  font-family: inherit;
  white-space: pre;
}

.code-block .code-comment {
  color: #7f9bb8;
}

/* --------------------------------------------------------------------------
   Guides
   -------------------------------------------------------------------------- */

.guide {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.guide-step {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.guide-step:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.guide-step h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.guide-step ol,
.guide-step ul {
  margin: 0;
  padding-left: 22px;
}

.guide-step li {
  margin: 8px 0;
  color: #3c4b5e;
}

.guide .note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.guide .note strong {
  color: var(--ink);
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
}

.guide-toc a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-toc a:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 900px;
}

.faq details {
  margin-bottom: 12px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--brand-strong);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p,
.faq details ul {
  margin: 0 0 18px;
  color: var(--muted);
}

.faq details ul {
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 20%, rgba(0, 184, 148, 0.24), transparent 36%),
    linear-gradient(140deg, #0b1220, #123047);
  color: #ffffff;
  text-align: center;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 12px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: #c8d6e5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 80px;
  padding: 58px 0 24px;
  background: var(--bg-dark);
  color: #9fb3c8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  color: #9fb3c8;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: #9fb3c8;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f95ab;
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Subpage hero & prose
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 54px;
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 184, 148, 0.18), transparent 34%),
    linear-gradient(145deg, #0b1220, #10263a);
  color: #ffffff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
}

.page-hero .lead {
  max-width: 820px;
  margin-bottom: 0;
}

.breadcrumbs {
  margin-bottom: 16px;
  color: #9fb3c8;
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: #c8d6e5;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.breadcrumbs span {
  margin: 0 7px;
  color: #5f7892;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin-top: 38px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 26px;
  font-size: 1.18rem;
}

.prose p,
.prose li {
  color: #3c4b5e;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .note {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Reveal animation (only when JS is active)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero-waves {
    right: -260px;
    opacity: 0.65;
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #0b1220;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
    border-bottom: 0;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: rgba(255, 255, 255, 0.07);
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .split,
  .split--wide,
  .grid--2,
  .grid--3,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid .figure--tall {
    grid-row: auto;
  }

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

  .hero {
    padding: 70px 0 62px;
  }

  .hero-waves {
    right: -340px;
    opacity: 0.45;
  }

  .cta-band {
    padding: 34px 24px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

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

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

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 8px;
  }

  .fact {
    font-size: 0.8rem;
    padding: 7px 11px;
  }

  .card,
  .guide {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Home hero with screenshot
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-grid .hero-inner {
  max-width: none;
}

.hero-shot {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #0b1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot figcaption {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #9fb3c8;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Small layout helpers
   -------------------------------------------------------------------------- */

.section--tight {
  padding: 52px 0;
}

.split--reverse .split-visual {
  order: 2;
}

.breadcrumbs strong {
  color: #ffffff;
  font-weight: 600;
}

.breadcrumbs .sep {
  margin: 0 7px;
  color: #5f7892;
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-strong);
}

.card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.card--dark .text-link,
.section--dark .text-link {
  color: #4be3c4;
}

.card--dark .text-link:hover,
.section--dark .text-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stat-grid,
.grid.grid--stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-strong);
  font-size: 1.65rem;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Numbered steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.steps li {
  position: relative;
  padding-left: 44px;
  margin: 14px 0;
  color: #3c4b5e;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 900;
}

.section--dark .steps li {
  color: #c8d6e5;
}

.section--dark .steps li::before {
  background: rgba(0, 184, 148, 0.16);
  color: #4be3c4;
}

/* --------------------------------------------------------------------------
   Notices & keyboard
   -------------------------------------------------------------------------- */

.notice {
  margin: 18px 0 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.notice strong {
  color: var(--ink);
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.download-list {
  display: grid;
  gap: 18px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.download-body {
  min-width: 0;
}

.download-item h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.download-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 200px;
}

.download-size {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.hash-details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hash-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-strong);
}

.hash-details code {
  display: block;
  margin-top: 7px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: #3c4b5e;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

/* --------------------------------------------------------------------------
   Additional responsive rules
   -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
  .stat-grid,
  .grid.grid--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-shot {
    margin-top: 4px;
  }

  .split--reverse .split-visual {
    order: 0;
  }

  .download-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .download-actions {
    min-width: 0;
  }

  .download-actions .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .section--tight {
    padding: 40px 0;
  }

  .stat-grid,
  .grid.grid--stats {
    grid-template-columns: 1fr;
  }

  .download-item {
    padding: 20px;
  }
}

/* Small spacing utilities */
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }
.mt-34 { margin-top: 34px; }

.figure img {
  cursor: zoom-in;
}

.figure img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.download-item--soon {
  border-style: dashed;
  background: var(--bg-soft);
  box-shadow: none;
}

.download-item--soon h3 {
  color: var(--muted);
}

.download-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

/* Sprachwaehler im Kopfbereich */
.lang-switch {
  position: relative;
  margin-left: 10px;
  z-index: 60;
}
.lang-switch summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  min-width: 160px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.lang-switch li { list-style: none; }
.lang-switch a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a[aria-current] { background: var(--bg-soft); }
@media (max-width: 860px) {
  .lang-switch { margin-left: 0; }
  .lang-switch ul { right: auto; left: 0; }
}
