/* ===== RISA SITE — neon / glass / night sky ===== */
:root{
    --bg: #050512;
    --ink: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --glass: rgba(10,14,30,.46);
    --glass2: rgba(10,14,30,.70);
    --line: rgba(255,255,255,.10);
    --red: #ff3d3d;
    --cyan: #20d9ff;
    --violet: #8a5bff;
    --amber: #ffb84a;
    --shadow: 0 18px 60px rgba(0,0,0,.55);
    --shadow2: 0 10px 28px rgba(0,0,0,.42);
    --radius: 18px;
    --radius2: 28px;
    --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
    color:var(--ink);
    background: var(--bg);
    overflow-x:hidden;
}

/* Background wallpaper + dreamy overlays */
.bg{
    position:fixed;
    inset:0;
    z-index:-3;
    background-color: #000;
    background:
            radial-gradient(1200px 800px at 20% 20%, rgba(0, 225, 255, 0.25), transparent 60%),
            radial-gradient(900px 600px at 80% 70%, rgba(32,217,255,.18), transparent 55%),
            radial-gradient(800px 500px at 60% 15%, rgba(0, 54, 255, 0.14), transparent 60%),
            url("img/wallpaper.jpg") center / cover no-repeat;
    filter: saturate(1.05) contrast(1.05);
}
.bg::after{
    content:"";
    position:absolute;
    inset:-2px;
    background:
            linear-gradient(180deg, rgba(5,5,18,.55), rgba(5,5,18,.75) 45%, rgba(5,5,18,.92)),
            radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.25), transparent 60%),
            radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,.18), transparent 60%),
            radial-gradient(1px 1px at 60% 75%, rgba(255,255,255,.14), transparent 60%);
    mix-blend-mode: multiply;
}
/* Top nav */
.nav{
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(5,5,18,.75), rgba(5,5,18,.35));
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav-inner{
    max-width: var(--max);
    margin:0 auto;
    padding: 14px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--ink);
}
.logo{
    width:40px; height:40px; border-radius:14px;
}
.logo img {
    width: 100%;
}
.brand-title{
    font-weight:800;
    letter-spacing:.4px;
    line-height:1.1;
}
.brand-sub{
    display:block;
    font-size:12px;
    color:var(--muted);
    font-weight:600;
    letter-spacing:.2px;
    margin-top:2px;
}

.nav-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.nav-links a{
    text-decoration:none;
    color:var(--muted);
    font-weight:700;
    font-size:13px;
    padding:10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(10,14,30,.35);
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-links a:hover{
    transform: translateY(-1px);
    color: var(--ink);
    background: rgba(10,14,30,.55);
    border-color: rgba(255,255,255,.18);
}
.nav-links a.active{
    color: var(--ink);
    background:
            linear-gradient(135deg, rgba(0, 147, 255, 0.22), rgba(32,217,255,.18));
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* Layout */
main{
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 18px 70px;
}
.hero{
    padding: 26px 0 18px;
    display:grid;
    grid-template-columns: 1.35fr .65fr;
    gap:18px;
}
@media (max-width: 900px){
    .hero{ grid-template-columns: 1fr; }
}

.panel{
    border:1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(10,14,30,.50), rgba(10,14,30,.30));
    backdrop-filter: blur(16px);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    overflow:hidden;
    position:relative;
}
.panel::before{
    content:"";
    position:absolute;
    inset:-2px;
    background:
            radial-gradient(600px 260px at 20% 0%, rgba(255, 61, 61, 0.16), transparent 60%),
            radial-gradient(520px 280px at 90% 20%, rgba(32,217,255,.14), transparent 65%);
    pointer-events:none;
}

.hero-left{ padding: 26px 22px; }
.kicker{
    display:inline-flex;
    gap:10px;
    align-items:center;
    color: rgba(234,240,255,.82);
    font-weight:800;
    font-size:12px;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity:.95;
}
.kicker .dot{
    width:9px; height:9px; border-radius:999px;
    background: radial-gradient(circle at 30% 30%, var(--red), var(--violet));
    box-shadow: 0 0 18px rgba(255,61,242,.55);
}
h1{
    margin: 12px 0 10px;
    font-size: clamp(34px, 4.1vw, 54px);
    line-height:1.03;
    letter-spacing: -.02em;
}
.lead{
    margin: 0 0 18px;
    color: var(--muted);
    font-weight:600;
    line-height:1.55;
    font-size: 15px;
    max-width: 72ch;
}

.badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top: 14px;
}
.badge{
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,14,30,.42);
    color: rgba(234,240,255,.86);
    font-weight:800;
    font-size: 12px;
    letter-spacing:.02em;
}

.cta{
    margin-top: 18px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.btn{
    text-decoration:none;
    color: var(--ink);
    font-weight:900;
    letter-spacing:.02em;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10,14,30,.46);
    box-shadow: var(--shadow2);
    transition: transform .18s ease, filter .18s ease, background .18s ease;
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn.primary{
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.28), rgba(32,217,255,.18));
    border-color: rgba(255,255,255,.22);
}
.btn .spark{
    width:10px; height:10px; border-radius:99px;
    background: linear-gradient(135deg, var(--red), var(--cyan));
    box-shadow: 0 0 18px rgba(32,217,255,.55);
}

