:root {
  color-scheme: light;
  --pm-white: #ffffff;
  --pm-primary: #0b549d;
  --pm-primary-10: #001d35;
  --pm-primary-20: #003258;
  --pm-primary-30: #00477c;
  --pm-primary-40: #0b549d;
  --pm-primary-50: #2e6fb7;
  --pm-primary-60: #518bd1;
  --pm-primary-70: #79a9e6;
  --pm-primary-80: #a8c8f2;
  --pm-primary-90: #d7e8fa;
  --pm-primary-95: #edf5fe;
  --pm-primary-99: #fbfdff;
  --pm-secondary: #496579;
  --pm-secondary-container: #d2e4f2;
  --pm-tertiary: #6d5b00;
  --pm-tertiary-container: #f7e698;
  --pm-success: #176b3a;
  --pm-warning: #7a5900;
  --pm-error: #ba1a1a;
  --pm-ink: #17202a;
  --pm-muted: #5c6670;
  --pm-outline: #c6d0d9;
  --pm-outline-strong: #8b98a5;
  --pm-surface: #ffffff;
  --pm-surface-variant: #f4f8fb;
  --pm-surface-container: #eef4fa;
  --pm-shadow: 0 1px 2px rgba(23, 32, 42, 0.1), 0 10px 24px rgba(11, 84, 157, 0.08);
  --pm-shadow-strong: 0 2px 6px rgba(23, 32, 42, 0.12), 0 18px 42px rgba(11, 84, 157, 0.14);
  --pm-radius-sm: 6px;
  --pm-radius: 8px;
  --pm-radius-lg: 12px;
  --pm-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --pm-motion: 180ms cubic-bezier(0.2, 0, 0, 1);
  --pm-motion-slow: 520ms cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--pm-white);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--pm-white);
  color: var(--pm-ink);
  font-family: var(--pm-font);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--pm-radius);
  background: var(--pm-primary);
  color: var(--pm-white);
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  margin: 0;
  color: var(--pm-ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.84rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 46px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--pm-primary-20);
  font-size: clamp(2.2rem, 4vw, 4.55rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--pm-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel {
  min-height: 420px;
  border: 1px solid var(--pm-outline);
  border-radius: var(--pm-radius);
  background:
    linear-gradient(135deg, rgba(11, 84, 157, 0.1), rgba(255, 255, 255, 0.7) 48%),
    var(--pm-surface);
  box-shadow: var(--pm-shadow);
  overflow: hidden;
}

.machine-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 28px;
}

.machine-visual::before,
.machine-visual::after {
  position: absolute;
  content: "";
  inset: auto;
  border-radius: var(--pm-radius);
}

.machine-visual::before {
  right: 34px;
  bottom: 32px;
  width: 66%;
  height: 48%;
  border: 1px solid rgba(11, 84, 157, 0.2);
  background:
    linear-gradient(90deg, rgba(11, 84, 157, 0.08) 0 1px, transparent 1px 28px),
    linear-gradient(0deg, rgba(11, 84, 157, 0.08) 0 1px, transparent 1px 28px),
    var(--pm-white);
  box-shadow: var(--pm-shadow);
}

.machine-visual::after {
  right: 58px;
  bottom: 82px;
  width: 42%;
  height: 18%;
  background: linear-gradient(90deg, var(--pm-primary), var(--pm-primary-70));
  opacity: 0.92;
}

.visual-chip {
  position: absolute;
  left: 28px;
  width: 48%;
  border: 1px solid var(--pm-outline);
  border-radius: var(--pm-radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  box-shadow: 0 8px 26px rgba(11, 84, 157, 0.1);
}

.visual-chip strong {
  display: block;
  color: var(--pm-primary-30);
  font-size: 0.88rem;
}

.visual-chip span {
  color: var(--pm-muted);
  font-size: 0.78rem;
}

.visual-chip:nth-child(1) {
  top: 28px;
}

.visual-chip:nth-child(2) {
  top: 122px;
  left: 72px;
}

.visual-chip:nth-child(3) {
  bottom: 48px;
}

.section {
  padding: 34px 0;
}

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

.wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.media-factory {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: var(--pm-radius);
  background:
    linear-gradient(90deg, rgba(11, 84, 157, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(11, 84, 157, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, var(--pm-primary-95), var(--pm-white));
}

.tooling-diagram {
  position: relative;
  width: min(82%, 420px);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(11, 84, 157, 0.22);
  border-radius: var(--pm-radius);
  background: var(--pm-white);
  box-shadow: var(--pm-shadow);
}

.tooling-diagram::before,
.tooling-diagram::after {
  position: absolute;
  content: "";
  top: 28%;
  height: 44%;
  border-radius: var(--pm-radius-sm);
}

.tooling-diagram::before {
  left: 11%;
  width: 31%;
  background: var(--pm-primary-80);
}

.tooling-diagram::after {
  right: 11%;
  width: 31%;
  background: var(--pm-primary-50);
}

.pin {
  position: absolute;
  top: 48%;
  left: 47%;
  width: 6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pm-tertiary-container);
  box-shadow:
    -34px 0 0 var(--pm-secondary-container),
    34px 0 0 var(--pm-secondary-container);
}

.footer-note {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--pm-outline);
  color: var(--pm-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero,
  .wide-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

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

  .component-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .machine-visual {
    min-height: 340px;
  }

  .visual-chip {
    width: 66%;
  }
}
