:root{
  --ink:#07131f;
  --panel:#10202f;
  --panel2:#0b1b29;
  --line:#1e3a50;
  --brass:#d9a441;
  --brass-soft:#f0ce85;
  --paper:#e9f0f6;
  --muted:#9fb6c9;
  --green:#39b58c;
  --red:#ef6b73
}

*{
  box-sizing:border-box
}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif
}

a{
  color:var(--brass-soft)
}

.shell{
  max-width:1120px;
  margin:auto;
  padding:28px 22px 72px
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--paper)
}

.brand img{
  width:40px;
  height:40px
}

.brand strong{
  font:700 1.5rem Georgia,serif
}

.tag{
  display:block;
  color:var(--muted);
  font-size:.78rem
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line)
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 28px
}

.nav a{
  padding:8px 12px;
  border-radius:9px;
  text-decoration:none;
  color:var(--muted)
}

.nav a:hover,
.nav a[aria-current="page"]{
  background:var(--panel);
  color:var(--brass-soft)
}

.crumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.88rem;
  margin-bottom:18px
}

.crumbs a{
  text-decoration:none
}

.hero{
  padding:28px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,var(--panel),#0a1723);
  margin-bottom:20px
}

h1,
h2,
h3{
  font-family:Georgia,serif;
  line-height:1.2
}

h1{
  font-size:clamp(2rem,5vw,3.5rem);
  margin:.15em 0
}

.eyebrow{
  color:var(--brass);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.78rem
}

.lede{
  max-width:760px;
  color:var(--muted);
  font-size:1.08rem
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}

.card{
  display:block;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  color:inherit;
  text-decoration:none
}

.card:hover{
  border-color:var(--brass)
}

.card h2,
.card h3{
  margin:0 0 7px
}

.price{
  font:700 1.65rem Georgia,serif;
  margin:12px 0 2px
}

.meta,
.note{
  color:var(--muted);
  font-size:.88rem
}

.up{
  color:var(--green)
}

.down{
  color:var(--red)
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:18px 0
}

.stat{
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px
}

.stat b{
  display:block;
  font-size:1.25rem
}

.stat span{
  color:var(--muted);
  font-size:.8rem
}

.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  margin:16px 0
}

.panel h2{
  margin-top:0
}

.chart{
  width:100%;
  height:auto;
  background:var(--panel2);
  border-radius:12px;
  border:1px solid var(--line)
}

.legend{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:.82rem;
  margin-top:6px
}

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

.formula{
  font:600 1rem ui-monospace,SFMono-Regular,Consolas,monospace;
  color:var(--brass-soft);
  padding:12px;
  background:var(--panel2);
  border-radius:10px;
  overflow:auto
}

table{
  width:100%;
  border-collapse:collapse
}

th,
td{
  text-align:left;
  padding:10px;
  border-bottom:1px solid var(--line)
}

th{
  color:var(--muted);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.05em
}

.status{
  padding:10px 12px;
  border-radius:10px;
  background:var(--panel2);
  color:var(--muted);
  margin:12px 0
}

.cta{
  display:inline-block;
  background:var(--brass);
  color:#211703!important;
  padding:10px 15px;
  border-radius:9px;
  text-decoration:none;
  font-weight:700
}

.disclaimer{
  border-left:3px solid var(--brass);
  padding-left:14px;
  color:var(--muted);
  font-size:.88rem
}

.footer{
  border-top:1px solid var(--line);
  margin-top:34px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.85rem
}

@media(max-width:760px){
  .topbar{
    align-items:flex-start
  }

  .grid,
  .stats,
  .method,
  .widget-grid.three,
  .widget-grid.two,
  .driver-grid,
  .calculator-layout,
  .form-grid{
    grid-template-columns:1fr
  }

  .shell{
    padding:20px 14px 56px
  }

  .hero{
    padding:21px
  }

  .nav{
    gap:2px
  }

  .nav a{
    padding:7px 8px
  }
}
