body.product-home {
  --product-accent: #1d4ed8;
  --product-accent-2: #0f766e;
  --product-tint: #eef4ff;
  background: #fff;
}

.product-home .site-header {
  padding-inline: max(5%, calc((100vw - 1280px) / 2));
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cats-line);
  background:
    linear-gradient(120deg, rgba(29, 78, 216, 0.055), transparent 46%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.home-hero-inner,
.home-section-inner {
  position: relative;
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 58px;
  align-items: center;
  min-height: 680px;
  padding: 76px 0 68px;
}

.home-hero-copy h1 {
  max-width: 720px;
  margin: 24px 0 22px;
  color: var(--cats-ink);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.home-hero-copy h1 span {
  color: var(--cats-blue);
}

.home-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--cats-muted);
  font-size: 18px;
  line-height: 1.85;
}

.home-hero-copy .hero-actions {
  margin-top: 32px;
}

.home-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: var(--cats-line);
}

.home-hero-proof div {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.home-hero-proof strong {
  color: var(--cats-ink);
  font-size: 15px;
}

.home-hero-proof span {
  color: var(--cats-muted);
  font-size: 12px;
  font-weight: 700;
}

.cad-console {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #101827;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.22);
}

.cad-console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #172033;
  font-size: 12px;
  font-weight: 800;
}

.cad-console-app {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  background: var(--cats-blue);
  font-size: 10px;
}

.cad-console-bar div {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.cad-console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}

.cad-console-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  min-height: 440px;
}

.cad-console-tools {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

.cad-console-tools span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.cad-console-tools .is-active {
  color: #fff;
  border-color: #2563eb;
  background: #1d4ed8;
}

.cad-console-drawing {
  position: relative;
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(rgba(71, 85, 105, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 85, 105, 0.14) 1px, transparent 1px),
    #0b1220;
  background-size: 24px 24px;
}

.drawing-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.drawing-grid {
  position: absolute;
  inset: 68px 40px 54px 32px;
}

.drawing-frame {
  position: absolute;
  inset: 8% 8% 12% 4%;
  border: 1px solid rgba(56, 189, 248, 0.64);
}

.drawing-frame::before,
.drawing-frame::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.drawing-frame::before {
  inset: 14% 18% 48% 12%;
}

.drawing-frame::after {
  inset: 58% 12% 10% 42%;
}

.drawing-line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: rgba(251, 191, 36, 0.74);
}

.line-a { top: 24%; left: 8%; width: 76%; transform: rotate(18deg); }
.line-b { top: 68%; left: 14%; width: 68%; transform: rotate(-12deg); }
.line-c { top: 42%; left: 50%; width: 42%; transform: rotate(90deg); }

.drawing-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #60a5fa;
  background: #0b1220;
}

.node-a { top: 20%; left: 14%; }
.node-b { top: 55%; left: 48%; }
.node-c { right: 13%; bottom: 18%; }

.automation-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(270px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(23, 32, 51, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.automation-panel .mini-label {
  color: #60a5fa;
}

.automation-panel > strong {
  display: block;
  margin: 6px 0 13px;
  color: #fff;
  font-size: 18px;
}

.automation-panel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-panel li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd5e1;
  font-size: 12px;
}

.automation-panel li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.18);
  font-size: 9px;
  font-weight: 900;
}

.automation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.automation-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.home-trust {
  border-bottom: 1px solid var(--cats-line);
  background: #fff;
}

.home-trust .home-section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
}

.home-trust span {
  color: var(--cats-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-trust div {
  display: flex;
  align-items: center;
  gap: 30px;
}

.home-trust strong {
  color: #475569;
  font-size: 14px;
}

.home-section {
  padding: 96px 0;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.home-section-heading h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--cats-ink);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.home-section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--cats-muted);
  font-size: 16px;
}

.home-products {
  background: #f7f9fc;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-product-card {
  --card-accent: #1d4ed8;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 28px;
  border: 1px solid var(--cats-line);
  border-top: 3px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.product-card-sheetmetal { --card-accent: #0f5f7a; }
.product-card-seouldream { --card-accent: #0f766e; }

.home-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-product-code {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--card-accent);
  font-size: 11px;
  font-weight: 950;
}

.home-product-price {
  padding: 4px 10px;
  border: 1px solid var(--cats-line);
  border-radius: 999px;
  color: var(--card-accent);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}

.home-product-card h3 {
  margin: 22px 0 10px;
  color: var(--cats-ink);
  font-size: 27px;
  letter-spacing: -0.035em;
}

.home-product-card > p {
  margin: 0;
  color: var(--cats-muted);
}

.home-product-card ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 30px;
  padding: 20px 0 0;
  border-top: 1px solid var(--cats-line);
  list-style: none;
}

.home-product-card li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.home-product-card li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  content: "";
  background: var(--card-accent);
}

