/* styles.css */
:root{
  --bg:#0b0f14;
  --card:#121a23;
  --text:#e7eef7;
  --muted:#a9b6c6;
  --line:#223041;
  --accent:#7bd389;
  --accent2:#7aa7ff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(122,167,255,.18), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(123,211,137,.16), transparent 50%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}
a.link{color:var(--accent2); text-decoration:none}
a.link:hover{text-decoration:underline}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--card); border:1px solid var(--line); border-radius:12px; z-index:9999;
}

.container{max-width:1100px; margin:0 auto; padding:18px}
header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,15,20,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(34,48,65,.6);
}
.topbar{
  display:flex; align-items:center; gap:14px; justify-content:space-between;
  padding:12px 18px;
}
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.logo{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(123,211,137,.95), rgba(122,167,255,.95));
  box-shadow: var(--shadow);
}
.brand strong{letter-spacing:.2px}
.brand span{color:var(--muted); font-size:.92rem}

nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
nav a{
  display:inline-block;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:12px;
  text-decoration:none;
  color:var(--muted);
  transition: .15s ease;
}
nav a:hover{
  color:var(--text);
  border-color: rgba(34,48,65,.9);
  background: rgba(18,26,35,.55);
}
nav a.active{
  color:var(--text);
  border-color: rgba(123,211,137,.55);
  background: rgba(123,211,137,.10);
}

.hero{
  margin:18px 0 10px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
.hero-card{
  background: linear-gradient(180deg, rgba(18,26,35,.92), rgba(18,26,35,.72));
  border:1px solid rgba(34,48,65,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-inner{padding:18px}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border:1px solid rgba(34,48,65,.9);
  border-radius:999px; color:var(--muted); font-size:.9rem;
  background: rgba(11,15,20,.35);
}
.kicker b{color:var(--accent)}
h1{margin:10px 0 8px; line-height:1.15}
p{margin:10px 0; color:var(--muted)}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  font-size:.9rem; color:var(--text);
  padding:7px 10px; border-radius:999px;
  border:1px solid rgba(34,48,65,.9);
  background: rgba(11,15,20,.25);
}

.hero-figure{
  display:flex; flex-direction:column;
}
.hero-figure img{
  width:100%; height:100%; min-height:320px;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
}
.caption{
  padding:10px 12px;
  border-top:1px solid rgba(34,48,65,.8);
  color:var(--muted);
  font-size:.9rem;
  background: rgba(11,15,20,.35);
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin:14px 0 24px;
}
.card{
  grid-column: span 4;
  background: rgba(18,26,35,.75);
  border:1px solid rgba(34,48,65,.8);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.card h3{margin:2px 0 6px}
.card p{margin:0; color:var(--muted)}
.card a{display:inline-block; margin-top:10px}

.article{
  background: rgba(18,26,35,.72);
  border:1px solid rgba(34,48,65,.8);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.article h2{margin:2px 0 10px}
.article h3{margin:14px 0 6px}
.article ul{margin:8px 0 0 18px; color:var(--muted)}
.article li{margin:6px 0}
.note{
  margin-top:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px dashed rgba(122,167,255,.55);
  background: rgba(122,167,255,.08);
  color:var(--muted);
}

.figure{
  margin:14px 0 8px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(34,48,65,.8);
  background: rgba(11,15,20,.25);
}
.figure img{width:100%; display:block; max-height:520px; object-fit:cover}
.figure .caption{border-top:1px solid rgba(34,48,65,.8)}

.columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

footer{
  margin:30px 0 12px;
  color:var(--muted);
  font-size:.92rem;
}
.footerbox{
  border-top:1px solid rgba(34,48,65,.7);
  padding-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}
small{color:var(--muted)}

@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
  .card{grid-column: span 6}
  .columns{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .card{grid-column: span 12}
  nav ul{justify-content:flex-start}
  .hero-figure img{min-height:260px}
}
