:root {
  --bg: #0b0f14;
  --bg-alt: #11161d;
  --card: #161b22;
  --card-soft: #1c232d;
  --text: #e6edf3;
  --text-muted: #a8b3c2;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #2ea8ff;
  --accent-hover: #58bbff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-lg: 24px;
  --container: 100%;
  --page-padding: clamp(16px, 2.8vw, 40px);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--bg-alt), #0d1218);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-tag,
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-heading p,
.contact-info p,
.info-card p,
.material-card p,
.hero-description {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a,
.header-phone,
.mobile-nav a {
  color: var(--text);
  transition: var(--transition);
}

.main-nav a:hover,
.header-phone:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-phone {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.mobile-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  background:
    radial-gradient(circle at 10% 20%, rgba(46, 168, 255, 0.16), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(46, 168, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #0d1218 0%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero-description {
  font-size: 1.08rem;
  max-width: 720px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.hero-visual {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(46, 168, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

#printerCanvas {
  width: 100%;
  height: 100%;
  position: relative;
}

#printerCanvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.tech-card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.tech-drawing {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 26px;
}

.hexagon {
  display: grid;
  place-items: center;
}

.hexagon::before,
.hexagon::after,
.hexagon span {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  border: 2px solid rgba(46, 168, 255, 0.95);
}

.hexagon::after {
  inset: 24px;
  border-color: rgba(255, 255, 255, 0.3);
}

.hexagon span {
  inset: 56px;
  border-color: rgba(46, 168, 255, 0.55);
}

.tech-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.tech-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 168, 255, 0.9), rgba(255,255,255,0.08));
}

.tech-lines span:nth-child(2) {
  width: 85%;
}

.tech-lines span:nth-child(3) {
  width: 68%;
}

.tech-card p {
  color: var(--text-muted);
  text-align: center;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.material-card,
.contact-form,
.contact-box {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 32px 28px;
}

.info-card h3,
.material-card h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.card-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(46, 168, 255, 0.35);
  border-radius: 18px;
  margin-bottom: 22px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(46, 168, 255, 0.12), rgba(46, 168, 255, 0.02));
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
}

.icon-speed::before {
  width: 34px;
  height: 2px;
  background: var(--accent);
  top: 24px;
  left: 18px;
  box-shadow: 0 10px 0 var(--accent), 0 20px 0 rgba(46, 168, 255, 0.45);
}

.icon-speed::after {
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  right: 18px;
  top: 26px;
}

.icon-geometry::before {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  top: 18px;
  left: 18px;
  transform: rotate(45deg);
}

.icon-geometry::after {
  width: 12px;
  height: 12px;
  background: var(--accent);
  top: 30px;
  left: 30px;
  border-radius: 50%;
}

.icon-tooling::before {
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 18px;
  left: 20px;
}

.icon-tooling::after {
  width: 12px;
  height: 24px;
  border: 2px solid var(--accent);
  border-left: none;
  border-radius: 0 8px 8px 0;
  top: 22px;
  right: 18px;
}

.icon-prototype::before,
.icon-spare::before,
.icon-function::before,
.icon-series::before {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  top: 16px;
  left: 16px;
}

.icon-prototype::before {
  clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%);
}

.icon-spare::before {
  border-radius: 50%;
}

.icon-function::before {
  transform: rotate(45deg);
}

.icon-series::before {
  width: 12px;
  height: 12px;
  left: 14px;
  top: 16px;
  box-shadow:
    18px 0 0 0 var(--accent),
    36px 0 0 0 var(--accent),
    0 18px 0 0 var(--accent),
    18px 18px 0 0 var(--accent),
    36px 18px 0 0 var(--accent);
  background: var(--accent);
  border: none;
}

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

.material-card {
  padding: 30px 24px;
  min-height: 180px;
}

.material-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
}

.material-card.wide {
  grid-column: span 2;
}

