/* Frame landing: same night-sky shell as the other cubbies (Slumber), warm
   amber accent, no decoration. Tool-local styles only; nothing is built. */

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #fcd34d;
  --accent-2: #fbbf24;
  --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; color-scheme: dark; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- floating background blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 34rem; height: 34rem; background: var(--accent); top: -12rem; left: -10rem; }
.blob.b2 { width: 28rem; height: 28rem; background: var(--accent-2); bottom: -10rem; right: -8rem; animation-delay: -8s; }
.blob.b3 { width: 20rem; height: 20rem; background: #f59e0b; top: 40%; left: 55%; animation-delay: -15s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3rem, 2rem) scale(1.15); }
}

/* ---------- entrance animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out both; }
.fade-up.d1 { animation-delay: 0.12s; }
.fade-up.d2 { animation-delay: 0.24s; }
.fade-up.d3 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .blob, .fade-up, .float { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { color: var(--accent); }
nav { display: flex; gap: 1.1rem; font-family: ui-monospace, monospace; font-size: 0.85rem; align-items: center; }
nav a { color: var(--muted); }
nav a:hover { color: var(--accent); }
.nav-home { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-ico { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--muted); display: block; }
.nav-home:hover .nav-ico { fill: var(--accent); stroke: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 4.5rem;
}
.hero h1 {
  text-wrap: balance;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero p.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin-bottom: 2rem; }
.tagline { font-family: ui-monospace, monospace; color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #1c1917;
  box-shadow: 0 8px 24px rgba(252, 211, 77, 0.25);
}
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.version-note { font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- images (renders and screenshots) ---------- */
.shot {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 0.55rem;
  overflow: hidden;
}
.shot img { width: 100%; height: auto; display: block; border-radius: 0.7rem; }
.shot.proof { max-width: 34rem; margin: 2.4rem auto 0; }
.proof-stack { display: grid; gap: 1.5rem; margin-top: 2.2rem; margin-bottom: 1rem; }
.proof-stack + .shot.proof { margin-top: 0.6rem; }
.shot figcaption, figure.shot figcaption { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); padding: 0.6rem 0.45rem 0.15rem; line-height: 1.5; }
.hero .shot { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.8rem); }
}


/* ---------- sections ---------- */
section.block { padding: 3.5rem 0; }
h2.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
p.section-lede { color: var(--muted); margin-bottom: 2.2rem; max-width: 42rem; line-height: 1.65; }
.prose { color: var(--muted); line-height: 1.7; max-width: 44rem; }
.prose + .prose { margin-top: 0.9rem; }
.prose.gap { margin-top: 1.2rem; }
.prose strong, li strong { color: var(--text); font-weight: 600; }
code { font-family: ui-monospace, monospace; font-size: 0.88em; color: var(--accent); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.5rem 1.3rem;
  background: rgba(30, 41, 59, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar .emoji { font-size: 1.8rem; margin-bottom: 0.7rem; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.pillar p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.15rem 1.1rem;
  background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.feature .emoji { font-size: 1.4rem; display: block; margin-bottom: 0.5rem; }
.feature h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }

/* ---------- embedded customizer ---------- */
/* Breaks out of the 60rem text column to ~96vw. Used by the playground (it
   splits its width in thirds, and at column width the customizer panel
   overflows sideways) and by figures with small text (dimension callouts, UI
   screenshots), which are unreadable at column width. Centred with margins,
   not transform: .fade-up owns transform. */
.pg-shell, .breakout { width: min(96vw, 90rem); margin-left: calc(50% - min(48vw, 45rem)); }
.pg-shell {
  position: relative;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.pg-shell iframe { display: block; width: 100%; height: clamp(34rem, 78vh, 46rem); border: 0; pointer-events: none; }
.pg-activate {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: rgba(15, 23, 42, 0.55);
}
.pg-activate span {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #1c1917;
  font-weight: 600;
}
.pg-shell.is-active iframe { pointer-events: auto; }
.pg-shell.is-active .pg-activate { display: none; }
.pg-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- numbered how-to with screenshots ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2.2rem; margin-top: 1rem; }
.steps li { counter-increment: step; display: grid; gap: 1.1rem; }
.step-text { max-width: 46rem; }
.steps figure.shot { margin-bottom: 1rem; }
.steps figure.shot.compact { width: auto; max-width: 34rem; margin: 0.3rem 0 1rem; }
.step-text::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1c1917;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.step-text h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-text p { color: var(--muted); line-height: 1.65; font-size: 0.95rem; }

ol.plain { list-style: decimal; padding-left: 1.4rem; color: var(--muted); line-height: 1.7; max-width: 44rem; display: grid; gap: 0.5rem; }

/* ---------- quotes: the directions ---------- */
.directions { list-style: none; display: grid; gap: 0.8rem; margin: 0.5rem 0 0; }
.directions li {
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0 0.8rem 0.8rem 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.93rem;
}
.directions q { color: var(--text); font-style: italic; font-weight: 600; font-size: 1.02rem; }
.directions .why { display: block; margin-top: 0.25rem; font-size: 0.82rem; }
h3.sub { font-size: 1.1rem; margin: 2.2rem 0 0.6rem; }

/* ---------- release timeline ---------- */
.timeline { border-left: 2px solid var(--border); margin-left: 0.5rem; padding-left: 1.6rem; display: grid; gap: 1.4rem; }
.release { position: relative; }
.release::before {
  content: '';
  position: absolute;
  left: calc(-1.6rem - 7px);
  top: 0.3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.release .tag { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--accent); }
.release h4 { font-size: 1rem; margin: 0.15rem 0 0.3rem; }
.release p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ---------- lessons and checklist ---------- */
.lessons, .check { list-style: none; display: grid; gap: 0.9rem; max-width: 46rem; }
.lessons li, .check li { color: var(--muted); line-height: 1.65; font-size: 0.95rem; padding-left: 1.6rem; position: relative; }
.lessons li::before, .check li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}
.lessons li::before { content: '→'; }
.check li::before { content: '✓'; }

/* ---------- closing card ---------- */
.download {
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2.6rem 2.2rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(252, 211, 77, 0.08), transparent 55%),
    rgba(30, 41, 59, 0.5);
}
.download h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.download p { color: var(--muted); margin-bottom: 1.8rem; line-height: 1.6; }
.download .req { font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--muted); margin-top: 1rem; }

footer {
  margin-top: 4rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}
footer .fine { margin: 0.7rem auto 0; font-size: 0.68rem; color: #64748b; max-width: 46rem; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 34rem) {
  .features { grid-template-columns: 1fr; }
  .pg-shell iframe { height: 80vh; }
}

/* hero collage + project downloads (CAD-with-AI update) */
.collage{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.collage a{display:block;line-height:0}
.collage img{width:100%;height:auto;border-radius:8px;display:block}
.stl-list{list-style:none;padding:0;margin:12px 0}
.stl-list li{margin:8px 0;font-size:.95rem}
.stl-list a{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.showcase{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.showcase .shot{margin:0}
.showcase img{width:100%;height:auto;border-radius:8px;display:block}
.showcase figcaption{font-size:.78rem;color:var(--muted,#94a3b8);margin-top:6px}
