:root{
  --bg: #0b0c10;
  --panel: #12141b;
  --panel2: #0f1117;
  --text: #f2f4f8;
  --muted: #a6adbb;
  --line: rgba(255,255,255,.10);
  --pill: rgba(255,255,255,.08);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(255,255,255,.06), transparent),
              radial-gradient(900px 700px at 90% 20%, rgba(255,255,255,.05), transparent),
              var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
}

.wrap{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.65);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 6px rgba(255,255,255,.10);
}
.brand__title{ font-weight: 650; letter-spacing: .2px; }
.brand__sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nav a{
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.hero{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 38px 0 22px;
}
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.h1{
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.6px;
}
.lead{
  margin: 0 0 16px;
  color: rgba(242,244,248,.85);
  font-size: 16px;
  max-width: 62ch;
}

.pillrow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill{
  font-size: 12px;
  color: var(--text);
  background: var(--pill);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
}

.section{
  padding: 26px 0;
}
.section__head{
  margin-bottom: 14px;
}
.h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card__label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid--two{
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .grid--two{ grid-template-columns: 1fr; }
}

.spec__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tag{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.spec__name{
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.spec__sample{
  font-size: 26px;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.spec__detail{ font-size: 13px; }

.lang__big{
  font-size: 28px;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.lang__body{
  color: rgba(242,244,248,.85);
  font-size: 14px;
}
.rtl{ text-align: right; }

.controls{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 700px){
  .controls{ grid-template-columns: 1fr; }
}
.control{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.control span:first-child{
  width: 64px;
  color: var(--muted);
  font-size: 13px;
}
.control input[type="range"]{
  width: 100%;
}
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: rgba(242,244,248,.85);
  width: 44px;
  text-align: right;
}

.var-sample{
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.6px;
  padding: 12px 6px 6px;
  /* allow JS to scale horizontally as a visual fallback for width axis */
  display: inline-block;
  transform-origin: left center;
  transition: transform 120ms ease;
  will-change: transform;
}

.steps{
  margin: 0;
  padding-left: 18px;
  color: rgba(242,244,248,.9);
}
.steps li{ margin: 10px 0; }

.callout{
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.callout__title{
  font-weight: 650;
  margin-bottom: 6px;
}
.callout__body{ color: rgba(242,244,248,.86); }

.footer{
  padding: 26px 0 40px;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

/* =========================================================
   IMPORTANT: Map these to your kit’s font-family names
   (Replace the names below with the exact family names)
   ========================================================= */
.font-a{ font-family: "ApercuPro", system-ui, sans-serif; }
.font-b{ font-family: "Knockout26", system-ui, sans-serif; }


/* Variable font family used in the slider demo */
.font-var{
  font-family: "SofiaPro", system-ui, sans-serif;
  font-variation-settings: "wght" 400, "wdth" 100;
}
