*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FFF9F6;
  --surface: #FFFFFF;
  --text: #45271F;
  --muted: #A68A82;
  --primary: #E2725B;
  --secondary: #F4A460;
  --accent: #708238;
  --border: rgba(69,39,31,0.1);
  --steel: rgba(69, 39, 31, 0.78);
  --max-w: 1100px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
  --industrial: industrial;
  --engineering: engineering;
  --machinery: machinery;
  --tech: tech;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, #fff3ec 38%, #f7ebe4 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(69, 39, 31, 0.035) 47px,
      rgba(69, 39, 31, 0.035) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(69, 39, 31, 0.035) 47px,
      rgba(69, 39, 31, 0.035) 48px
    );
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "industrial engineering machinery tech";
  position: fixed;
  inset: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(226, 114, 91, 0.14), transparent 42%),
    radial-gradient(ellipse at 88% 72%, rgba(112, 130, 56, 0.1), transparent 48%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(69, 39, 31, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(69, 39, 31, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--mono);
  font-size: 12px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.disclosure-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  border: none;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--bg),
    var(--bg) 8px,
    rgba(69, 39, 31, 0.04) 8px,
    rgba(69, 39, 31, 0.04) 16px
  );
}

.site-header {
  position: relative;
  z-index: 2;
  height: 64px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 2px;
}

.badge-18 img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 40px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(69, 39, 31, 0.82) 0%, rgba(69, 39, 31, 0.72) 45%, rgba(112, 130, 56, 0.55) 100%),
    linear-gradient(45deg, #3a221c 0%, #5a3a30 50%, #2f3a1c 100%);
  border-bottom: 3px solid var(--accent);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-ribbon {
  width: min(100%, 720px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--accent);
  transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(69, 39, 31, 0.25);
}

.hero-ribbon h1 {
  color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: var(--mono);
  text-transform: uppercase;
}

.hero-welcome {
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  max-width: 46ch;
  font-size: 1rem;
}

.hero-welcome p + p {
  margin-top: 8px;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
}

.trust-item {
  font-size: 0.92rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 12px;
  background: rgba(69, 39, 31, 0.28);
}

.offers-section {
  position: relative;
  padding: 48px 20px 56px;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 10% 8% auto;
  height: 50%;
  border: 1px dashed rgba(69, 39, 31, 0.12);
  pointer-events: none;
}

.offers-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.offers-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.offers-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.offers-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 22px 18px 18px;
  box-shadow: 0 2px 0 rgba(69, 39, 31, 0.06);
}

.offer-card::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
}

.offer-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-logo-wrap {
  width: 160px;
  height: 72px;
  margin: 8px auto 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.offer-logo-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-rating {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--mono);
}

.offer-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.offer-desc {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.45;
}

.offer-bonus-group {
  text-align: center;
  margin-bottom: 10px;
}

.offer-bonus {
  display: block;
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer-terms {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

.offer-feature {
  text-align: center;
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 10px;
  font-family: var(--mono);
}

.offer-rg {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.offer-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.offer-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 40px 20px 28px;
  background: var(--surface);
  border-top: 3px solid var(--text);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 12px;
}

.footer-warn {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-help-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-help a,
.footer-help span {
  display: inline-flex;
  align-items: center;
}

.footer-help img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  list-style: none;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-family: var(--mono);
}

.footer-company {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-updated {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: var(--mono);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.back-to-top {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-family: var(--mono);
}

.footer-nz {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
}

.footer-compliance {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 10px;
  line-height: 1.5;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(69, 39, 31, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate.hidden {
  display: none;
}

.age-gate-box {
  background: var(--surface);
  border: 2px solid var(--text);
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 6px 6px 0 rgba(69, 39, 31, 0.2);
}

.age-gate-box .age-gate-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--mono);
  text-transform: uppercase;
}

.age-gate-box p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.age-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  border: 2px solid var(--text);
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9998;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--text);
  padding: 16px 18px;
  box-shadow: 4px 4px 0 rgba(69, 39, 31, 0.15);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 12px;
}

.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-page {
  padding: 36px 20px 56px;
}

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 28px 22px;
}

.legal-wrap h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-wrap h2 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.legal-wrap p {
  margin-bottom: 10px;
  color: var(--text);
}

.legal-wrap ul {
  margin: 0 0 12px 1.2rem;
}

.legal-wrap li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

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

.form-error {
  display: none;
  color: var(--primary);
  font-size: 0.85rem;
}

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

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border: 2px solid var(--accent);
  background: rgba(112, 130, 56, 0.08);
  font-size: 0.95rem;
}

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

.contact-form.hidden {
  display: none;
}

.error-page {
  padding: 64px 20px;
  text-align: center;
}

.error-page h1 {
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 20px;
}

.redirect-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  gap: 12px;
}

.redirect-ad {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.redirect-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-notes {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 40ch;
}

@media (max-width: 720px) {
  .hero {
    min-height: 220px;
    padding: 36px 16px 28px;
  }

  .hero-ribbon {
    transform: none;
    width: 100%;
  }

  .offer-logo-wrap {
    width: 132px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .trust-item {
    font-size: 0.78rem;
  }

  .footer-help img {
    max-width: 100%;
  }
}