.hero-right{
    padding: 18px;
    display:grid;
    gap:12px;
}
.mini-card{
    border:1px solid rgba(255,255,255,.12);
    background: rgba(10,14,30,.38);
    border-radius: var(--radius);
    padding: 14px;
}
.mini-title{
    font-weight:900;
    letter-spacing:.02em;
    margin: 0 0 6px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.mini-title span{
    font-size: 12px;
    font-weight:900;
    color: rgba(234,240,255,.8);
    padding: 6px 10px;
    border-radius: 999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(10,14,30,.45);
}
.mini-text{
    margin:0;
    color: var(--muted);
    font-weight:600;
    line-height:1.5;
    font-size: 13px;
}

.section{
    margin-top: 18px;
}
.section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin: 22px 0 12px;
}
.section-head h2{
    margin:0;
    font-size: 20px;
    letter-spacing: -.01em;
}
.section-head p{
    margin:0;
    color: var(--muted);
    font-weight:600;
    font-size: 13px;
}

.grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
/*.card{*/
/*    grid-column: span 6;*/
/*    border:1px solid rgba(255,255,255,.12);*/
/*    background: linear-gradient(180deg, rgba(10,14,30,.48), rgba(10,14,30,.28));*/
/*    backdrop-filter: blur(16px);*/
/*    border-radius: var(--radius2);*/
/*    box-shadow: var(--shadow2);*/
/*    overflow:hidden;*/
/*    position:relative;*/
/*    padding: 16px 16px 14px;*/
/*}*/
/*.card.wide{ grid-column: span 12; }*/
/*.card.third{ grid-column: span 4; }*/
/*@media (max-width: 980px){*/
/*    .card.third{ grid-column: span 6; }*/
/*}*/
/*@media (max-width: 720px){*/
/*    .card{ grid-column: span 12; }*/
/*}*/
/*.card::before{*/
/*    content:"";*/
/*    position:absolute;*/
/*    inset:-2px;*/
/*    background:*/
/*            radial-gradient(420px 160px at 10% 0%, rgba(32,217,255,.13), transparent 60%),*/
/*            radial-gradient(460px 180px at 95% 10%, rgba(0, 255, 225, 0.1), transparent 62%);*/
/*    pointer-events:none;*/
/*}*/
/*.card h3{*/
/*    margin: 0 0 8px;*/
/*    font-size: 16px;*/
/*    letter-spacing: -.01em;*/
/*}*/
/*.card p, .card li{*/
/*    color: var(--muted);*/
/*    font-weight:600;*/
/*    line-height:1.55;*/
/*    font-size: 14px;*/
/*}*/
/*.card ul{*/
/*    margin: 10px 0 0;*/
/*    padding-left: 18px;*/
/*}*/

.tagrow{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top: 12px;
}
.tag{
    font-size: 12px;
    font-weight:900;
    color: rgba(234,240,255,.84);
    padding: 6px 10px;
    border-radius: 999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(10,14,30,.38);
}

/* Chapter cards */
.chapter{
    display:grid;
    grid-template-columns: 200px 1fr;
    gap: 14px;
    align-items:stretch;
}
@media (max-width: 780px){
    .chapter{ grid-template-columns: 1fr; }
}
.thumb{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10,14,30,.36);
    overflow:hidden;
    position:relative;
    min-height: 140px;
    box-shadow: var(--shadow2);
}
.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    filter: saturate(1.05) contrast(1.05);
}
.thumb::after{
    content:"";
    position:absolute;
    inset:0;
    background:
            radial-gradient(260px 180px at 30% 10%, rgba(32,217,255,.18), transparent 55%),
            linear-gradient(180deg, transparent, rgba(5,5,18,.65));
}
.chapter h3{ margin: 2px 0 6px; }
.chapter .meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin: 10px 0 0;
}
.link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:900;
    text-decoration:none;
    color: rgba(234,240,255,.88);
    padding: 9px 12px;
    border-radius: 12px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(10,14,30,.38);
    transition: transform .18s ease, background .18s ease;
}
.link:hover{ transform: translateY(-1px); background: rgba(10,14,30,.52); }
.small{
    font-size: 12px;
    color: rgba(234,240,255,.78);
    font-weight:800;
}

.footer{
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 18px 42px;
    color: rgba(234,240,255,.62);
    font-weight:700;
    font-size: 12px;
}

/* little “glow line” divider */
.hr{
    height:1px;
    background: linear-gradient(90deg, transparent, rgba(255, 61, 61, 0.35), rgba(32,217,255,.30), transparent);
    margin: 18px 0;
    border:0;
}

.lang { display:flex; gap:.4rem; align-items:center; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  padding: .35rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  opacity: .85;
}
.lang-btn[aria-pressed="true"] { opacity: 1; border-color: rgba(255,255,255,.6); }