/* Dark landing page theme (article template) */
:root{
  --bg0:#ffffff;
  --bg1:#f8fafc;
  --card:#ffffff;
  --card2:#f8fafc;
  --text:#0f172a;
  --muted:#334155;
  --muted2:#64748b;
  --line:rgba(15,23,42,.14);
  --brand:#A855F7;
  --brand2:#22D3EE;
  --ok:#34D399;
  --warn:#FBBF24;
  --danger:#FB7185;
  --shadow:0 14px 50px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: #f8fafc;
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{width:min(1120px, 92vw); margin:0 auto}
.sr-only{
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.88);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
}
.brand img{width:38px; height:38px; border-radius:10px}
.brand .name{font-weight:800; letter-spacing:.2px}
.brand .tag{font-size:12px; color:var(--muted2)}

.nav-actions{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  font-weight:700;
  white-space:nowrap;
}
.btn.primary{
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.08);
}
.btn.ghost{background:transparent}
.btn:active{transform: translateY(1px)}

.lang{
  display:flex; gap:6px; align-items:center;
  padding:6px; border:1px solid var(--line); border-radius:999px;
  background:#eef2f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.lang a{
  padding:8px 10px; border-radius:999px; font-weight:800; font-size:13px;
  color:var(--muted);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.lang a.active{
  color:var(--text);
  background:#dbe4f0;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: 0 1px 2px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.55);
}

.hero{
  position:relative;
  padding:56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.hero h1{
  font-size: clamp(30px, 4.2vw, 56px);
  line-height:1.05;
  margin:0 0 10px;
  letter-spacing:-.6px;
}
.sub{
  color:var(--muted);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height:1.55;
  margin:0 0 18px;
}
.chips{display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 22px}
.chip{
  font-size:13px; color:var(--muted);
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  padding:8px 10px; border-radius:999px;
}
.chip b{color:var(--text)}

.hero-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius);
  overflow:hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  position:relative;
}
.hero-media{
  height: 260px;
  background: #0b0f1e;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(15,23,42,.05);
  pointer-events:none;
}
.hero-panel{
  padding:16px 16px 18px;
}
.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px}
.kpi{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  padding:12px 12px;
}
.kpi .n{font-size:18px; font-weight:900}
.kpi .t{font-size:12px; color:var(--muted2)}

.section{
  padding:34px 0;
}
.section h2{
  margin:0 0 10px;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing:-.2px;
}
.section .lead{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  background:var(--card);
  padding:16px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
}
.card:hover{background:var(--card2)}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.6}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:center;
}
.media{
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(0,0,0,.20);
  box-shadow: var(--shadow);
}
.media img{
  width:100%; height:360px; object-fit:cover; display:block;
}

.list{
  display:flex; flex-direction:column; gap:10px;
}
.item{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  padding:12px 12px;
}
.ic{
  width:36px; height:36px; border-radius:12px;
  display:grid; place-items:center;
  background:rgba(168,85,247,.10);
  border:1px solid var(--line);
  flex:0 0 auto;
}
.item b{display:block; margin-bottom:2px}
.item span{color:var(--muted); line-height:1.55}

