/* ==========================================================================
   MacroMag OS — Complete Unified Theme (v5)
   Alpine Blue & Mint Translucent Polish + Full Support for about.html & Wiki
   ========================================================================== */

:root {
  --alpine-dark: #072f46;
  --alpine-primary: #0d597f;
  --alpine-mid: #116b98;
  --alpine-accent: #1b85b8;
  --alpine-light: #e6f2f8;

  --oc-purple: #6366f1;
  --oc-purple-hover: #4f46e5;

  --bg-page: #f2f5f9;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --border-glass: rgba(13, 89, 127, 0.16);
  --text-main: #18222f;
  --text-muted: #526071;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(17, 107, 152, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 88% 35%, rgba(27, 133, 184, 0.1) 0%, transparent 48%),
    radial-gradient(circle at 45% 85%, rgba(13, 89, 127, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--alpine-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--alpine-mid);
  text-decoration: underline;
}

/* ==========================================================================
   Translucent Sticky Top Navigation Bar (.topbar)
   ========================================================================== */

.topbar {
  background-color: rgba(10, 68, 99, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(7, 47, 70, 0.12);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.topbar .brand img {
  height: 36px;
  width: auto;
  display: block;
}

.topbar nav#mainNav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar nav#mainNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.topbar nav#mainNav > li {
  list-style: none;
}

.topbar nav#mainNav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.topbar nav#mainNav a:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  margin: 4px 0;
  border-radius: 2px;
}

/* ==========================================================================
   Full-Bleed Hero Banner (.hero) — Warstwowa przeźroczystość jak w Mint
   ========================================================================== */

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      -28deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 44px,
      rgba(255, 255, 255, 0.0) 44px,
      rgba(255, 255, 255, 0.0) 88px
    ),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.38) 0%, transparent 55%),
    linear-gradient(150deg, #1376a8 0%, #0b4f73 55%, #07334b 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-img {
  width: 390px;
  max-width: 100%;
  height: 235px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px rgba(4, 24, 38, 0.35);
  flex-shrink: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.hero-text {
  max-width: 540px;
}

.hero-text::before {
  content: "Download system last version";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.hero-text h1 {
  font-family: var(--font-sans);
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem 0;
  color: #ffffff;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 6px;
  background-color: #ffffff !important;
  color: var(--alpine-dark) !important;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.hero .btn:hover {
  background-color: #f0f7fb !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.hero .btn-orange,
.hero .btn-blue {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  box-shadow: none;
}

.hero .btn-orange:hover,
.hero .btn-blue:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-1px);
}

.small-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 47, 70, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
}

/* ==========================================================================
   Index Editorial Sections (.lead, .about-box, .team)
   ========================================================================== */

.lead,
.about-box,
.team {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lead {
  padding-top: 2.75rem;
  margin-bottom: 0.35rem;
}

.lead p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--alpine-primary);
  margin: 0;
}

.about-box {
  background: transparent;
  border: none;
  padding-top: 0;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
}

.about-box::before {
  content: "What is MacroMag OS?";
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.about-box p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 78ch;
}

.team {
  padding-top: 2.25rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-glass);
}

.team h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1.5rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.member {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 6px 20px rgba(13, 89, 127, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.member:hover {
  transform: translateY(-2px);
  background-color: var(--bg-glass-strong);
  box-shadow: 0 10px 26px rgba(13, 89, 127, 0.11);
  border-color: rgba(13, 89, 127, 0.35);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--alpine-mid), var(--alpine-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(13, 89, 127, 0.22);
}

.avatar-logo {
  padding: 6px;
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.member .role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--alpine-primary);
  background-color: rgba(13, 89, 127, 0.09);
  border: 1px solid rgba(13, 89, 127, 0.18);
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.7rem;
}

.member p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   about.html & Wiki (.doc) + Open Collective Tiers (.support, .tiers, .tier)
   ========================================================================== */

.doc,
.support {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

.doc {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 2rem;
  padding: 2rem;
  box-shadow: 0 6px 22px rgba(13, 89, 127, 0.06);
}

.doc h1 {
  margin: 0 0 0.35rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.doc .meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.doc p {
  margin: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.doc p a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: rgba(13, 89, 127, 0.08);
  border: 1px solid rgba(13, 89, 127, 0.18);
  border-radius: 6px;
  font-weight: 600;
  color: var(--alpine-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.doc p a:hover {
  background-color: rgba(13, 89, 127, 0.15);
  transform: translateX(2px);
  text-decoration: none;
}

/* Open Collective Support Section */
.support {
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
}

.support h2 {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

.support .center {
  text-align: center;
  margin: 0 0 2rem 0;
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--oc-purple), var(--oc-purple-hover));
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.tier {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 6px 20px rgba(13, 89, 127, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tier:hover {
  transform: translateY(-2px);
  background-color: var(--bg-glass-strong);
  box-shadow: 0 10px 26px rgba(13, 89, 127, 0.1);
}

.tier .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--alpine-primary);
  background-color: rgba(13, 89, 127, 0.09);
  border: 1px solid rgba(13, 89, 127, 0.18);
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.75rem;
}

.tier h3 {
  margin: 0 0 0.55rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.tier p {
  margin: 0 0 0.85rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tier .limit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #b45309;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.tier .progress {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.tier .bar {
  width: 100%;
  height: 8px;
  background-color: rgba(13, 89, 127, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.15rem;
}

.tier .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--alpine-primary), var(--oc-purple));
  border-radius: 999px;
}

.btn-outline {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--alpine-primary) !important;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 89, 127, 0.35);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--alpine-primary);
  color: #ffffff !important;
  border-color: var(--alpine-primary);
}

/* ==========================================================================
   Other Subpages (Codeberg / Technical Docs Style)
   ========================================================================== */

main > section:not(.hero):not(.lead):not(.about-box):not(.team):not(.big-links):not(.doc):not(.support),
main > article {
  max-width: 980px;
  margin: 1.5rem auto;
  padding: 2rem;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

main pre {
  font-family: var(--font-mono);
  background-color: #111827;
  color: #f3f4f6;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.55;
}

main code {
  font-family: var(--font-mono);
  background-color: rgba(13, 89, 127, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

main pre code {
  background: transparent;
  padding: 0;
}

/* ==========================================================================
   Quick Links Strip (.big-links)
   ========================================================================== */

.big-links {
  width: 100%;
  background: linear-gradient(135deg, rgba(11, 76, 110, 0.94) 0%, rgba(7, 47, 70, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.big-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.big-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.big-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.big-logo {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Footer (.footer)
   ========================================================================== */

.footer {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-glass);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--alpine-primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   Responsive Design (Mobile)
   ========================================================================== */

@media (max-width: 820px) {
  .topbar {
    padding: 0.75rem 1.15rem;
  }

  .menu-btn {
    display: block;
  }

  .topbar nav#mainNav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .topbar nav#mainNav.open,
  .topbar nav#mainNav.active,
  .topbar nav#mainNav[aria-expanded="true"] {
    display: flex;
  }

  .topbar nav#mainNav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.2rem;
  }

  .topbar nav#mainNav a {
    padding: 0.6rem 0.5rem;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem 2.5rem;
    gap: 1.75rem;
  }

  .hero-img {
    width: 100%;
    height: 190px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .team-grid,
  .tiers {
    grid-template-columns: 1fr;
  }

  .doc {
    margin: 1.25rem;
    padding: 1.35rem;
  }

  .support {
    padding: 1.75rem 1.25rem 2.5rem;
  }

  .big-links {
    padding: 1.25rem;
    justify-content: space-between;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
                              }
