/* TempTrak DACH – standalone design system */
:root {
  --ink: #11263a;
  --ink-2: #24394c;
  --muted: #657586;
  --blue: #2f99ba;
  --blue-deep: #0f3654;
  --blue-dark: #08273d;
  --blue-soft: #e8f5f8;
  --cyan: #75c8da;
  --surface: #ffffff;
  --surface-2: #f5f8fa;
  --line: #dce6ec;
  --danger: #c44747;
  --success: #2c7a5a;
  --shadow-sm: 0 12px 32px rgba(15, 54, 84, .08);
  --shadow-lg: 0 28px 70px rgba(8, 39, 61, .16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--cyan); color: var(--blue-dark); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,230,236,.8);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand img {
  width: 168px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}
.main-nav a {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
  transition: color .2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 24px rgba(15,54,84,.15);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,54,84,.22);
  background: #0a2f4a;
}
.button-sm {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}
.button-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: #bdd2de;
  box-shadow: none;
}
.button-ghost:hover,
.button-ghost:focus-visible {
  background: #fff;
  color: var(--blue-deep);
}
.button-light {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}
.button-light:hover,
.button-light:focus-visible { background: #eaf5f8; }
.button-submit {
  width: 100%;
  justify-content: space-between;
  border-radius: 14px;
  margin-top: 6px;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 86px 0 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(117,200,218,.28), transparent 30%),
    linear-gradient(180deg, #f9fcfd 0%, #eff7fa 100%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15,54,84,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,54,84,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
  align-items: center;
  gap: 64px;
  min-height: 650px;
  padding-bottom: 76px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--blue);
}
.eyebrow-light { color: #8ee0ed; }
.hero h1,
.section-heading h2,
.hardware-copy h2,
.haccp-copy h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.hero h1 {
  max-width: 790px;
  font-size: clamp(46px, 5.5vw, 76px);
  font-weight: 820;
}
.hero h1 span {
  color: var(--blue-deep);
}
.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}
.hero-points li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: #dff3ed;
  color: var(--success);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 550px;
}
.hero-dashboard-card {
  position: absolute;
  inset: 18px 0 auto 46px;
  padding: 13px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.hero-dashboard-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 17px;
}
.status-pill {
  position: absolute;
  right: 26px;
  top: 26px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aaa72;
  box-shadow: 0 0 0 5px rgba(58,170,114,.12);
}
.device-card {
  position: absolute;
  z-index: 3;
  width: 238px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e6eef2;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(8,39,61,.18);
}
.device-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: contain;
  border-radius: 14px;
}
.device-card-a {
  right: -6px;
  bottom: 58px;
  transform: rotate(-4deg);
}
.device-card-b {
  left: 0;
  bottom: 2px;
  width: 220px;
  transform: rotate(3deg);
}
.hero-metric {
  position: absolute;
  left: 42px;
  top: 392px;
  z-index: 4;
  display: grid;
  gap: 0;
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--blue-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.hero-metric strong { font-size: 21px; }
.hero-metric span { font-size: 12px; color: #bcd8e5; }

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(255,255,255,.95);
  box-shadow: 0 -8px 28px rgba(8,39,61,.06);
}
.trust-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.trust-strip > div:last-child { border-right: 0; }
.trust-strip span {
  grid-row: 1 / 3;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
  padding-top: 2px;
}
.trust-strip strong { font-size: 15px; }
.trust-strip small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.section { padding: 110px 0; }
.section-light { background: var(--surface-2); }
.section-heading {
  margin-bottom: 48px;
}
.section-heading.narrow {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.section-heading.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
}
.section-heading h2,
.hardware-copy h2,
.haccp-copy h2,
.contact-copy h2 {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
}
.section-heading p,
.hardware-copy > p,
.haccp-copy > p,
.contact-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.section-heading.split > p { margin: 0; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.icon-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.icon-wrap svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-card h3,
.process-step h3,
.product-card h3,
.benefit-card h3,
.application-card h3,
.download-card h3,
.mgk-story h3 {
  margin: 22px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
.info-card p,
.process-step p,
.product-card p,
.benefit-card p,
.application-card p,
.download-card p,
.mgk-story p {
  margin: 0;
  color: var(--muted);
}

.process-section { background: #fff; }
.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.process-step {
  position: relative;
  min-height: 235px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.step-number {
  display: inline-flex;
  font-size: 12px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .12em;
}
.process-arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 300;
}

.hardware-section {
  background:
    radial-gradient(circle at 85% 25%, rgba(117,200,218,.18), transparent 32%),
    var(--surface-2);
}
.hardware-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 72px;
  align-items: center;
}
.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.feature-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.feature-list span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3ed;
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}
.feature-list p { margin: 0; color: var(--muted); }
.feature-list strong { color: var(--ink); }

.product-stack {
  position: relative;
  min-height: 590px;
}
.product-card {
  position: absolute;
  width: min(560px, 88%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
}
.product-card-main { top: 0; right: 0; z-index: 2; }
.product-card-secondary {
  left: 0;
  bottom: 0;
  z-index: 1;
  transform: rotate(-2deg);
}
.product-tag {
  position: absolute;
  top: 38px;
  left: 38px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.software-section { background: #fff; }
.software-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.software-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.software-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.software-tab:hover,
.software-tab:focus-visible { color: var(--blue-deep); background: var(--blue-soft); }
.software-tab.is-active {
  background: var(--blue-deep);
  color: #fff;
}
.software-panel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 36px;
  align-items: center;
  padding: 38px;
}
.software-panel[hidden] { display: none; }
.feature-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.software-copy h3 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.software-copy p {
  color: var(--muted);
  margin: 0 0 20px;
}
.software-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.software-copy li {
  position: relative;
  padding-left: 24px;
  font-weight: 650;
  color: var(--ink-2);
}
.software-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47,153,186,.12);
}
.software-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  background: #dbe8ee;
  box-shadow: var(--shadow-sm);
}
.software-image-button img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease;
}
.software-image-button:hover img { transform: scale(1.015); }
.software-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.micro-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.micro-gallery button {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.micro-gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.micro-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
.micro-gallery span {
  display: block;
  padding: 10px 5px 4px;
  font-size: 13px;
  font-weight: 800;
}

.benefit-section { background: var(--surface-2); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.benefit-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.benefit-card > span {
  font-size: 12px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .12em;
}
.benefit-card h3 { margin-top: 36px; }

.applications-section { background: #fff; }
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.application-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(245,248,250,.98));
  transition: transform .2s ease, border-color .2s ease;
}
.application-card:hover {
  transform: translateY(-4px);
  border-color: #acd5e1;
}
.app-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.haccp-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(117,200,218,.25), transparent 35%),
    var(--blue-dark);
  color: #fff;
}
.haccp-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}
.haccp-copy > p { color: #c3d6df; }
.haccp-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.haccp-stat-grid > div {
  min-height: 168px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
}
.haccp-stat-grid strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.03em;
}
.haccp-stat-grid span {
  display: block;
  margin-top: 8px;
  color: #c3d6df;
  font-size: 14px;
}