.material-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-drawing {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(46, 168, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #11161d, #0c1015);
  position: relative;
}

.drawing-main::before,
.drawing-main::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.drawing-main::before {
  width: 180px;
  height: 180px;
  border-radius: 26px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawing-main::after {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(46, 168, 255, 0.75);
}

.contact-section {
  background:
    radial-gradient(circle at top right, rgba(46, 168, 255, 0.12), transparent 25%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.contact-box {
  padding: 24px;
  margin: 28px 0 24px;
}

.contact-box h3 {
  margin-bottom: 10px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #0f141a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(46, 168, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(46, 168, 255, 0.12);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #090d12;
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom p {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0 24px;
}

@media (max-width: 1100px) {
  .hero-content,
  .contact-grid,
  .materials-grid,
  .footer-grid,
  .cards-grid.four {
    grid-template-columns: 1fr;
  }

  .cards-grid.three {
    grid-template-columns: 1fr;
  }

  .material-card.large,
  .material-card.wide {
    grid-column: span 1;
  }

  .material-card.large {
    grid-template-columns: 1fr;
  }

  .material-drawing {
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-phone {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .logo img {
    height: 52px;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tech-card,
  .info-card,
  .material-card,
  .contact-form,
  .contact-box {
    border-radius: 16px;
  }

  .contact-form {
    padding: 22px;
  }
}

.hero-subpage {
  padding: 110px 0 80px;
}

.single-column {
  grid-template-columns: 1fr;
}

.hero-text-wide {
  max-width: 860px;
}

.cards-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.service-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.service-panel {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}

.service-panel h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.service-panel p {
  color: var(--text-muted);
}

.service-panel-large {
  grid-row: span 2;
}

.service-panel-wide {
  grid-column: span 2;
}

.service-list {
  margin-top: 22px;
  padding-left: 18px;
  color: var(--text-muted);
}

.service-list li + li {
  margin-top: 10px;
}

.service-note-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-note-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.service-note-card p {
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .cards-grid.two,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-panel-large,
  .service-panel-wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.legal-card {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}

.legal-card h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.legal-card p {
  color: var(--text-muted);
}

.legal-card a {
  color: var(--text);
}

.legal-card a:hover {
  color: var(--accent);
}

.legal-card-wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-card-wide {
    grid-column: span 1;
  }
}

.portal-page {
  min-height: calc(100vh - 180px);
}

.portal-section {
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at 10% 20%, rgba(46, 168, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(46, 168, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #0d1218 0%, var(--bg) 100%);
}

.portal-shell {
  max-width: 760px;
  margin: 0 auto;
}

.portal-shell-wide {
  max-width: 100%;
}

.portal-card {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}

.portal-intro {
  margin-bottom: 26px;
}

.portal-intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.portal-intro p {
  color: var(--text-muted);
  max-width: 680px;
}

.portal-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(180, 40, 40, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.25);
  color: #ffd0d0;
}

.portal-form .form-group {
  margin-bottom: 18px;
}

.portal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.portal-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.portal-hero-box {
  margin-bottom: 28px;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.portal-feature {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.portal-feature h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.portal-feature p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.portal-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.main-nav a.active-nav,
.mobile-nav a.active-nav {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-card,
  .portal-feature {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .portal-actions {
    flex-direction: column;
  }

  .portal-actions .btn {
    width: 100%;
  }

  .portal-meta {
    flex-direction: column;
  }
}

.portal-page {
  min-height: calc(100vh - 180px);
}

.portal-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at 10% 20%, rgba(46, 168, 255, 0.14), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(46, 168, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #0d1218 0%, var(--bg) 100%);
}

.portal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

.portal-shell,
.portal-shell-wide {
  position: relative;
  z-index: 1;
}

.portal-shell {
  max-width: 760px;
  margin: 0 auto;
}

.portal-card {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}

.portal-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}

.portal-intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.portal-intro p {
  color: var(--text-muted);
  max-width: 700px;
}

.portal-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(180, 40, 40, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.25);
  color: #ffd0d0;
}

.portal-form .form-group {
  margin-bottom: 18px;
}

.portal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.portal-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.portal-visual {
  min-height: 260px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(46, 168, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #11161d, #0c1015);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.portal-visual::before,
.portal-visual::after {
  content: "";
  position: absolute;
}

.portal-visual::before {
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.portal-visual::after {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(46, 168, 255, 0.8);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.portal-visual-lines {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-visual-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 168, 255, 0.85), rgba(255,255,255,0.06));
}

.portal-visual-lines span:nth-child(2) {
  width: 82%;
}

.portal-visual-lines span:nth-child(3) {
  width: 62%;
}

.portal-overview {
  margin-bottom: 26px;
}

.portal-overview h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.portal-overview p {
  color: var(--text-muted);
  max-width: 760px;
}

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

.portal-feature {
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.portal-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 168, 255, 0.22);
}

.portal-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(46, 168, 255, 0.35);
  border-radius: 18px;
  margin-bottom: 22px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(46, 168, 255, 0.12), rgba(46, 168, 255, 0.02));
}

.portal-icon::before,
.portal-icon::after {
  content: "";
  position: absolute;
}

.portal-icon-products::before {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  top: 18px;
  left: 18px;
  transform: rotate(45deg);
}

.portal-icon-products::after {
  width: 12px;
  height: 12px;
  background: var(--accent);
  top: 30px;
  left: 30px;
  border-radius: 50%;
}

.portal-icon-order::before {
  width: 34px;
  height: 2px;
  background: var(--accent);
  top: 24px;
  left: 18px;
  box-shadow: 0 10px 0 var(--accent), 0 20px 0 rgba(46, 168, 255, 0.45);
}

.portal-icon-order::after {
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  right: 18px;
  top: 26px;
}

.portal-icon-history::before {
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 18px;
  left: 20px;
}

.portal-icon-history::after {
  width: 2px;
  height: 12px;
  background: var(--accent);
  left: 35px;
  top: 24px;
  box-shadow: 8px 8px 0 0 var(--accent);
  transform-origin: bottom center;
}

.portal-status {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.portal-feature h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.portal-feature p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.portal-quick-info {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portal-quick-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.portal-quick-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.portal-quick-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.main-nav a.active-nav,
.mobile-nav a.active-nav {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .portal-hero-card,
  .portal-grid,
  .portal-quick-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-card,
  .portal-feature {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .portal-actions {
    flex-direction: column;
  }

  .portal-actions .btn {
    width: 100%;
  }

  .portal-meta {
    flex-direction: column;
  }

  .portal-section {
    padding: 90px 0 70px;
  }

  .portal-visual {
    min-height: 220px;
  }
}

.portal-login-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.portal-login-form-wrap {
  width: 100%;
}

.portal-login-visual {
  min-height: 420px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(46, 168, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(46, 168, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #11161d, #0c1015);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.portal-login-visual::before,
.portal-login-visual::after {
  content: "";
  position: absolute;
}

.portal-login-visual::before {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.portal-login-visual::after {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid rgba(46, 168, 255, 0.82);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}

.portal-login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), transparent);
}

.portal-login-lines {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-login-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 168, 255, 0.88), rgba(255,255,255,0.06));
}

.portal-login-lines span:nth-child(2) {
  width: 84%;
}

.portal-login-lines span:nth-child(3) {
  width: 62%;
}

.portal-login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.portal-login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 1100px) {
  .portal-login-card {
    grid-template-columns: 1fr;
  }

  .portal-login-visual {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .portal-login-visual {
    min-height: 220px;
    border-radius: 16px;
  }
}

/* ===== 2026 Design Refresh ===== */
:root {
  --bg: #081018;
  --bg-alt: #0d1823;
  --card: rgba(16, 24, 34, 0.88);
  --card-soft: rgba(20, 31, 45, 0.94);
  --text: #ecf4fb;
  --text-muted: #9eb0c3;
  --border: rgba(154, 196, 255, 0.14);
  --accent: #2fa4ff;
  --accent-hover: #58b7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1360px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 164, 255, 0.12), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(47, 164, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #081018 0%, #09121b 24%, #0a141f 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.75), transparent 95%);
  pointer-events: none;
  opacity: 0.55;
}

main, .site-footer, .site-header {
  position: relative;
  z-index: 1;
}

.site-header {
  background: rgba(7, 13, 21, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 94px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 62px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

.main-nav a,
.mobile-nav a {
  position: relative;
  color: rgba(236, 244, 251, 0.88);
  font-weight: 600;
}

.main-nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active-nav::after,
.mobile-nav a:hover::after,
.mobile-nav a.active-nav::after {
  transform: scaleX(1);
}

.header-phone {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border-color: rgba(154, 196, 255, 0.18);
}

.mobile-nav-toggle {
  background: rgba(255,255,255,0.03);
}

.mobile-nav {
  background: rgba(6, 12, 19, 0.95);
}

.hero,
.portal-section,
.section-dark,
.contact-section,
.site-footer {
  background-color: transparent;
}

.hero {
  padding: 128px 0 96px;
}

.hero-industrial {
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 164, 255, 0.2), transparent 26%),
    radial-gradient(circle at 90% 16%, rgba(47, 164, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 20, 30, 0.9) 0%, rgba(9, 16, 24, 0.65) 100%);
}

.hero-content {
  gap: 42px;
  align-items: stretch;
}

.hero-text,
.hero-visual,
.info-card,
.material-card,
.service-panel,
.legal-card,
.contact-form,
.contact-box,
.portal-card,
.portal-feature,
.portal-quick-card,
.kunden-card,
.kunden-stat,
.kunden-panel,
.kunden-action-card,
.dashboard-card,
.dashboard-stat,
.dashboard-panel,
.dashboard-action-card {
  backdrop-filter: blur(18px);
}

.hero-text h1 {
  max-width: 940px;
}

.hero-description {
  font-size: 1.08rem;
  max-width: 760px;
}

.hero-highlights,
.material-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-highlights span,
.material-points span,
.visual-badge,
.trust-label,
.status-message {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

.hero-highlights span,
.material-points span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.trust-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #d9ebff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-stat {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-stat span,
.process-card p {
  color: var(--text-muted);
}

.hero-visual-industrial {
  min-height: 100%;
  display: grid;
  align-items: end;
  padding: 28px;
}


.hero-printer-scene {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 20% 15%, rgba(46, 168, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-printer-scene::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.printer-floor {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.3), rgba(10, 16, 24, 0.9));
  border: 1px solid rgba(255,255,255,0.04);
}

.printer-floor::before {
  content: "";
  position: absolute;
  inset: 18px 28px 18px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
}

.printer-frame {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  bottom: 76px;
}

.printer-rail-top,
.printer-bed,
.printer-column,
.printer-crossbar,
.printer-head,
.printer-spool,
.printer-spool::before,
.printer-part {
  position: absolute;
}

.printer-column {
  top: 0;
  bottom: 0;
  width: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(214,225,240,0.28), rgba(77, 92, 114, 0.3));
  border: 1px solid rgba(255,255,255,0.08);
}

.printer-column.left { left: 0; }
.printer-column.right { right: 0; }

.printer-rail-top {
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(210,225,240,0.22), rgba(72,84,102,0.4));
  border: 1px solid rgba(255,255,255,0.08);
}

.printer-crossbar {
  left: 10%;
  right: 10%;
  top: 64px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46,168,255,0.15), rgba(255,255,255,0.24), rgba(46,168,255,0.15));
}

.printer-head {
  width: 88px;
  height: 70px;
  left: 54%;
  top: 38px;
  transform: translateX(-50%);
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #182230, #0c1218);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 30px rgba(0,0,0,0.28);
}

.printer-head::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 16px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(46,168,255,0.35));
}

.printer-head::after {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 12px;
  border-radius: 999px;
  background: rgba(46,168,255,0.75);
  box-shadow: 0 0 18px rgba(46,168,255,0.35);
}

.printer-bed {
  left: 14%;
  right: 14%;
  bottom: 36px;
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #203142, #0e1620);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 26px rgba(0,0,0,0.24);
}

.printer-part {
  left: 50%;
  bottom: 59px;
  width: 120px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(46,168,255,0.65), rgba(46,168,255,0.16));
  border: 1px solid rgba(140,215,255,0.35);
  box-shadow: 0 0 24px rgba(46,168,255,0.12);
}

.printer-part::before {
  content: "";
  position: absolute;
  inset: 16px 12px auto;
  height: 2px;
  background: rgba(255,255,255,0.16);
  box-shadow: 0 10px 0 rgba(255,255,255,0.12), 0 20px 0 rgba(255,255,255,0.1), 0 30px 0 rgba(255,255,255,0.08);
}

.printer-spool {
  width: 104px;
  height: 104px;
  top: 26px;
  right: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  background: radial-gradient(circle at center, rgba(46,168,255,0.26) 0 22%, transparent 23%), linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
}

.printer-spool::before {
  content: "";
  inset: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
}

.printer-filament {
  position: absolute;
  top: 78px;
  right: 60px;
  width: 140px;
  height: 86px;
  border-top: 2px solid rgba(46,168,255,0.65);
  border-right: 2px solid rgba(46,168,255,0.65);
  border-radius: 0 22px 0 0;
  opacity: 0.9;
}

.printer-specs {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  z-index: 2;
}

.printer-spec {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 14, 20, 0.48);
  backdrop-filter: blur(12px);
}

.printer-spec strong {
  display: block;
  font-size: 0.78rem;
  color: #d7e9ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.printer-spec span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.visual-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.trust-item,
.process-card {
  background: linear-gradient(180deg, rgba(18, 28, 40, 0.92), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(46, 168, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.trust-item strong {
  display: block;
  margin-top: 14px;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text);
}

.section-divider-top {
  padding-top: 0;
  padding-bottom: 52px;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0) 0%, rgba(8, 12, 18, 0.78) 100%),
    radial-gradient(circle at 15% 0%, rgba(46, 168, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #081019 0%, #08131d 100%);
}

.section-heading-wide {
  max-width: 900px;
}

.elevated-card,
.info-card,
.material-card,
.service-panel,
.legal-card,
.portal-feature,
.portal-quick-card,
.kunden-card,
.kunden-stat,
.kunden-panel,
.kunden-action-card,
.dashboard-card,
.dashboard-stat,
.dashboard-panel,
.dashboard-action-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.elevated-card:hover,
.info-card:hover,
.material-card:hover,
.service-panel:hover,
.legal-card:hover,
.portal-feature:hover,
.portal-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 164, 255, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.compact-process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 164, 255, 0.18), rgba(47, 164, 255, 0.06));
  border: 1px solid rgba(47, 164, 255, 0.24);
  font-weight: 700;
  margin-bottom: 18px;
}

.process-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.material-card-featured {
  position: relative;
}

.contact-box-strong,
.status-message {
  box-shadow: var(--shadow);
}

.status-message {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
}

.status-message.success {
  color: #dff3e6;
  border-color: rgba(70, 180, 120, 0.25);
  background: rgba(45, 115, 76, 0.16);
}

.status-message.error {
  color: #ffd8d8;
  border-color: rgba(255, 120, 120, 0.25);
  background: rgba(145, 50, 50, 0.16);
}

.contact-form {
  padding: 32px;
}

.form-group input,
.form-group textarea,
select,
.portal-form input,
.portal-form textarea,
.portal-form select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea {
  background: rgba(9, 16, 24, 0.82);
}

.site-footer {
  margin-top: 0;
  border-top-color: rgba(154, 196, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.5), rgba(6, 10, 16, 0.9));
}

.footer-bottom {
  border-top-color: rgba(154, 196, 255, 0.12);
}

.kunden-dashboard,
.dashboard-layout {
  position: relative;
  z-index: 1;
}

.table-responsive,
.table-wrap {
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .hero-stats,
  .trust-strip,
  .process-grid,
  .compact-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 104px 0 80px;
  }

  .contact-form {
    padding: 24px;
  }

  .hero-highlights,
  .material-points {
    flex-direction: column;
  }
}


@media (max-width: 900px) {
  .printer-specs {
    grid-template-columns: 1fr;
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .hero-printer-scene {
    min-height: 420px;
  }

  .printer-frame {
    left: 8%;
    right: 8%;
  }
}

/* === 2026 refresh: rebuilt index + unified width === */
.hero-rebuild {
  padding: 126px 0 90px;
  background:
    radial-gradient(circle at 12% 18%, rgba(46, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(46, 168, 255, 0.09), transparent 26%),
    linear-gradient(180deg, #09111a 0%, #0b1016 100%);
}

.hero-rebuild-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.hero-description-wide {
  max-width: 760px;
}

.hero-rebuild-copy {
  min-width: 0;
}

.hero-rebuild-points,
.hero-highlights,
.material-points,
.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-rebuild-points {
  margin: 0 0 28px;
}

.hero-rebuild-points span,
.material-points span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(122, 179, 255, 0.16);
  background: rgba(12, 22, 34, 0.72);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-rebuild-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-rebuild-stats article {
  min-width: 0;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(122, 179, 255, 0.12);
  background: linear-gradient(180deg, rgba(19, 31, 45, 0.94), rgba(11, 18, 28, 0.98));
  box-shadow: var(--shadow);
}

.hero-rebuild-stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.hero-rebuild-stats p {
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-rebuild-visual {
  min-width: 0;
}

.hero-machine-shell {
  position: relative;
  border-radius: 32px;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 0%, rgba(46, 168, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(19, 30, 44, 0.98), rgba(8, 14, 22, 0.98));
  border: 1px solid rgba(122, 179, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.hero-machine-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-machine-topbar,
.hero-machine-info {
  position: relative;
  z-index: 1;
}

.hero-machine-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.machine-badge,
.machine-status,
.hero-machine-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(122, 179, 255, 0.16);
  background: rgba(22, 35, 51, 0.78);
}

.machine-status {
  color: #d9edf9;
}

.hero-machine-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 440px;
  border-radius: 28px;
  border: 1px solid rgba(122, 179, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(11, 20, 30, 0.4), rgba(8, 12, 18, 0.75)),
    radial-gradient(circle at 50% 0%, rgba(84, 170, 255, 0.08), transparent 35%);
  overflow: hidden;
}

.machine-light {
  position: absolute;
  top: 34px;
  width: 26%;
  height: 220px;
  background: radial-gradient(circle, rgba(82, 173, 255, 0.16), transparent 68%);
  filter: blur(6px);
}

.machine-light-left { left: -4%; }
.machine-light-right { right: -4%; }

.machine-gantry,
.machine-rail,
.machine-upright,
.machine-bed,
.machine-base,
.machine-head,
.machine-print-area,
.machine-spool-wrap,
.machine-filament {
  position: absolute;
}

.machine-gantry {
  left: 14%;
  right: 14%;
  top: 92px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(64, 93, 120, 0.95), rgba(109, 145, 182, 0.98), rgba(64, 93, 120, 0.95));
  box-shadow: 0 0 30px rgba(46, 168, 255, 0.18);
}

.machine-rail {
  left: 22%;
  right: 28%;
  top: 192px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 94, 160, 0.5), rgba(77, 181, 255, 0.9), rgba(19, 94, 160, 0.4));
}

.machine-upright {
  top: 96px;
  bottom: 76px;
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(120, 147, 176, 0.86), rgba(59, 83, 108, 0.85));
}

.machine-upright-left { left: 16%; }
.machine-upright-right { right: 16%; }

.machine-head {
  top: 158px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(11, 22, 35, 0.96), rgba(7, 11, 18, 0.98));
  border: 1px solid rgba(96, 171, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.machine-head::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 88px;
  width: 18px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(102, 166, 229, 0.9), rgba(40, 100, 160, 0.3));
}

.machine-head-core {
  position: absolute;
  inset: 12px 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 78, 132, 0.75), rgba(7, 17, 30, 0.95));
  box-shadow: inset 0 0 18px rgba(46, 168, 255, 0.3);
}