.faq details{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:#ffffff;
  padding:12px 14px;
}
.faq details+details{margin-top:10px}
.faq summary{
  cursor:pointer; font-weight:900;
  list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq p{margin:10px 0 0; color:var(--muted); line-height:1.65}

.cta{
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: #f1f5f9;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.cta p{margin:0; color:var(--muted); line-height:1.55}
.cta .btn{flex:0 0 auto}

footer{
  border-top:1px solid var(--line);
  padding:26px 0 34px;
  color:var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
.footer-links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.footer-links a{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  align-content:start;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
  min-height:72px;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.footer-links a b{
  display:block;
  color:var(--text);
  line-height:1.35;
}
.footer-links a span{
  display:block;
  font-size:12px;
  color:var(--muted2);
  line-height:1.55;
}
.foot{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.foot a{
  display:block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.foot a b{display:block; color:var(--text)}
.foot a span{display:block; font-size:12px; color:var(--muted2); margin-top:2px}

.tiny{font-size:12px; color:var(--muted2); line-height:1.6}
.hr{height:1px; background:var(--line); margin:14px 0}

.mobile-quick-actions{
  display:none;
}

.reveal{
  opacity:0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{opacity:1; transform: translateY(0)}

/* --- Article layout overrides (less "landing") --- */
.progress{
  position:fixed; top:0; left:0; right:0; height:3px;
  z-index:80;
  background:rgba(255,255,255,.06);
}
.progress > i{
  display:block; height:100%;
  width:0%;
  background: var(--brand);
  box-shadow: 0 0 22px rgba(168,85,247,.25);
}

.page{
  padding: 28px 0 40px;
}
.article{
  width: min(760px, 92vw);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.article-header{
  margin-top: 8px;
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}
.kicker b{color:var(--text)}
.title{
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -.6px;
  margin: 14px 0 10px;
}
.dek{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}
.meta-row{
  display:flex; flex-wrap:wrap; gap:10px 14px;
  color: var(--muted2);
  font-size: 13px;
  align-items:center;
}
.meta-row a{
  color: var(--text);
  border-bottom: 1px dashed rgba(255,255,255,.22);
}

.cover{
  margin: 18px 0 18px;
  border-radius: calc(var(--radius) + 4px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.cover img{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}
.cover .cap{
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted2);
  border-top: 1px solid rgba(15,23,42,.10);
  background: #f8fafc;
}

.toc{
  margin: 18px 0 22px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
}
.toc h2{
  font-size: 14px;
  margin:0 0 10px;
  color: var(--text);
  letter-spacing: .2px;
}
.toc ol{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.toc a{
  color: var(--text);
  border-bottom: 1px dashed rgba(15,23,42,.28);
}

.prose{
  font-size: 16px;
  line-height: 1.95;
  color: #0f172a;
}
.article > .prose{
  position:relative;
  margin-top:14px;
  padding-top:8px;
}
.article > .prose + .prose{
  margin-top:26px;
}
.article > .prose + .prose::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-16px;
  height:1px;
  background: var(--line);
  opacity:.45;
  pointer-events:none;
}
.prose p{margin: 12px 0}
.prose h2{
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.prose h3{
  margin: 18px 0 8px;
  font-size: 17px;
  letter-spacing: -.1px;
}
.prose ul{margin: 12px 0 12px 18px; color: var(--muted)}
.prose li{margin: 8px 0}
.prose strong{color: var(--text)}
.prose a{
  color: var(--text);
  border-bottom: 1px dashed rgba(15,23,42,.35);
}
.note{
  margin: 16px 0;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.14);
  background: #f1f5f9;
  color: var(--muted);
}
.note b{color:var(--text)}
.quote{
  margin: 16px 0;
  padding: 14px 14px;
  border-left: 3px solid rgba(168,85,247,.55);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
}

.tags{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 12px 0 0;
  padding:0;
  list-style:none;
}
.tags a{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(15,23,42,.14);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
}

.mini-cta{
  margin: 22px 0 0;
  border:1px solid rgba(15,23,42,.14);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.mini-cta p{
  margin:0;
  color: var(--muted);
  line-height:1.6;
  flex: 1 1 200px;
  min-width: 0;
}
.mini-cta-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

/* Make footer feel less like a conversion section */
footer{margin-top: 34px}

@media (max-width: 720px){
  .mini-cta{
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .mini-cta p{
    flex: none;
    width: 100%;
  }
  .mini-cta-actions{
    flex-direction: column;
    width: 100%;
    flex: none;
    align-items: stretch;
  }
  .mini-cta .btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
    box-sizing: border-box;
  }
}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .hero-media{height:240px}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .media img{height:260px}
  .cta{flex-direction:column; align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
  .footer-links{grid-template-columns:1fr}
  .cover img{height: 240px}
}

/* Mobile topbar polish */
@media (max-width: 560px){
  .topbar-inner{
    padding:10px 0;
    gap:8px;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
  }
  .brand{
    display:flex;
    width:auto;
    min-width:0;
    flex:0 1 auto;
    gap:8px;
  }
  .brand img{
    width:32px;
    height:32px;
    border-radius:9px;
  }
  .brand .name,
  .brand .tag{
    display:none;
  }
  .nav-actions{
    width:auto;
    justify-content:flex-end;
    gap:8px;
  }
  .nav-actions .btn{
    display:none;
  }
  .btn{
    padding:9px 12px;
    font-size:13px;
  }
  .lang{
    padding:5px;
  }
  .lang a{
    padding:7px 9px;
    font-size:12px;
  }
  .mobile-quick-actions{
    position:fixed;
    left:12px;
    right:12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index:85;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:8px;
    border:1px solid rgba(15,23,42,.14);
    border-radius:14px;
    background:rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    box-shadow:0 10px 24px rgba(15,23,42,.16);
  }
  .mobile-quick-actions .btn{
    justify-content:center;
    padding:10px 10px;
    font-size:14px;
    font-weight:800;
  }
}

@media (max-width: 380px){
  .topbar-inner{
    padding:8px 0;
  }
  .lang a{
    padding:6px 8px;
    font-size:11px;
  }
  .btn{
    padding:8px 10px;
    font-size:12px;
  }
  .btn span[aria-hidden="true"]{display:none;}
}

/* Footer spacing on mobile */
@media (max-width: 560px){
  footer{
    margin-top: 54px;
    padding-top: 30px;
    padding-bottom: 92px;
  }
  .page{
    padding-bottom: 112px;
  }
}
