:root {
  --bg: #0b0e14;
  --surface: #121722;
  --surface-2: #192030;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --cyan: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: -3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #fff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: #232c40;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-whatsapp {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.btn-whatsapp:hover { background: #15803d; transform: translateY(-1px); }
.btn-sm { padding: 9px 15px; font-size: 0.85rem; border-radius: 10px; }

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 76px;
  background:
    radial-gradient(900px 460px at 15% 0%, rgba(249, 115, 22, 0.14), transparent 60%),
    radial-gradient(800px 420px at 90% 10%, rgba(56, 189, 248, 0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 20px;
}
.at-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ef4444 0 33%, #ffffff 33% 66%, #ef4444 66% 100%);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.3vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  font-weight: 900;
}
.hero h1 span {
  background: linear-gradient(90deg, #fb923c, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.hero-spec {
  background: var(--surface);
  padding: 16px 18px;
}
.hero-spec strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.hero-spec span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 76px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* Interactive STL Calculator */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.mode-tab {
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.16s ease;
}
.mode-tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.viewer-box {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1d2638 0%, #0c1018 100%);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}
#stl-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#stl-canvas:active { cursor: grabbing; }
.viewer-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 8px;
}
.hud-pill {
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}
.hud-pill.ok { border-color: rgba(34, 197, 94, 0.45); color: #86efac; }
.hud-pill.warn { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.viewer-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.65);
  background: rgba(11, 14, 20, 0.65);
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
}

.dropzone {
  display: block;
  border: 2px dashed rgba(249, 115, 22, 0.45);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  background: rgba(249, 115, 22, 0.05);
  cursor: pointer;
  transition: all 0.16s ease;
  margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--accent);
}
.dropzone strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.dropzone span { font-size: 0.8rem; color: var(--muted); }

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.demo-row small { color: var(--muted); font-size: 0.78rem; margin-right: 4px; }
.demo-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-btn:hover, .demo-btn.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}
.metric label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric strong {
  font-size: 0.95rem;
  color: var(--text);
}

/* Configurator Form */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tech-card {
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 13px;
  padding: 13px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: all 0.16s ease;
}
.tech-card strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.tech-card span { display: block; font-size: 0.76rem; color: var(--muted); }
.tech-card.active {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}
.tech-card.active.resin {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
}

select, input[type="text"], input[type="number"], input[type="url"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }

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

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
}
.swatch i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
}
.swatch.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(249, 115, 22, 0.12);
}

.price-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 15px;
  padding: 18px;
  margin: 18px 0;
}
.price-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.price-main {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.price-note {
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.cta-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 26px;
}
.compare-card.resin-card { border-color: rgba(56, 189, 248, 0.35); }
.compare-card.fdm-card { border-color: rgba(249, 115, 22, 0.35); }
.badge-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.badge-fdm { background: rgba(249, 115, 22, 0.16); color: #fdba74; }
.badge-resin { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.compare-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.compare-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: #e2e8f0;
}
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.compare-photo {
  max-width: 820px;
  margin: 0 auto 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.compare-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Video Showcase */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.video-frame {
  background: #05070c;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-meta {
  padding: 18px 20px 22px;
}
.video-meta h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.video-meta p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Use Cases */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { font-size: 0.88rem; color: var(--muted); }

/* Steps */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
}
details.faq[open] summary::after { content: "−"; }
details.faq p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.hidden { display: none !important; }

@media (max-width: 960px) {
  .hero-grid, .calc-wrap, .compare-grid, .video-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; gap: 10px; }
  .brand { font-size: 1rem; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 0.85rem; }
  .btn { width: 100%; min-height: 46px; }
  .nav .btn-sm { width: auto; min-height: 36px; padding: 8px 12px; font-size: 0.8rem; white-space: nowrap; }
  .cards-4, .tech-grid, .two-col, .cta-stack, .metrics-grid, .hero-specs { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 46px; }
  .hero h1 { font-size: 1.95rem; }
  .section { padding: 52px 0; }
  .panel { padding: 16px; }
  .viewer-box { height: 270px; }
  #stl-canvas { touch-action: none; }
  .video-card { max-width: 380px; margin: 0 auto; width: 100%; }
  .price-main { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
