:root {
  --ink: #162033;
  --muted: #647084;
  --line: #d9e0ea;
  --soft: #f3f6f9;
  --panel: #ffffff;
  --navy: #102a43;
  --steel: #415066;
  --blue: #1f6feb;
  --green: #0f9d58;
  --orange: #f97316;
  --shadow: 0 20px 60px rgba(16, 42, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  font-weight: 800;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--steel);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.contact-methods a:hover {
  color: var(--blue);
}

.header-cta {
  padding: 10px 16px;
  border-radius: 8px;
  background: #e9f8ef;
  color: #08723f;
  font-weight: 700;
  white-space: nowrap;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: 56px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--steel);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
}

.button-primary {
  background: var(--orange);
  color: #ffffff;
}

.button-secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.button-light {
  color: var(--navy);
  background: #ffffff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 38px 0 0;
}

.trust-strip div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-strip dt {
  font-weight: 800;
  color: var(--navy);
}

.trust-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.factory-panel {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.12), transparent 36%),
    linear-gradient(180deg, #243447, #152234);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.factory-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.machine-visual,
.dashboard-card {
  position: relative;
  z-index: 1;
}

.machine-visual {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.machine-top {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.machine-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.machine-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 22px;
}

.gauge {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  align-content: center;
  border: 12px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--orange);
  border-right-color: #38bdf8;
  border-radius: 50%;
}

.gauge strong {
  font-size: 28px;
}

.gauge span,
.status-list p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.status-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.status-list p {
  margin: 0;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.green {
  background: #36d399;
}

.amber {
  background: #fbbf24;
}

.blue {
  background: #60a5fa;
}

.dashboard-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #08723f;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.metric-grid div {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.metric-grid b,
.metric-grid span {
  display: block;
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 110px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
}

.bar-chart span {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--blue), #38bdf8);
}

.bar-46 {
  height: 46%;
}

.bar-68 {
  height: 68%;
}

.bar-54 {
  height: 54%;
}

.bar-82 {
  height: 82%;
}

.bar-62 {
  height: 62%;
}

.bar-88 {
  height: 88%;
}

.problem-band,
.process-band,
.about-section,
#services,
.industry-band,
.choose-grid,
.faq-band,
.final-cta,
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.problem-band,
.process-band {
  padding: 76px 0;
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 860px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.choice-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.problem-grid p,
.choice-list p {
  min-height: 96px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

.split-section,
.about-section {
  display: grid;
  gap: 48px;
  padding: 86px 0 62px;
}

.split-section {
  grid-template-columns: 0.85fr 1fr;
}

.about-section {
  grid-template-columns: 1fr;
}

.split-section > p {
  margin: 0;
  color: var(--steel);
  font-size: 19px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy p {
  margin: 0;
  color: var(--steel);
  font-size: 18px;
}

.about-keywords {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.about-keywords span {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}

#services {
  padding: 40px 0 86px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-grid article,
.package-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .service-grid article,
  .package-grid article {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .service-grid article:hover,
  .package-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(16, 42, 67, 0.1);
  }
}

.service-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-grid p,
.package-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.industry-band {
  padding: 76px 0;
  background: #122033;
  color: #ffffff;
}

.industry-band .eyebrow,
.final-cta .eyebrow {
  color: #fbbf24;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-list span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.choose-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 44px;
  padding: 86px 0;
}

.choice-list {
  grid-template-columns: repeat(2, 1fr);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  min-height: 150px;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  counter-increment: step;
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 20px;
  color: var(--orange);
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 8px;
  color: var(--muted);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 86px;
}

.final-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy), #24496e);
  color: #ffffff;
}

.faq-band {
  padding: 76px 0;
  background: var(--soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.faq-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-inner h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 44px);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 86px 0;
}

.contact-copy p:not(.eyebrow) {
  color: var(--steel);
  font-size: 18px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a,
.contact-methods span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 800;
}

.required-mark {
  color: var(--orange);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #f8fafc;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(31, 111, 235, 0.16);
  border-color: var(--blue);
}

input:not(:placeholder-shown):invalid,
textarea:not(:placeholder-shown):invalid {
  border-color: #e06b5c;
}

:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.24);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #101827;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: #ffffff;
  font-weight: 800;
}

.popup-open {
  overflow: hidden;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 24, 39, 0.58);
}

.popup-backdrop[hidden] {
  display: none;
}

.success-popup {
  position: relative;
  width: min(100%, 430px);
  padding: 34px 28px 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-popup h2 {
  margin-top: 16px;
  font-size: 28px;
}

.success-popup p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.success-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: var(--green);
  font-size: 32px;
  font-weight: 800;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--steel);
  background: var(--soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.popup-ok {
  width: 100%;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .about-layout,
  .choose-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .problem-grid,
  .service-grid,
  .faq-grid,
  .process-list,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(26px, 7vw, 36px);
  }

  .hero-text,
  .split-section > p,
  .about-copy p,
  .contact-copy p:not(.eyebrow) {
    font-size: 17px;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .trust-strip,
  .problem-grid,
  .about-keywords,
  .service-grid,
  .faq-grid,
  .choice-list,
  .process-list,
  .package-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .factory-panel {
    padding: 14px;
  }

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

  .gauge {
    justify-self: center;
  }

  .problem-band,
  .process-band,
  .industry-band,
  .faq-band,
  .choose-grid,
  .contact-section {
    padding: 58px 0;
  }

  .split-section {
    padding: 64px 0 42px;
  }

  #services {
    padding-bottom: 64px;
  }

  .package-grid {
    padding-bottom: 64px;
  }

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

@media (max-width: 420px) {
  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 14px;
  }

  .factory-panel {
    margin-inline: -2px;
  }

  .dashboard-card {
    padding: 14px;
  }

  .bar-chart {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
