:root {
  --bg: #0f0c14;
  --bg-2: #17111f;
  --panel: #1b1525;
  --panel-2: #231a30;
  --panel-strong: #171024;
  --line: rgba(255, 255, 255, 0.08);

  --text: #f3eeff;
  --text-soft: #b8aacd;

  --primary: #a855f7;
  --primary-2: #e879f9;
  --secondary: #7c3aed;
  --warning: #ffb84d;

  --shadow: 0 20px 40px rgba(0, 0, 0, 0.30);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1200px;
  --transition: 0.3s ease;

  --nav-accent: #a855f7;
  --nav-accent-2: #f472b6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(232, 121, 249, 0.10), transparent 22%),
    linear-gradient(180deg, #0f0c14 0%, #120d18 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.bg-lines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: -3;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
}

.bg-glow-1 {
  background: #a855f7;
  top: -120px;
  left: -120px;
}

.bg-glow-2 {
  background: #e879f9;
  right: -120px;
  top: 120px;
}

/* NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--nav-accent), var(--nav-accent-2));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.brand-copy span {
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-main {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--text);
  font-weight: 700;
  transition: 0.3s ease;
}

.nav-main:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

/* HERO */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.kicker,
.section-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.hero-copy h1,
.section-head h2,
.contact-copy h2 {
  font-family: "Rajdhani", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  margin-bottom: 20px;
}

.hero-copy h1 span {
  color: var(--primary-2);
}

.hero-copy p,
.section-head p,
.service p,
.process-item p,
.app-card p,
.contact-copy p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-copy p {
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #140f1d;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(168, 85, 247, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

/* MACHINE */
.machine {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #181220 0%, #120d18 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.machine-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.machine-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.machine-body {
  position: relative;
  min-height: 520px;
  padding: 22px;
}

.printer-frame {
  position: relative;
  height: 100%;
  min-height: 476px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.20);
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(180deg, #17111f 0%, #120d18 100%);
  background-size: 24px 24px, 24px 24px, auto;
  overflow: hidden;
}

.rail {
  position: absolute;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.38), rgba(232, 121, 249, 0.24));
}

.rail-x {
  top: 74px;
  left: 40px;
  right: 40px;
  height: 4px;
  border-radius: 999px;
}

.rail-y {
  top: 40px;
  bottom: 60px;
  left: 52%;
  width: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.print-head {
  position: absolute;
  top: 58px;
  left: 52%;
  width: 96px;
  height: 42px;
  border-radius: 12px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  animation: moveHead 4s ease-in-out infinite;
}

.print-head::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 10px;
  height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(232,121,249,0.18));
  border-radius: 0 0 8px 8px;
}

.build-plate {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 260px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, #2a3442 0%, #1c2430 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

.printed-piece {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 96px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 26px rgba(232, 121, 249, 0.18);
  animation: pulsePiece 3s ease-in-out infinite;
}

.spec-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 14, 21, 0.84);
  box-shadow: var(--shadow);
  max-width: 220px;
}

.spec-card small {
  display: block;
  color: var(--primary-2);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.spec-card strong {
  line-height: 1.35;
  font-size: 1rem;
}

.spec-card-1 {
  top: 24px;
  right: 22px;
}

.spec-card-2 {
  left: 22px;
  bottom: 22px;
}

/* CONTENT */
.strip {
  padding: 10px 0 30px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.strip-card,
.service,
.process-item,
.app-card,
.marketplace-box,
.contact-box {
  background: linear-gradient(180deg, rgba(24,32,44,0.92), rgba(15,21,29,0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.strip-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.strip-card strong {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  color: var(--primary-2);
}

.strip-card p {
  color: var(--text-soft);
  line-height: 1.65;
  font-weight: 600;
}

.section {
  padding: 100px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.services-grid,
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.applications-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service,
.app-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}

.service:hover,
.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.24);
}

.service-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #140f1d;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.service h3,
.process-item h3,
.app-card h3,
.marketplace-box h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.process-item span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary-2));
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #140f1d;
}

.marketplace-box {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-box {
  padding: 34px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.contact-copy {
  max-width: 760px;
}

/* FOOTER */
.footer {
  padding: 26px 0 40px;
}

.footer-wrap {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap p,
.footer-wrap a {
  color: var(--text-soft);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ANIMATIONS */
@keyframes moveHead {
  0%, 100% {
    transform: translateX(-50%);
  }
  25% {
    transform: translateX(-120px);
  }
  75% {
    transform: translateX(20px);
  }
}

@keyframes pulsePiece {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.06);
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid,
  .process-grid,
  .services-grid,
  .applications-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-box,
  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border-radius: 20px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: flex;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 11vw, 4.8rem);
  }

  .section {
    padding: 84px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .hero {
    padding: 34px 0 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .machine-body {
    min-height: 420px;
    padding: 14px;
  }

  .printer-frame {
    min-height: 360px;
  }

  .build-plate {
    width: 190px;
  }

  .printed-piece {
    width: 76px;
    height: 76px;
  }

  .spec-card {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 24px 20px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}