:root {
  --bg: #0a0b0d;
  --surface: #12141a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b919e;
  --accent: #3d9eff;
  --accent-dim: rgba(61, 158, 255, 0.15);
  --accent-glow: rgba(61, 158, 255, 0.35);
  --warm: #ff6b4a;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: var(--accent-glow);
  top: -120px;
  right: -80px;
  opacity: 0.5;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(255, 107, 74, 0.2);
  bottom: 10%;
  left: -60px;
  opacity: 0.4;
}

/* Layout */
.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 1.5rem 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  color: var(--accent);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* Printer animation */
.printer-visual {
  position: relative;
  width: 120px;
  height: 100px;
  margin-bottom: 2.5rem;
}

.layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  border-radius: 2px;
  opacity: 0;
  animation: print-layer 4s ease-in-out infinite;
}

.layer-1 { bottom: 12px; animation-delay: 0s; }
.layer-2 { bottom: 24px; animation-delay: 0.8s; }
.layer-3 { bottom: 36px; animation-delay: 1.6s; }
.layer-4 { bottom: 48px; animation-delay: 2.4s; }

.nozzle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 2px 2px 0 0;
  animation: nozzle-move 4s ease-in-out infinite;
}

.nozzle::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--warm);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 12px var(--warm);
}

@keyframes print-layer {
  0%, 15% { opacity: 0; transform: translateX(-50%) scaleX(0.3); }
  25%, 70% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  85%, 100% { opacity: 0.3; transform: translateX(-50%) scaleX(1); }
}

@keyframes nozzle-move {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(52px); }
}

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.headline {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.subhead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Services */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 560px;
}

.services-group {
  text-align: center;
}

.services-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.services-list li {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.services-list--now li {
  color: var(--text);
  border-color: rgba(61, 158, 255, 0.25);
  background: var(--accent-dim);
}

.services-list--later li {
  color: var(--text-muted);
  border-style: dashed;
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.badge {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
}

.btn {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0b0d;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

/* Footer */
.footer {
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

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

/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
  width: 440px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.modal-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: left;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.modal-alt {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-alt a {
  color: var(--accent);
  text-decoration: none;
}

.modal-alt a:hover {
  text-decoration: underline;
}
