:root {
  --bg: #0d1117;
  --panel: #121826;
  --panel-2: #182033;
  --text: #f7fafc;
  --muted: #a8b3c7;
  --brand: #6ee7f9;
  --brand-2: #a78bfa;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(110, 231, 249, 0.18), transparent 30%),
              radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 36%),
              var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(13, 17, 23, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #071019;
  font-weight: 900;
}

.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.language-select, .filters input, .filters select, .quote-form input, .quote-form textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

.language-select option, .filters select option { color: #0d1117; }

.cart-button, .button, .icon-button, .menu-toggle {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #071019;
  font-weight: 800;
  font-size: 0.85rem;
}

.menu-toggle { display: none; color: var(--text); background: transparent; font-size: 1.5rem; }

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center; }
.eyebrow { color: var(--brand); text-transform: uppercase; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 5.8rem); line-height: 0.92; letter-spacing: -0.08em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.06em; margin-bottom: 14px; }
h3 { margin-bottom: 10px; }
.hero-text, .section-heading p, .custom-section p, .contact-section p, .footer p { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #071019; }
.button.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--line); }
.button.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255, 255, 255, 0.04); }

.hero-card {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(150deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-card:before { content: ""; position: absolute; inset: 15%; background: radial-gradient(circle, rgba(110, 231, 249, 0.25), transparent 60%); filter: blur(10px); }
.printer-visual { position: relative; min-height: 360px; }
.cube { position: absolute; width: 130px; height: 130px; border-radius: 28px; background: linear-gradient(135deg, rgba(110,231,249,0.95), rgba(167,139,250,0.85)); box-shadow: 0 24px 60px rgba(110,231,249,0.18); transform: rotate(18deg) skew(-6deg); }
.cube-a { left: 18%; top: 16%; }
.cube-b { right: 16%; top: 38%; width: 170px; height: 170px; opacity: 0.9; }
.cube-c { left: 36%; bottom: 2%; width: 95px; height: 95px; opacity: 0.75; }
.hero-stat { position: relative; border: 1px solid var(--line); background: rgba(13,17,23,0.68); border-radius: 24px; padding: 20px; }
.hero-stat strong { display: block; margin-bottom: 6px; }
.hero-stat span { color: var(--muted); }

.section { padding: 88px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading.simple { display: block; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters input { min-width: 240px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.055); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,0.22); display: flex; flex-direction: column; }
.product-image { aspect-ratio: 4 / 3; background: var(--panel-2); object-fit: cover; width: 100%; }
.product-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 9px; background: rgba(110, 231, 249, 0.12); color: var(--brand); font-size: 0.78rem; font-weight: 800; }
.product-description { color: var(--muted); line-height: 1.6; flex: 1; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 1.25rem; font-weight: 900; }
.add-button { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--text); color: #071019; font-weight: 900; cursor: pointer; }

.custom-section { padding: 88px 0; background: rgba(255, 255, 255, 0.04); border-block: 1px solid var(--line); }
.custom-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.quote-form { display: grid; gap: 16px; border: 1px solid var(--line); background: rgba(13,17,23,0.5); border-radius: var(--radius); padding: 24px; }
.quote-form label { display: grid; gap: 8px; color: var(--muted); }
.quote-form textarea { resize: vertical; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps article { border: 1px solid var(--line); background: rgba(255,255,255,0.055); border-radius: var(--radius); padding: 24px; }
.steps span { color: var(--brand); font-weight: 900; }
.steps p { color: var(--muted); line-height: 1.6; }

.contact-section { padding: 72px 0 96px; }
.contact-card { border: 1px solid var(--line); border-radius: 32px; padding: 34px; background: linear-gradient(135deg, rgba(110,231,249,0.14), rgba(167,139,250,0.11)); display: flex; justify-content: space-between; align-items: center; gap: 24px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.cart-drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: rgba(0,0,0,0); transition: background 0.25s ease; }
.cart-drawer.open { pointer-events: auto; background: rgba(0,0,0,0.55); }
.cart-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(460px, 100%); background: #0f1524; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header { padding: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.icon-button { background: rgba(255,255,255,0.08); color: var(--text); border-radius: 999px; width: 40px; height: 40px; font-size: 1.4rem; }
.cart-items { flex: 1; overflow: auto; padding: 18px; display: grid; gap: 14px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,0.05); }
.cart-item small { color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.cart-footer { border-top: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.cart-note { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.hidden { display: none !important; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 76px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,17,23,0.98); }
  .nav-links.open { display: flex; }
  .hero-grid, .custom-grid { grid-template-columns: 1fr; }
  .product-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-heading, .contact-card { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { padding-top: 62px; }
  .hero-card { min-height: 360px; }
  .printer-visual { min-height: 230px; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .filters, .filters input, .filters select { width: 100%; }
  .hero-actions .button { width: 100%; }
}