.machine-print-area {
  left: 38%;
  right: 38%;
  bottom: 156px;
  height: 118px;
  min-width: 168px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(33, 100, 161, 0.42), rgba(24, 61, 96, 0.7));
  border: 1px solid rgba(93, 175, 255, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.machine-part-base {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(58, 144, 219, 0.24), rgba(31, 81, 126, 0.06));
}

.machine-part-lines {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 24px;
  bottom: 18px;
  border-radius: 14px;
  background-image: repeating-linear-gradient(180deg, rgba(177, 221, 255, 0.32) 0 2px, transparent 2px 11px);
}

.machine-bed {
  left: 26%;
  right: 26%;
  bottom: 112px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 26, 39, 0.95), rgba(7, 12, 18, 0.98));
  border: 1px solid rgba(103, 175, 255, 0.16);
}

.machine-base {
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 76px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 16, 24, 0.95), rgba(5, 9, 14, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(46, 168, 255, 0.05), transparent 28%);
  border: 1px solid rgba(87, 157, 235, 0.08);
}

.machine-base::before {
  content: "";
  position: absolute;
  inset: 20px 28px;
  border-radius: 12px;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}

.machine-spool-wrap {
  right: 34px;
  top: 138px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 180, 255, 0.16);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.02);
}

.machine-spool,
.machine-spool-center {
  border-radius: 50%;
}

