:root{
  --bg:#050505;
  --panel: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.40);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --r2: 26px;
  --max: 1080px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  overflow-x:hidden;

  /* helps compositor */
  isolation: isolate;
}

/* ===== background layers (ALL pages) ===== */
.bg{
  position:fixed;
  inset:-20%;
  z-index:0;
  pointer-events:none;
  opacity:.92;
  background:
    radial-gradient(1200px 700px at 20% 25%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(900px 600px at 70% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(1000px 700px at 60% 70%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(800px 600px at 25% 80%, rgba(255,255,255,.04), transparent 60%);
}

.bg-lines{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:.30;
  mix-blend-mode: screen;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='1'%3E%3Cpath d='M80 120c140-90 250-90 390 0s250 90 390 0'/%3E%3Cpath d='M60 260c160-110 270-110 390 0s230 110 390 0'/%3E%3Cpath d='M90 420c130-80 240-80 380 0s260 80 390 0'/%3E%3Ccircle cx='180' cy='170' r='140'/%3E%3Ccircle cx='670' cy='360' r='170'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 600px;
  background-repeat: repeat;
  filter: blur(.35px);
  animation: drift 18s linear infinite;
}

@keyframes drift{
  from { background-position: 0 0; }
  to   { background-position: 240px 120px; }
}

.blob{
  position:fixed;
  z-index:2;
  width:520px; height:520px;
  border-radius:999px;
  pointer-events:none;
  opacity:.22;

  /* compositor hints */
  transform: translate3d(0,0,0);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;

  -webkit-filter: blur(120px);
  filter: blur(120px);

  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.12), transparent 60%);
  mix-blend-mode: screen;
}

.blob1{ top:-160px; left:-140px; animation: float1 14s ease-in-out infinite; }
.blob2{ top:120px; right:-180px; width:620px; height:620px; opacity:.18; animation: float2 18s ease-in-out infinite; }
.blob3{ bottom:-220px; left:30%; width:680px; height:680px; opacity:.14; animation: float3 20s ease-in-out infinite; }

@keyframes float1{ 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(40px,60px,0) scale(1.06)} }
@keyframes float2{ 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-60px,40px,0) scale(1.04)} }
@keyframes float3{ 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(80px,-40px,0) scale(1.03)} }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ===== layout ===== */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 5;
}

/* ===== topbar ===== */
.topbar{
  position: sticky;
  top: 16px;
  z-index: 20;
  display:flex;
  justify-content:center;
}
.topbar .pill{
  width: min(1080px, calc(100% - 48px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:inherit;
  text-decoration:none;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
}
.brandText strong{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.85); display:block; line-height:1; }
.brandText small{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); display:block; margin-top:2px; }

.actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-size:12px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.chip:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

.lang{
  display:flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-size:12px;
}
.lang button{
  all:unset;
  cursor:pointer;
  color: rgba(255,255,255,.65);
}
.lang button.active{ color: rgba(255,255,255,.95); }
.lang span{ color: rgba(255,255,255,.25); }

/* ===== hero ===== */
.hero{ padding: 64px 0 22px; }
.hero h1{
  margin:0;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero em{ font-style: italic; font-weight:600; opacity:.92; }
.hero p{
  margin:14px 0 22px;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.hero .cta{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.40);
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-size:12px;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

.miniMeta{ display:flex; gap:10px; flex-wrap:wrap; }
.miniPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.miniKey{ color: var(--muted2); font-size:12px; }
.miniVal{ color: rgba(255,255,255,.9); font-size:12px; }

/* ===== sections/cards ===== */
.sectionTitle{
  margin-top:36px;
  margin-bottom:12px;
  color: rgba(255,255,255,.50);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){ .grid3{ grid-template-columns:1fr; } }

.card, .patchCard{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  padding:16px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.card:hover, .patchCard:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.card h3{ margin:0 0 8px; font-size:13px; }
.card p{ margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.5; }
.card a{ color:rgba(255,255,255,.85); font-size:12px; text-decoration:none; }
.card a:hover{ text-decoration:underline; }

.latestRow{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.rightLink{
  display:flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-size:12px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: transform .18s ease, background .18s ease;
}
.rightLink:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

.patchMeta .line1{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.badge{
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.85);
  font-size:11px;
}
.date{ color: var(--muted2); font-size:12px; }
.patchDesc{ margin:12px 0 10px; color:var(--muted); font-size:13px; line-height:1.55; }
.patchList{ margin:0; padding-left:18px; color:rgba(255,255,255,.86); font-size:13px; line-height:1.7; }
.patchFoot{ margin-top:12px; display:flex; gap:10px; color:var(--muted2); font-size:12px; flex-wrap:wrap; }

.footer{ padding: 42px 0 24px; color: rgba(255,255,255,.40); font-size:12px; }
.muted{ color: var(--muted2); }
.codeInline{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Reveal */
[data-anim]{ opacity:0; transform: translateY(14px); filter: blur(2px); }
.reveal{
  opacity:1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}
