:root{
  --bg:#07090d;
  --panel:#0c111a;
  --panel2:#0e1624;
  --text:#e9eef7;
  --muted:#aab6c7;
  --line:rgba(255,255,255,.09);
  --accent:#ff2d2d;
  --accent2:#ffb300;
  --maxw:1180px;
  --r:18px;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --hover-border-inactive:#ffffff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 15% -10%, rgba(255,45,45,.22), transparent 60%),
    radial-gradient(900px 650px at 85% -15%, rgba(255,179,0,.14), transparent 55%),
    radial-gradient(700px 500px at 70% 55%, rgba(0,120,255,.08), transparent 60%),
    linear-gradient(180deg, #05060a, var(--bg));
}
a{color:inherit; text-decoration:none}
a:hover{color:var(--text)}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--maxw); margin:0 auto; padding:0 20px}
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(7,9,13,.7);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.logo{
  width:36px; height:36px; border-radius:10px;
  background:linear-gradient(135deg,var(--accent),#9b0f0f);
  box-shadow:0 10px 30px rgba(255,45,45,.25);
  position:relative;
}
.logo:after{
  content:"";
  position:absolute; inset:9px 11px 9px 11px;
  border:2px solid rgba(255,255,255,.85);
  border-left:0; border-right:0;
  transform:skewX(-18deg);
  opacity:.9;
}
.brand strong{letter-spacing:.4px; display:block; line-height:1.15}
.brand-text{display:flex; flex-direction:column; gap:4px; min-width:0}
.brand-text .pill{max-width:240px}
.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:1 1 360px;
  flex-wrap:wrap;
  min-width:0;
}
.nav-links a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.nav-links a:hover{border-color:var(--line); color:var(--text); background:rgba(255,255,255,.03)}
.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  user-select:none;
  transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, filter .2s ease;
}
.btn:hover{background:rgba(255,255,255,.06)}
.btn.primary{
  border-color:rgba(255,45,45,.45);
  background:linear-gradient(135deg, rgba(255,45,45,.95), rgba(155,15,15,.95));
  box-shadow:0 14px 40px rgba(255,45,45,.22);
}
.btn.primary:hover{
  filter:saturate(1.1);
  transform:translateY(-3px);
  box-shadow:0 16px 44px rgba(255,45,45,.26);
}
.btn.ghost{background:transparent}
.btn.small{padding:9px 11px; border-radius:12px; font-size:14px}
header .btn:hover,
header .btn:focus-visible{
  border-color:rgba(255,45,45,.6);
  box-shadow:0 12px 36px rgba(255,45,45,.2);
}
header .btn.ghost:hover,
header .btn.ghost:focus-visible{
  background:linear-gradient(135deg, rgba(255,45,45,.9), rgba(155,15,15,.9));
  color:var(--text);
  transform:translateY(-3px);
}
header .nav-links a:hover,
header .nav-links a:focus-visible{
  transform:translateY(-3px);
  color:var(--text);
  border-color:rgba(255,45,45,.7);
  background:linear-gradient(135deg, rgba(255,45,45,.14), rgba(155,15,15,.16));
  box-shadow:0 12px 30px rgba(255,45,45,.18);
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.hero{
  padding:56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}

.hero-media {
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 980px) {
  .hero-media {
    margin-top: 28px;
  }
}


@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}
.hover-card{transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease}
.hover-card.is-clickable{
  cursor:pointer;
}
.hover-card.is-clickable:hover,
.hover-card.is-clickable:focus-within{
  transform:translateY(-5px);
  border-color:rgba(255,45,45,.8);
  box-shadow:0 16px 40px rgba(255,45,45,.16);
}
.hover-card:not(.is-clickable):hover,
.hover-card:not(.is-clickable):focus-within{
  border-color:var(--hover-border-inactive);
}
.card.pad{padding:22px}
.kicker{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.kicker .dot{
  width:10px; height:10px; border-radius:10px;
  background:var(--accent);
  box-shadow:0 0 0 6px rgba(255,45,45,.18);
}
h1{margin:0; font-size:44px; line-height:1.06; letter-spacing:-.6px}
@media (max-width: 520px){ h1{font-size:36px} }
h2{margin:0 0 8px; font-size:26px; letter-spacing:-.2px}
p{margin:0 0 12px; color:var(--muted); line-height:1.6}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .grid-3{grid-template-columns:1fr} }
.feature{padding:16px; border-radius:16px; border:1px solid var(--line); background:rgba(0,0,0,.18)}
.feature h3{margin:0 0 6px; font-size:16px}
.section{padding:18px 0 48px}
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start;
}
@media (max-width: 980px){ .split{grid-template-columns:1fr} }
.list{
  margin:0; padding:0; list-style:none;
}
.list li{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:var(--muted);
}
.list li:last-child{border-bottom:0}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text); font-weight:600}
.carousel{
  position:relative;
  overflow:hidden;
  border-radius:var(--r);
}
.carousel-track{
  display:flex;
  gap:14px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:14px;
  scrollbar-width:thin;
  scroll-behavior:smooth;
}
.carousel-track::-webkit-scrollbar{height:10px}
.carousel-track::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12); border-radius:999px}
.book{
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align:start;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(0,0,0,.22);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.book .cover{aspect-ratio: 2/3; background:rgba(255,255,255,.03)}
.book .meta{padding:14px}
.book .meta h3{margin:0 0 6px; font-size:16px}
.book .meta p{margin:0 0 10px; font-size:14px}
.book .meta .row{display:flex; justify-content:space-between; gap:10px; align-items:center}
.book .meta .year{color:var(--muted); font-size:13px}
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(7,9,13,.7);
  backdrop-filter: blur(10px);
  cursor:pointer;
}
.carousel-btn:hover{background:rgba(255,255,255,.06)}
.carousel-btn.prev{left:10px}
.carousel-btn.next{right:10px}
.form{
  display:grid; gap:10px;
}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.help{color:var(--muted); font-size:13px}
.footer{
  border-top:1px solid var(--line);
  padding:24px 0 50px;
  color:var(--muted);
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.notice{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}
.success{border-color:rgba(0,255,120,.25)}
.error{border-color:rgba(255,45,45,.35)}
