:root {
  --bg: #2f2f33;
  --bg-alt: #3a3a3f;
  --surface: #3b3d42;
  --surface-alt: #404348;
  --text: #eef2f7;
  --muted: #c7d0db;
  --primary: #8aa6ff;
  --primary-dark: #6f8ff8;
  --secondary: #f5f7fb;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header,
.site-footer,
.blank-page,
main {
  background: var(--bg);
}

main {
  flex: 1;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(47, 47, 51, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.minimal-header,
.minimal-footer {
  background: var(--bg);
}

.minimal-header {
  border-bottom: none;
  padding: 0;
}

.minimal-header .nav-bar {
  justify-content: center;
  min-height: 76px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

.brand span {
  color: var(--primary);
}

.blank-page {
  min-height: 70vh;
}

.home-page {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem 1rem 0;
}

.home-body {
  text-align: left;
  margin-top: 0;
}

.home-body > a:not(.basic-card) {
  color: #d4af37;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1.2;
}

.home-body > a:not(.basic-card):hover {
  text-decoration: underline;
}

.basic-card {
  display: block;
  width: min(360px, calc(100vw - 2rem));
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 26, 0.12);
  border-radius: 16px;
  background: #f2f2f0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  text-align: left;
  text-decoration: none;
}

.basic-card:hover {
  transform: translateY(-3px);
}

.basic-card-image-frame {
  padding: 0;
  background: transparent;
}

.basic-card-image {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.basic-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.basic-card-body h1 {
  margin: 0 0 0.45rem;
  color: #25262a;
  font-size: 1.4rem;
  line-height: 1.1;
}

.basic-card-body p {
  margin: 0;
  color: #55585f;
  font-size: 0.9rem;
}

.deskcnc-page {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem 1rem 0;
}

.deskcnc-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.deskcnc-manual,
.deskcnc-download {
  color: #c4c4da;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1.2;
}

.deskcnc-manual:hover,
.deskcnc-download:hover {
  text-decoration: underline;
}

.deskcnc-download {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.8);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 1rem;
}

.minimal-footer {
  background: transparent;
  border-top: none;
  padding-top: 0;
}

.minimal-footer .footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a {
  position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(59, 107, 255, 0.25);
}

.button-secondary {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-copy h1,
.section-heading h2,
.cta-box h2 {
  margin: 0.75rem 0 1rem;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
}

.lead {
  max-width: 580px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.trust-list li::before {
  content: "✓";
  display: inline-block;
  color: var(--primary);
  margin-right: 0.4rem;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.dashboard-card {
  width: min(100%, 480px);
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  border: 1px solid rgba(59, 107, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.5rem;
}

.card-topbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0 1rem;
}

.card-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.card-topbar span:nth-child(1) { background: #ff6b6b; }
.card-topbar span:nth-child(2) { background: #ffd93d; }
.card-topbar span:nth-child(3) { background: #66d98f; }

.dashboard-body {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mini-stat small {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-stat strong {
  color: var(--secondary);
  font-size: 1.5rem;
}

.chart-bars {
  height: 180px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
}

.chart-bars span {
  flex: 1;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(59, 107, 255, 0.85), rgba(59, 107, 255, 0.35));
}

.stats {
  padding: 1rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.stats-grid strong {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: var(--secondary);
}

.stats-grid span {
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  margin-bottom: 2.25rem;
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2,
.cta-box h2 {
  font-size: clamp(2rem, 2.7vw, 3rem);
}

.feature-grid,
.service-grid,
.process-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.process-step,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 10px 24px rgba(17, 25, 40, 0.03);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: rgba(59, 107, 255, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card h3,
.service-card h3,
.process-step h3,
.value-card h3,
.contact-card h3 {
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-size: 1.1rem;
}

.feature-card p,
.service-card p,
.process-step p,
.value-card p,
.contact-card p,
.contact-details p,
.contact-form p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

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

.process-step span {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 107, 255, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section {
  padding: 2rem 0 5rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--secondary), #1c2b4a);
  border-radius: 28px;
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-box h2,
.cta-box .eyebrow {
  color: #fff;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(47, 47, 51, 0.92);
}

.site-footer.minimal-footer {
  background: var(--bg);
}

.minimal-footer .container {
  width: 100%;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, rgba(59, 107, 255, 0.06), rgba(245, 247, 251, 0));
}

.page-header h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  color: var(--secondary);
}

.page-summary {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 760px;
  font-size: 1.08rem;
}

.story-grid,
.value-grid,
.pricing-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.story-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.story-copy,
.value-card,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(17, 25, 40, 0.03);
}

.story-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(17, 25, 40, 0.03);
}

.price-card.featured {
  border-color: rgba(59, 107, 255, 0.35);
  box-shadow: 0 18px 32px rgba(59, 107, 255, 0.12);
  transform: translateY(-4px);
}

.price-card .tag {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(59, 107, 255, 0.12);
  color: var(--primary-dark);
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  font-size: 2.5rem;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0.5rem 0 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.price-card li {
  padding: 0.45rem 0;
}

.price-card li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.6rem;
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.45rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(59, 107, 255, 0.2);
  border-color: rgba(59, 107, 255, 0.35);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 1rem;
}

.form-success {
  margin-top: 1rem;
  color: #1c8d4e;
  font-weight: 600;
  display: none;
}

.form-success.visible {
  display: block;
}

@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .contact-grid,
  .feature-grid,
  .service-grid,
  .process-grid,
  .value-grid,
  .pricing-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .contact-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .service-grid,
  .process-grid,
  .value-grid,
  .pricing-grid,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .cta-box,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

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