:root{
  --bg0:#070911;
  --bg1:#0b0f1d;
  --border: rgba(255,255,255,0.12);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,0.72);
  --muted2: rgba(234,240,255,0.55);
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --r: 22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(110,120,255,0.25), transparent 55%),
    radial-gradient(1000px 600px at 80% 30%, rgba(0,220,255,0.18), transparent 55%),
    radial-gradient(900px 700px at 60% 90%, rgba(255,110,210,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1050px; margin:0 auto; padding:28px 18px}

/* Top nav */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  position:sticky;
  top:0;
  z-index:10;
  padding:14px 18px;
  margin:-28px -18px 0;
  backdrop-filter: blur(10px);
  background: rgba(7,9,17,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand{display:flex; align-items:center; gap:12px;}
.logo{
  font-weight:900;
  letter-spacing:0.18em;
  font-size:13px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
}
.sub{display:flex; flex-direction:column; line-height:1.05;}
.sub small{color:var(--muted2)}
.sub strong{font-weight:800}

.navlinks{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  color:var(--muted);
}
.pill:hover{background: rgba(255,255,255,0.08);}

/* Hero */
.hero{
  padding:34px 0 12px;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:18px;
  align-items:stretch;
}
.heroCard{
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
  position:relative;
}
.heroCard:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 240px at 20% 10%, rgba(110,120,255,0.35), transparent 55%);
  opacity:0.8;
  pointer-events:none;
}
.heroInner{position:relative}

.kicker{
  color:var(--muted);
  font-weight:600;
  letter-spacing:0.02em;
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: rgba(0,220,255,0.9);
  box-shadow: 0 0 18px rgba(0,220,255,0.55);
}

h1{
  margin:0 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.02;
  letter-spacing:-0.02em;
}
.lead{
  margin:0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 62ch;
}

.cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:18px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
  font-weight:700;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(0,220,255,0.95), rgba(110,120,255,0.95));
  color:#061018;
}
.btn.primary:hover{filter: brightness(1.05);}

.sideCard{
  border-radius: var(--r);
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.sideCard h3{margin:0 0 10px; font-size:16px; color:var(--muted)}
.statGrid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.stat{
  padding:14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
}
.stat b{display:block; font-size:18px}
.stat span{color:var(--muted2); font-size:12px}

/* Sections */
.section{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.card{
  border-radius: var(--r);
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  padding:18px;
}
.card h2{margin:0 0 10px; font-size:18px}
.card p{margin:0; color:var(--muted)}
.card ul{margin:0; padding-left:18px; color:var(--muted)}
.card li{margin:6px 0}

/* Gallery (16:9 tiles) */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.g{
  border-radius: var(--r);
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  position:relative;
  aspect-ratio: 16 / 9;
  min-height: 170px;
}
.g img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* Clickable feel */
img.zoomable{
  cursor: zoom-in;
  transition: transform .16s ease, filter .16s ease;
}
.g:hover img.zoomable{
  transform: scale(1.02);
  filter: brightness(1.03);
}

/* Subtle overlay */
.g:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.22));
  pointer-events:none;
}

.g.span6{grid-column: span 6;}
.g.span4{grid-column: span 4;}

.footer{
  margin-top:22px;
  padding:18px 0 10px;
  color:var(--muted2);
  text-align:center;
  font-size:13px;
}