.machine-spool {
  width: 66px;
  height: 66px;
  border: 10px solid rgba(96, 177, 255, 0.14);
}

.machine-spool-center {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(61, 152, 230, 0.56);
}

.machine-filament {
  right: 104px;
  top: 188px;
  width: 104px;
  height: 2px;
  border-top: 2px solid rgba(96, 182, 255, 0.9);
  border-right: 2px solid rgba(96, 182, 255, 0.9);
  border-top-right-radius: 20px;
}

.hero-machine-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hero-machine-card {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(122, 179, 255, 0.12);
  background: linear-gradient(180deg, rgba(17, 28, 42, 0.92), rgba(10, 16, 25, 0.98));
}

.hero-machine-kicker {
  min-height: 34px;
  padding: 0 12px;
  margin-bottom: 12px;
  color: #cfe4ff;
  font-size: 0.82rem;
}

.hero-machine-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
}

.materials-showcase .section-heading {
  max-width: 900px;
}

.contact-boxes {
  margin-top: 24px;
}

.contact-boxes .contact-box,
.contact-boxes .contact-box-strong {
  flex: 1 1 220px;
}

.card-surface {
  background: linear-gradient(180deg, rgba(17, 27, 41, 0.96), rgba(9, 16, 24, 0.98));
  border: 1px solid rgba(122, 179, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 1400px) {
  .hero-machine-info,
  .hero-rebuild-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero-rebuild-layout {
    grid-template-columns: 1fr;
  }

  .hero-rebuild-copy {
    order: 1;
  }

  .hero-rebuild-visual {
    order: 2;
  }
}

@media (max-width: 900px) {
  .hero-rebuild {
    padding: 104px 0 72px;
  }

  .hero-machine-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-machine-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-machine-frame {
    min-height: 320px;
  }

  .machine-gantry {
    left: 12%;
    right: 12%;
    top: 70px;
  }

  .machine-upright-left { left: 12%; }
  .machine-upright-right { right: 12%; }

  .machine-head {
    width: 104px;
    height: 72px;
    top: 132px;
  }

  .machine-head::before {
    top: 72px;
    height: 42px;
  }

  .machine-rail {
    left: 18%;
    right: 24%;
    top: 160px;
  }

  .machine-print-area {
    left: 33%;
    right: 33%;
    bottom: 122px;
    min-width: 134px;
    height: 92px;
  }

  .machine-bed {
    left: 20%;
    right: 20%;
    bottom: 90px;
  }

  .machine-base {
    height: 56px;
  }

  .machine-spool-wrap {
    width: 76px;
    height: 76px;
    right: 20px;
    top: 124px;
  }

  .machine-spool {
    width: 46px;
    height: 46px;
    border-width: 8px;
  }

  .machine-spool-center {
    width: 22px;
    height: 22px;
  }

  .machine-filament {
    width: 76px;
    right: 72px;
    top: 158px;
  }

  .hero-machine-info {
    grid-template-columns: 1fr;
  }
}
