
:root{
  --bg:#0b1220;
  --panel:#0f1a33;
  --panel2:#0c152b;
  --text:#eaf0ff;
  --muted:#a9b6d8;
  --muted2:#7f8bb0;
  --brand1:#0b5cff;
  --brand2:#ef2b2d;
  --ok:#28d17c;
  --warn:#ffcc66;
  --bad:#ff6b6b;
  --border:rgba(234,240,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius:16px;
  --max:1100px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--font); background: radial-gradient(1200px 800px at 20% 0%, rgba(11,92,255,0.25), transparent 60%),
  radial-gradient(1200px 900px at 90% 10%, rgba(239,43,45,0.18), transparent 55%),
  linear-gradient(180deg, var(--bg), #070b14 70%);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
a.underline{text-decoration:underline; text-underline-offset:3px}
p{line-height:1.65; color:var(--muted)}
small{color:var(--muted2)}
.container{max-width:var(--max); margin:0 auto; padding:24px}
header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.72);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  max-width:var(--max); margin:0 auto; padding:14px 24px;
}
.brand{display:flex; align-items:center; gap:12px; min-width:220px}
.brand img{height:38px; width:auto; border-radius:10px; box-shadow:0 8px 18px rgba(0,0,0,0.25)}
@media (max-width: 520px){.brand img{height:36px}}
.brand .title{display:flex; flex-direction:column}
.brand .title strong{font-size:26px; letter-spacing:0.6px; line-height:1.05; text-transform:uppercase}
.brand .title span{font-size:13px; color:var(--muted2)}
.navlinks{display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:flex-end}
.navlinks a{
  padding:8px 10px; border-radius:10px; color:var(--muted);
  border:1px solid transparent;
}
.navlinks a:hover{border-color:var(--border); color:var(--text); background:rgba(255,255,255,0.03)}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:12px; border:1px solid var(--border);
  background: linear-gradient(90deg, rgba(11,92,255,0.22), rgba(239,43,45,0.18));
  box-shadow: var(--shadow);
}
.btn:hover{filter:brightness(1.05)}
.hero{
  padding:42px 0 18px;
}
.hero-grid{
  display:grid; grid-template-columns: 1.2fr 0.8fr; gap:20px; align-items:stretch;
}
.card{
  background: linear-gradient(180deg, rgba(15,26,51,0.9), rgba(12,21,43,0.9));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow);
}
.h1{font-size:42px; line-height:1.1; margin:0 0 10px}
.lede{font-size:16px; color:var(--muted); margin:0 0 14px}
.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:14px}
.kpi{
  padding:12px; border-radius:14px; background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
}
.kpi strong{display:block; font-size:14px}
.kpi span{display:block; font-size:12px; color:var(--muted2); margin-top:6px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; border:1px solid var(--border);
  background:rgba(255,255,255,0.03); color:var(--muted);
  font-size:12px;
}
.pills{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.grid{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:16px;
}
.col-4{grid-column: span 4}
.col-6{grid-column: span 6}
.col-8{grid-column: span 8}
.col-12{grid-column: span 12}

.section{padding:18px 0 6px}
.section h2{font-size:26px; margin:0 0 10px}
.section h3{font-size:18px; margin:0 0 8px}
.section .sub{margin-top:0; color:var(--muted2)}
.icon{
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px; border:1px solid var(--border); background:rgba(255,255,255,0.03);
  color:#c9d4ff;
}
.icon svg{width:26px; height:26px}
.bullets{margin:10px 0 0 0; padding-left:18px; color:var(--muted)}
.bullets li{margin:6px 0}

.tablewrap{overflow:auto; border-radius: var(--radius); border:1px solid var(--border)}
table{width:100%; border-collapse:collapse; min-width:860px; background: rgba(255,255,255,0.02)}
th, td{padding:12px 12px; border-bottom:1px solid var(--border); vertical-align:top}
th{position:sticky; top:0; background: rgba(11,18,32,0.92); text-align:left; font-size:13px; color:#dbe4ff}
td{font-size:14px; color:var(--muted)}
.tag{display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:12px; border:1px solid var(--border); background:rgba(255,255,255,0.03); color:var(--muted)}
.tag.ok{border-color:rgba(40,209,124,0.35); color:#c9ffe4}
.tag.warn{border-color:rgba(255,204,102,0.35); color:#fff2cc}
.tag.bad{border-color:rgba(255,107,107,0.35); color:#ffd2d2}

.callout{
  border-left:4px solid rgba(11,92,255,0.8);
  padding:12px 14px; background: rgba(11,92,255,0.10);
  border-radius: 12px; color: var(--muted);
}
.callout strong{color:var(--text)}
hr.sep{border:0; border-top:1px solid var(--border); margin:18px 0}

.footer{
  padding:28px 0 40px;
  color:var(--muted2);
  border-top:1px solid var(--border);
  margin-top:24px;
}
.footergrid{display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start}

details{
  border:1px solid var(--border); border-radius:14px; padding:12px 14px; background:rgba(255,255,255,0.02)
}
details+details{margin-top:10px}
summary{cursor:pointer; font-weight:650; color:#dbe4ff}
summary::-webkit-details-marker{display:none}
summary:after{content:"+"; float:right; color:var(--muted2)}
details[open] summary:after{content:"–"}

.notice{
  display:flex; gap:12px; align-items:flex-start;
  border:1px dashed rgba(234,240,255,0.25);
  padding:14px 16px; border-radius:14px; background: rgba(255,255,255,0.01);
}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
  .col-4,.col-6,.col-8,.col-12{grid-column: span 12}
  .nav{padding:12px 16px}
  .container{padding:16px}
  .h1{font-size:34px}
  .footergrid{grid-template-columns:1fr}
}


/* Media gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  margin: 22px 0;
}
.gallery figure{
  margin:0;
  padding:14px;
  background: var(--panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}
.gallery img{
  width:100%;
  height:auto;
  border-radius: 12px;
  display:block;
}
.gallery figcaption{
  margin-top:10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Video + embed */
.video{
  width:100%;
  max-width: 900px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: #000;
}

.embed{
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}


/* --- Co-brand (Anonamed) --- */
.cobrand{
  margin-left:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  text-decoration:none;
  min-width: 240px;
}
.cobrand:hover{ background: rgba(255,255,255,0.07); }
.cobrand-text strong{ display:block; line-height:1.1; color: var(--text); font-size:14px; }
.cobrand-text span{ display:block; color: var(--muted); font-size:12px; line-height:1.1; margin-top:2px; }
.cobrand-mark{
  width:34px; height:34px; border-radius:12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #1f6fff, #ff3b3b);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  position:relative;
  flex: 0 0 auto;
}
.cobrand-mark:before{
  content:"A";
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
  color: rgba(255,255,255,0.95);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Keep header tidy on small screens */
@media (max-width: 980px){
  .cobrand{ min-width: unset; }
  .cobrand-text span{ display:none; }
}


/* v4 fix: prevent header/menu overlap on narrow widths */
.nav{flex-wrap:wrap}
.brand{flex: 1 1 260px}
.navlinks{flex: 1 1 360px; justify-content:flex-end}
@media (max-width: 920px){
  .navlinks{justify-content:flex-start}
}

/* v4 fix: ensure anchored sections aren't hidden behind sticky header */
:target{scroll-margin-top: 110px}

main.container{padding-top:18px}


/* v10: responsive video embeds */
.video-wrap{
  width:100%;
  max-width: 900px;
  margin: 10px auto 0;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  background:#000;
}
.video-wrap.ratio-16x9{aspect-ratio: 16 / 9;}
.video-wrap.ratio-9x16{aspect-ratio: 9 / 16;}
.video-wrap iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}

header .nav{padding-top:18px; padding-bottom:18px}
