:root {
  --bg: #07090c;
  --bg-2: #0d1117;
  --bg-3: #121820;
  --ink: #e8edf2;
  --muted: #8b98a8;
  --line: rgba(232, 237, 242, 0.1);
  --accent: #00e5c0;
  --accent-2: #7c5cff;
  --warn: #ffb020;
  --radius: 14px;
  --nav-h: 72px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.08) 3px 4px
  );
  opacity: 0.25;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.foot-logo img {
  height: 120px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 48px 7vw 72px;
  position: relative;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 192, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 192, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

h3 { font-size: 1.15rem; margin-bottom: 8px; }

.lede {
  margin-top: 18px;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.08rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #04110e;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.hero-meta {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.hero-stage {
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(0, 229, 192, 0.25);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.orbit-ring.delay {
  width: 460px;
  height: 460px;
  animation-duration: 42s;
  animation-direction: reverse;
  border-color: rgba(124, 92, 255, 0.22);
}

.printer {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 300px;
}

.printer-frame {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(232, 237, 242, 0.18);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.9), rgba(7, 9, 12, 0.4));
  overflow: hidden;
}

.printer-rail {
  position: absolute;
  top: 18px;
  left: 12px;
  right: 12px;
  height: 6px;
  background: #2a3440;
}

.printer-head {
  position: absolute;
  top: 10px;
  width: 36px;
  height: 22px;
  background: var(--accent);
  border-radius: 3px;
  animation: head 4.5s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(0, 229, 192, 0.35);
}

.printer-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 3px;
  height: 18px;
  background: #c9d4de;
  transform: translateX(-50%);
}

.printer-bed {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 10px;
  background: #1b2430;
  border-radius: 2px;
}

.print-object {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  perspective: 600px;
}

.cube {
  width: 78px;
  height: 78px;
  position: relative;
  transform-style: preserve-3d;
  animation: spinY 8s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 229, 192, 0.55);
  background: rgba(0, 229, 192, 0.08);
}

.front  { transform: translateZ(39px); }
.back   { transform: rotateY(180deg) translateZ(39px); }
.left   { transform: rotateY(-90deg) translateZ(39px); }
.right  { transform: rotateY(90deg) translateZ(39px); }
.top    { transform: rotateX(90deg) translateZ(39px); }
.bottom { transform: rotateX(-90deg) translateZ(39px); }

.layer-glow {
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 42px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: layer 4.5s ease-in-out infinite;
}

.strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip p { animation: marquee 28s linear infinite; }

.section {
  padding: 88px 7vw;
}

.section.alt { background: var(--bg-2); }

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p:last-child { color: var(--muted); }

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

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.card.featured {
  border-color: rgba(0, 229, 192, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 229, 192, 0.12), 0 20px 50px rgba(0, 0, 0, 0.25);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #04110e;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
}

.card-icon.fdm { background: linear-gradient(135deg, #00e5c0, #147a6a); }
.card-icon.sla { background: linear-gradient(135deg, #7c5cff, #3a2a8a); }
.card-icon.sls { background: linear-gradient(135deg, #ffb020, #8a5a10); }

.card p { color: var(--muted); margin-bottom: 14px; }
.card ul { color: var(--muted); padding-left: 18px; font-size: 0.92rem; }
.card li + li { margin-top: 6px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
}

.step-n {
  font-family: var(--mono);
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.steps p { color: var(--muted); }

.mat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.mat {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.mat.active { border-color: var(--accent); }
.mat small { color: var(--muted); }

.swatch {
  width: 100%;
  height: 8px;
  border-radius: 99px;
}

.swatch.pla { background: #4ade80; }
.swatch.petg { background: #38bdf8; }
.swatch.nylon { background: #cbd5e1; }
.swatch.tpu { background: #f472b6; }
.swatch.resina { background: #a78bfa; }
.swatch.cf { background: #64748b; }

.mat-detail {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: var(--bg-3);
}

.mat-detail p { color: var(--muted); }
.mat-detail dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mat-detail dt { font-size: 0.75rem; color: var(--muted); }
.mat-detail dd { font-weight: 600; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
}

.chip.active {
  background: var(--accent);
  color: #04110e;
  border-color: var(--accent);
  font-weight: 600;
}

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

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.shot.hidden { display: none; }
.shot.tall { grid-row: span 2; }

.shot-visual {
  min-height: 180px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 229, 192, 0.35), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(124, 92, 255, 0.3), transparent 42%),
    linear-gradient(160deg, #151b24, #0b0f14);
}

.shot.tall .shot-visual { min-height: 400px; }

.v1 { background-image: linear-gradient(135deg, #0b3d36, #1a2a22); }
.v2 { background-image: linear-gradient(180deg, #2a1a4a, #0d1117); }
.v3 { background-image: linear-gradient(135deg, #2a2418, #111318); }
.v4 { background-image: linear-gradient(135deg, #1a3040, #0d1117); }
.v5 { background-image: linear-gradient(135deg, #3a1a2a, #111318); }
.v6 { background-image: linear-gradient(135deg, #1a2a3a, #0b0f14); }

.shot figcaption {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shot span { color: var(--muted); font-size: 0.85rem; }

.quote-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.quote-notes {
  margin-top: 22px;
  color: var(--muted);
  padding-left: 18px;
}

.quote {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.quote label, .contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.quote input, .quote select,
.contact-form input, .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}

.quote input:focus, .quote select:focus,
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quote-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
}

.quote-out span { display: block; color: var(--muted); font-size: 0.8rem; }
.quote-out strong { font-size: 1.4rem; color: var(--accent); }

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

blockquote {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

blockquote p { margin-bottom: 16px; }
blockquote footer { color: var(--muted); font-size: 0.88rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--muted); max-width: 70ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.contact-list span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.form-ok { color: var(--accent); font-size: 0.9rem; }

.foot {
  padding: 36px 7vw 24px;
  border-top: 1px solid var(--line);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes head {
  0%, 100% { left: 18px; }
  50% { left: calc(100% - 54px); }
}
@keyframes layer {
  0%, 100% { opacity: 0.35; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero, .cards, .steps, .gallery, .quotes, .quote-wrap, .contact-grid, .mat-grid, .mat-detail {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 28px; }
  .hero-stage { height: 340px; }
  .shot.tall { grid-row: auto; }
  .shot.tall .shot-visual { min-height: 220px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top, .foot-bot { flex-direction: column; }
}