.home-product-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.home-product-card .btn-primary,
.home-product-card .btn-secondary {
  border-color: var(--card-accent);
}

.home-product-card .btn-primary {
  background: var(--card-accent);
}

.home-product-card .btn-secondary {
  color: var(--card-accent);
}

.home-text-link {
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 900;
}

.home-workflow {
  color: #e2e8f0;
  background: #111827;
}

.home-section-heading-light h2 {
  color: #fff;
}

.home-section-heading-light > p {
  color: #94a3b8;
}

.home-workflow .section-kicker {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
}

.home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #172033;
}

.home-workflow-grid article {
  min-height: 230px;
  padding: 32px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.home-workflow-grid article:last-child {
  border-right: 0;
}

.home-workflow-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 32px;
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 8px;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  font-size: 11px;
  font-weight: 900;
}

.home-workflow-grid strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.home-workflow-grid p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.home-resources {
  background: #fff;
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-resource-card {
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 24px;
  border: 1px solid var(--cats-line);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.36);
  box-shadow: var(--shadow-soft);
}

.home-resource-card > span {
  color: var(--cats-blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.home-resource-card strong {
  margin-top: 10px;
  color: var(--cats-ink);
  font-size: 19px;
}

.home-resource-card p {
  margin: 8px 0 18px;
  color: var(--cats-muted);
  font-size: 14px;
}

.home-resource-card b {
  margin-top: auto;
  color: var(--cats-blue);
  font-size: 13px;
}

.home-resource-card.resource-featured {
  color: #e2e8f0;
  border-color: #1e3a8a;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 54%),
    #172033;
}

.home-resource-card.resource-featured > span,
.home-resource-card.resource-featured b {
  color: #93c5fd;
}

.home-resource-card.resource-featured strong {
  color: #fff;
}

.home-resource-card.resource-featured p {
  color: #cbd5e1;
}

.home-final-cta {
  color: #fff;
  background: var(--cats-blue-strong);
}

.home-final-cta .home-section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-height: 300px;
  padding: 56px 0;
}

.home-final-cta span {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-final-cta h2 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.home-final-cta p {
  max-width: 700px;
  margin: 0;
  color: #dbeafe;
}

.home-final-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.home-final-actions .btn-primary {
  color: var(--cats-blue-strong);
  border-color: #fff;
  background: #fff;
}

@media (max-width: 1080px) {
  .product-home .site-nav a:last-child,
  .product-home .header-link {
    display: none;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
  }

  .cad-console {
    width: min(760px, 100%);
  }

  .home-product-grid,
  .home-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-card:first-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .product-home .site-header {
    min-height: 60px;
    padding-inline: 5%;
  }

  .product-home .brand-copy small,
  .product-home .site-nav {
    display: none;
  }

  .product-home .header-cta {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .home-hero-inner {
    min-height: auto;
    padding: 52px 0 46px;
  }

  .home-hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .home-hero-copy > p {
    font-size: 16px;
  }

  .home-hero-copy .hero-actions,
  .home-product-actions,
  .home-final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero-proof,
  .home-product-grid,
  .home-workflow-grid,
  .home-resource-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-proof div {
    min-height: 68px;
  }

  .cad-console-body {
    min-height: 390px;
  }

  .cad-console-tools {
    display: none;
  }

  .cad-console-body {
    grid-template-columns: 1fr;
  }

  .cad-console-drawing {
    padding: 16px;
  }

  .automation-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .home-trust .home-section-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }

  .home-trust div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    width: 100%;
  }

  .home-section {
    padding: 68px 0;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
  }

  .home-section-heading h2 {
    font-size: 32px;
  }

  .home-product-card,
  .home-product-card:first-child {
    grid-column: auto;
    min-height: auto;
    padding: 24px;
  }

  .home-workflow-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .home-workflow-grid article:last-child {
    border-bottom: 0;
  }

  .home-resource-card {
    min-height: 205px;
  }

  .home-final-cta .home-section-inner {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
    padding: 62px 0;
  }

  .home-final-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-resource-card {
    transition: none;
  }
}