/* Lightbox */
.lightbox{
  width: min(1150px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(8,10,18,0.72);
  color: var(--text);
  padding: 14px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  position: relative;
}
.lightbox::backdrop{
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}

.lbClose{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}
.lbClose:hover{ background: rgba(255,255,255,0.10); }

/* Prev/Next arrows */
.lbNav{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.lbNav:hover{ background: rgba(255,255,255,0.10); }
.lbPrev{ left: 12px; }
.lbNext{ right: 12px; }

.lbFigure{
  margin: 0;
  display: grid;
  gap: 10px;
  padding-top: 26px;
}
#lbImg{
  width: 100%;
  height: auto;
  max-height: calc(85vh - 80px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
#lbCap{
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .hero{grid-template-columns:1fr;}
  .nav{position:relative}
}
@media (max-width: 680px){
  .gallery{grid-template-columns: repeat(6, 1fr);}
  .g.span6,.g.span4{grid-column: span 6;}

  /* make arrows slightly smaller on phones */
  .lbNav{ width: 40px; height: 40px; font-size: 24px; }
}

.pageHeader p{ max-width: 72ch; }

.hint{
  color: var(--muted2);
  margin-top: 10px;
  font-size: 13px;
}

/* --- Get STLs page styling --- */

/* Store rows */
.storeGrid{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.storeItem{
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);

  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.storeItem:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.storeText{
  display: grid;
  gap: 2px;
}
.storeText b{ font-size: 14px; }
.storeSub{ color: var(--muted2); font-size: 12px; }

.storeLink{
  color: var(--text);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.storeLink:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}

/* Colored icons */
.storeIcon{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 16px rgba(255,255,255,0.08);
}
.storeIcon.creality{ background: #22c55e; }    /* green */
.storeIcon.cults{ background: #a855f7; }       /* purple */
.storeIcon.printables{ background: #f59e0b; }  /* orange */

/* Animated underline on hover/focus */
.link-underline{
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 12px calc(100% - 6px);
  background-repeat: no-repeat;
  transition: background-size .18s ease;
}
.link-underline:hover,
.link-underline:focus-visible{
  background-size: calc(100% - 24px) 2px;
}

/* 16:9 hero image block */
.stlHero{
  margin-top: 14px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  aspect-ratio: 16 / 9;
}
.stlHero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landing page upgrades */
.story p{ margin: 0 0 10px; color: var(--muted); }
.micro{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.tag{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(234,240,255,0.72);
  font-weight:700;
  font-size:12px;
}
.fineprint{ margin-top:12px; color: rgba(234,240,255,0.55); font-size:13px; }

.audienceGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.audienceGrid .card ul{ margin-top:10px; }
.audienceGrid .card p{ color: var(--muted); }

.featureGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 10px;
}
.feature{
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
}
.feature h3{ margin:0 0 6px; font-size: 16px; }
.feature p{ margin:0 0 12px; color: var(--muted); }

@media (max-width: 900px){
  .audienceGrid{ grid-template-columns: 1fr; }
  .featureGrid{ grid-template-columns: 1fr; }
}

/* --- Build Guide upgrades: embedded video + timeline --- */

.videoEmbed{
  margin-top: 14px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  aspect-ratio: 16 / 9;
}

.videoEmbed iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* Timeline layout */
.timeline{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.tStep{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: stretch;
}

.tRail{
  position: relative;
  display: grid;
  justify-items: center;
}

.tDot{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.tDot span{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(234,240,255,0.85);
}

/* The vertical line below the dot */
.tLine{
  width: 2px;
  flex: 1;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(56,189,248,0.75),
    rgba(168,85,247,0.55),
    rgba(255,255,255,0.08)
  );
}

/* End line fades out */
.tLine.end{
  background: linear-gradient(
    to bottom,
    rgba(56,189,248,0.6),
    rgba(168,85,247,0.25),
    rgba(255,255,255,0.0)
  );
}

.tCard{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.tCard h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.tCard p{
  margin: 0;
  color: var(--muted);
}

.tStep:hover .tCard{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.tStep:hover .tDot{
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.10), 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 700px){
  .tStep{ grid-template-columns: 38px 1fr; }
  .tDot{ width: 30px; height: 30px; }
}

/* --- Timeline icons --- */
.tHead{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tIcon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  flex: 0 0 auto;
}

.tIcon svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(234,240,255,0.85);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tCard h3{
  margin: 0;
}

.tStep:hover .tIcon{
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.10), 0 10px 30px rgba(0,0,0,0.22);
}

/* ---------- Code boxes (Command Prompt) ---------- */
.codebox{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.codebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.codelabel{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.codebox pre{
  margin: 0;
  padding: 14px 14px;
  overflow:auto;
}

.codebox code{
  display:block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}

.copybtn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.copybtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.copybtn:disabled{
  opacity: .7;
  cursor: default;
  transform: none;
}