.references-section { background: #fff; }
.reference-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.reference-cloud span {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.reference-cloud span:nth-child(4n) { border-right: 0; }
.reference-cloud span:nth-last-child(-n+4) { border-bottom: 0; }

.testimonial-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  margin-top: 20px;
}
.testimonial {
  margin: 0;
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--blue-deep);
  color: #fff;
}
.testimonial > p {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  letter-spacing: -.02em;
}
.testimonial footer {
  display: grid;
  margin-top: 28px;
  gap: 3px;
}
.testimonial footer span { color: #b9d1dd; font-size: 13px; }

.mgk-story {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  align-items: center;
}
.mgk-story > img {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
}
.mgk-mark {
  width: 110px;
  height: auto;
  margin-bottom: 18px;
}
.mgk-story h3 { margin-top: 0; }
.mgk-story span {
  display: block;
  margin-top: 16px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.downloads-section { background: var(--surface-2); }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.download-card {
  position: relative;
  min-height: 240px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.file-type {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.download-arrow {
  justify-self: end;
  font-size: 24px;
  color: var(--blue);
}

.contact-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(117,200,218,.18), transparent 33%),
    var(--blue-deep);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.contact-copy > p { color: #c3d6df; }
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.contact-details a {
  display: grid;
  gap: 2px;
  width: fit-content;
}
.contact-details span { color: #8fb4c5; font-size: 12px; }
.contact-details strong { font-size: 18px; }
.contact-note {
  font-size: 13px !important;
  border-left: 2px solid #77c9d9;
  padding-left: 14px;
  margin-top: 28px !important;
}

.contact-form-wrap {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}
.lead-form { display: grid; gap: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccdce4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,153,186,.12);
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--blue-deep);
}
.form-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.form-alert-success { background: #e7f6ef; color: #246448; }
.form-alert-error { background: #fbecec; color: #8e3030; }

.site-footer {
  padding: 64px 0 22px;
  background: #061d2d;
  color: #d9e7ee;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr .7fr;
  gap: 50px;
}
.footer-brand img {
  width: 170px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  max-width: 340px;
  color: #93afbd;
  margin-top: 18px;
}
.footer-grid h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
}
.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer-grid a,
.footer-grid span {
  color: #93afbd;
  font-size: 13px;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #668594;
  font-size: 12px;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(8,39,61,.28);
}

.lightbox {
  max-width: min(1200px, 92vw);
  width: auto;
  padding: 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.lightbox::backdrop { background: rgba(2,16,26,.82); backdrop-filter: blur(4px); }
.lightbox img {
  max-height: 82vh;
  width: auto;
  border-radius: 12px;
}
.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(6,29,45,.9);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
  background: var(--surface-2);
  padding: 80px 0;
}
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 42px;
}
.legal-card h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.04em; margin-top: 0; }
.legal-warning {
  padding: 14px 16px;
  background: #fff4df;
  border: 1px solid #f1d19a;
  border-radius: 12px;
  color: #6d4e13;
  font-weight: 700;
}
.legal-back { display: inline-flex; margin-bottom: 26px; color: var(--blue-deep); font-weight: 800; }

@media (max-width: 1080px) {
  .nav-wrap { grid-template-columns: 160px auto 1fr; }
  .main-nav { display: none; }
  .nav-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }
  .nav-cta { display: none; }
  .main-nav.is-open {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 78px;
    left: 20px;
    right: 20px;
    padding: 18px;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .main-nav.is-open a:last-child { border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 850px; }
  .hero-visual { min-height: 610px; max-width: 720px; width: 100%; margin: 0 auto; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .hardware-grid,
  .haccp-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hardware-grid { gap: 44px; }
  .hardware-copy { max-width: 800px; }
  .product-stack { max-width: 720px; width: 100%; margin: 0 auto; }
  .software-panel { grid-template-columns: 1fr; }
  .software-copy { max-width: 800px; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .section-heading.split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .problem-grid,
  .benefit-grid,
  .application-grid,
  .downloads-grid { grid-template-columns: 1fr 1fr; }
  .process-flow {
    grid-template-columns: 1fr;
  }
  .process-arrow { transform: rotate(90deg); height: 22px; }
  .reference-cloud { grid-template-columns: repeat(2, 1fr); }
  .reference-cloud span:nth-child(4n) { border-right: 1px solid var(--line); }
  .reference-cloud span:nth-child(2n) { border-right: 0; }
  .reference-cloud span:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .reference-cloud span:nth-last-child(-n+2) { border-bottom: 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .micro-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { backdrop-filter: blur(14px); }
  .nav-wrap { min-height: 68px; grid-template-columns: 150px 1fr; }
  .brand img { width: 146px; height: 44px; }
  .nav-toggle { grid-column: 2; }
  .main-nav.is-open { top: 68px; left: 14px; right: 14px; }

  .hero { padding-top: 58px; }
  .hero-grid { min-height: auto; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-points { display: grid; }
  .hero-visual { min-height: 430px; }
  .hero-dashboard-card { left: 16px; right: 16px; }
  .device-card { width: 180px; }
  .device-card-a { right: 0; bottom: 34px; }
  .device-card-b { left: 0; bottom: -8px; width: 170px; }
  .hero-metric { display: none; }

  .trust-strip { grid-template-columns: 1fr; border-radius: 18px; margin-bottom: 20px; }
  .trust-strip > div,
  .trust-strip > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip > div:last-child { border-bottom: 0; }

  .section { padding: 72px 0; }
  .section-heading h2,
  .hardware-copy h2,
  .haccp-copy h2,
  .contact-copy h2 { font-size: clamp(34px, 10vw, 46px); }

  .problem-grid,
  .benefit-grid,
  .application-grid,
  .downloads-grid,
  .haccp-stat-grid { grid-template-columns: 1fr; }

  .product-stack { min-height: 620px; }
  .product-card { width: 94%; padding: 18px; }
  .product-card-secondary { bottom: 0; }
  .software-panel { padding: 22px; }
  .software-duo { grid-template-columns: 1fr; }
  .micro-gallery { grid-template-columns: 1fr; }

  .reference-cloud { grid-template-columns: 1fr 1fr; }
  .testimonial, .contact-form-wrap { padding: 24px; }
  .mgk-story { grid-template-columns: 1fr; }
  .mgk-story > img { width: 100%; height: 280px; }

  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
