:root{
  --bg:#1a0f08;
  --panel:#2a160c;
  --panel-2:#351d10;
  --panel-3:#23130b;
  --border:rgba(220,145,70,.28);
  --border-strong:rgba(240,179,91,.48);
  --accent:#d9953d;
  --accent-2:#f0b35b;
  --text:#fff4e6;
  --muted:#d8b892;
  --muted-2:#b98b5d;
  --shadow:0 16px 38px rgba(0,0,0,.34);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:system-ui, "Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(217,149,61,.15), transparent 24%),
    radial-gradient(circle at top right, rgba(92,54,26,.28), transparent 26%),
    linear-gradient(180deg, #140b06, var(--bg));
  line-height:1.7;
}

a{
  color:var(--accent-2);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

img{
  max-width:100%;
  display:block;
}

.wrap{
  width:min(1240px, calc(100% - 24px));
  margin:0 auto;
  padding:14px 0 28px;
}

.shell,
.card,
.hero-card,
.meta-card{
  background:linear-gradient(180deg, rgba(53,29,16,.96), rgba(36,20,12,.98));
  border:1px solid var(--border);
  border-radius:26px;
  box-shadow:var(--shadow);
}

.topbar{
  padding:14px 18px;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap:16px;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-icon{
  width:58px;
  height:58px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  object-fit:cover;
  padding:4px;
}

.eyebrow{
  margin:0 0 4px;
  color:var(--accent-2);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.brand-title{
  margin:0;
  color:var(--text);
  font-family:"Orbitron", system-ui, "Segoe UI", Arial, sans-serif;
  font-size:1.5rem;
  letter-spacing:.06em;
}

.brand-sub{
  margin:2px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

.status-box{
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.14);
}

.status-box strong{
  display:block;
  margin-bottom:4px;
  color:var(--text);
}

.status-box span{
  color:var(--muted);
}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.toolbar a,
.toolbar strong,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.14);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.toolbar a:hover,
.btn:hover{
  transform:translateY(-1px);
  border-color:var(--border-strong);
  background:rgba(240,179,91,.08);
}

.toolbar strong{
  background:rgba(217,149,61,.16);
  color:var(--accent-2);
}

.page-hero{
  margin-top:16px;
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
  gap:18px;
  align-items:stretch;
}

.hero-card,
.meta-card,
.card{
  position:relative;
  overflow:hidden;
  padding:22px;
}

.hero-card::before,
.meta-card::before,
.card::before{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(240,179,91,.14);
  border-radius:18px;
  pointer-events:none;
}

.hero-card > *,
.meta-card > *,
.card > *{
  position:relative;
  z-index:1;
}

.hero-card{
  display:flex;
  flex-direction:column;
}

.hero-title{
  margin:8px 0 12px;
  color:var(--text);
  font-family:"Exo 2", system-ui, "Segoe UI", Arial, sans-serif;
  font-size:clamp(2.25rem, 4.6vw, 4.1rem);
  line-height:1.04;
  font-weight:700;
}

.hero-copy,
.card p,
.card li,
.meta-card p,
.meta-card li{
  color:var(--muted);
  font-size:1.02rem;
}

.hero-copy{
  margin:0 0 16px;
}

.hero-copy:last-of-type{
  margin-bottom:0;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(240,179,91,.24);
  background:rgba(240,179,91,.08);
  color:var(--accent-2);
  font-size:.92rem;
  font-weight:700;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.btn.primary{
  background:linear-gradient(180deg, var(--accent), #b87731);
  border-color:var(--accent);
  color:#1b110a;
}

.hero-meta{
  display:grid;
  gap:16px;
}

.meta-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.meta-item{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.12);
}

.meta-item strong{
  display:block;
  margin-bottom:4px;
  color:var(--text);
}

.meta-item span,
.meta-item p{
  color:var(--muted);
  margin:0;
}

.meta-card a,
.card a{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.content-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  align-items:start;
}

.full-span{
  grid-column:1 / -1;
}

.content-grid.full-after-hero{
  grid-column:1 / -1;
}

.section-title{
  margin:0 0 12px;
  color:var(--text);
  font-family:"Exo 2", system-ui, "Segoe UI", Arial, sans-serif;
  font-size:1.8rem;
  line-height:1.1;
  font-weight:700;
}

.feature-list{
  margin:0;
  padding-left:22px;
}

.feature-list li + li{
  margin-top:8px;
}

.prose p + p{
  margin-top:14px;
}

.stack{
  display:grid;
  gap:14px;
}

.note{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(240,179,91,.14);
  color:var(--muted-2);
  font-size:.95rem;
  font-weight:700;
}

.link-panel{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.12);
}

.link-panel strong{
  display:block;
  color:var(--text);
  margin-bottom:6px;
}

footer{
  margin-top:18px;
  padding:18px 20px;
  color:var(--muted);
  font-size:.98rem;
}

@media (max-width: 1080px){
  .topbar{
    grid-template-columns:1fr;
  }

  .toolbar{
    justify-content:flex-start;
  }

  .page-hero,
  .content-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 780px){
  .wrap{
    width:min(100% - 18px, 100%);
  }

  .topbar,
  .hero-card,
  .meta-card,
  .card{
    padding:16px;
  }

  .meta-grid{
    grid-template-columns:1fr;
  }

  .actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .hero-title{
    font-size:2.2rem;
  }
}
