:root {
  color-scheme: dark;

  /* page base */
  --bg-1: #121214;
  --bg-2: #17171b;
  --glow: rgba(232, 90, 34, 0.12);
  --glow-hero: rgba(232, 90, 34, 0.16);

  /* text */
  --text: #f4f4f5;
  --text-strong: #ffffff;
  --muted: rgba(244, 244, 245, 0.68);
  --muted-2: rgba(244, 244, 245, 0.46);
  --muted-3: rgba(244, 244, 245, 0.34);

  /* neutral overlay scale (white on dark) — no-space rgba so the body sed pass skips these defs */
  --n-015: rgba(255,255,255,0.015);
  --n-02: rgba(255,255,255,0.02);
  --n-03: rgba(255,255,255,0.03);
  --n-04: rgba(255,255,255,0.04);
  --n-05: rgba(255,255,255,0.05);
  --n-06: rgba(255,255,255,0.06);
  --n-07: rgba(255,255,255,0.07);
  --n-08: rgba(255,255,255,0.08);
  --n-10: rgba(255,255,255,0.1);
  --n-18: rgba(255,255,255,0.18);
  --n-32: rgba(255,255,255,0.32);
  --line: var(--n-08);

  /* solid dark surfaces */
  --nav-bg: rgba(18, 18, 20, 0.7);
  --nav-bg-scrolled: rgba(18, 18, 20, 0.88);
  --nav-mobile-bg: rgba(18, 18, 20, 0.96);
  --form-bg: rgba(14, 14, 16, 0.56);
  --step-bg: rgba(18, 18, 20, 0.42);
  --tag-bg: rgba(18, 18, 20, 0.9);
  --tag-text: #ffffff;

  /* product display area (light in both themes) */
  --product-1: #f4ede4;
  --product-2: #e9dfd1;
  --product-glow: rgba(255,255,255,0.72);
  --product-line: rgba(18, 18, 20, 0.08);

  /* brand */
  --brand: #e85a22;
  --brand-2: #ff7a3c;
  --brand-line: rgba(255, 122, 60, 0.45);
  --brand-soft: rgba(255, 122, 60, 0.14);
  --brand-eyebrow: rgba(255, 122, 60, 0.55);

  --logo-bg: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] {
  color-scheme: light;

  --bg-1: #f3efe8;
  --bg-2: #e8e1d5;
  --glow: rgba(232, 84, 26, 0.08);
  --glow-hero: rgba(232, 84, 26, 0.1);

  --text: #211d17;
  --text-strong: #14110b;
  --muted: rgba(40, 34, 26, 0.72);
  --muted-2: rgba(40, 34, 26, 0.5);
  --muted-3: rgba(40, 34, 26, 0.4);

  --n-015: rgba(26,20,12,0.02);
  --n-02: rgba(26,20,12,0.025);
  --n-03: rgba(26,20,12,0.035);
  --n-04: rgba(26,20,12,0.05);
  --n-05: rgba(26,20,12,0.06);
  --n-06: rgba(26,20,12,0.07);
  --n-07: rgba(26,20,12,0.09);
  --n-08: rgba(26,20,12,0.11);
  --n-10: rgba(26,20,12,0.14);
  --n-18: rgba(26,20,12,0.2);
  --n-32: rgba(26,20,12,0.32);
  --line: var(--n-08);

  --nav-bg: rgba(246, 242, 235, 0.8);
  --nav-bg-scrolled: rgba(246, 242, 235, 0.93);
  --nav-mobile-bg: rgba(246, 242, 235, 0.98);
  --form-bg: rgba(255, 255, 255, 0.78);
  --step-bg: rgba(255, 255, 255, 0.66);
  --tag-bg: rgba(28, 23, 17, 0.88);
  --tag-text: #ffffff;

  --product-1: #ffffff;
  --product-2: #f1ece3;
  --product-glow: rgba(255,255,255,0.9);
  --product-line: rgba(26, 20, 12, 0.08);

  --brand: #e8541a;
  --brand-2: #ff6b35;
  --brand-line: rgba(232, 84, 26, 0.5);
  --brand-soft: rgba(232, 84, 26, 0.12);
  --brand-eyebrow: rgba(232, 84, 26, 0.62);

  --logo-bg: #ffffff;
  --shadow: 0 24px 60px rgba(70, 50, 28, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, var(--glow), transparent 32%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--brand-eyebrow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

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

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

.btn-primary:hover {
  background: var(--brand-2);
}

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

.btn-secondary:hover {
  border-color: var(--n-32);
  background: var(--n-05);
}

.btn-full {
  width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  border-color: var(--line);
  background: var(--nav-bg-scrolled);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--logo-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.logo img {
  width: auto;
  height: 54px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--n-06);
  border: 1px solid var(--n-10);
  color: var(--text-strong);
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--n-10);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero/blutrax-warehouse-hero.webp") right center / auto 100% no-repeat,
    #eee5d9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg-1) 0%, transparent 22%),
    linear-gradient(90deg, rgba(18, 18, 20, 0.96) 0%, rgba(18, 18, 20, 0.88) 38%, rgba(18, 18, 20, 0.22) 67%, rgba(18, 18, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 18, 20, 0.22), transparent 24%);
  pointer-events: none;
}

[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(0deg, var(--bg-1) 0%, transparent 22%),
    linear-gradient(90deg, rgba(246, 242, 235, 0.98) 0%, rgba(246, 242, 235, 0.92) 38%, rgba(246, 242, 235, 0.28) 67%, rgba(246, 242, 235, 0.08) 100%),
    linear-gradient(180deg, rgba(246, 242, 235, 0.24), transparent 24%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 126px);
}

.hero-copy h1,
.section-header h2,
.support-copy h2,
.contact-copy h2,
.process-step h3,
.product-body h3,
.industry-card h3,
.support-card h3 {
  font-family: "Sora", sans-serif;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-lead {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.hero-proof {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.proof-item {
  min-width: 160px;
  padding: 18px 20px;
  border: 1px solid var(--n-08);
  border-radius: 16px;
  background: var(--n-03);
}

.proof-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 800;
}

.proof-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.proof-band {
  padding: 0 0 36px;
}

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

.proof-band-item {
  padding: 24px;
  border-radius: 18px;
  background: var(--n-04);
  border: 1px solid var(--n-08);
}

.proof-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.proof-band-item strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-strong);
}

.section {
  padding: 92px 0;
}

.section-dark {
  background: transparent;
}

.section-mid {
  background: linear-gradient(180deg, var(--n-015), rgba(255, 255, 255, 0));
}

.section-header {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-header.split {
  max-width: none;
  margin: 0 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: end;
  text-align: left;
}

.section-header h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-header p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--n-08);
  background: linear-gradient(180deg, var(--n-04), var(--n-02));
}

.product-card.featured {
  border-color: var(--brand-line);
  box-shadow: 0 24px 60px rgba(232, 90, 34, 0.1);
}

.product-media {
  position: relative;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, var(--product-glow), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, var(--product-1) 0%, var(--product-2) 100%);
  border-bottom: 1px solid var(--product-line);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(1.03) drop-shadow(0 16px 20px rgba(0, 0, 0, 0.10));
}

.product-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-tag {
  background: var(--brand);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.product-body h3 {
  font-size: 1.22rem;
  line-height: 1.28;
}

.product-body p {
  margin-top: 12px;
  color: var(--muted);
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--n-08);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.spec-list strong {
  color: var(--text-strong);
  text-align: right;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.industry-card,
.support-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--n-08);
  background: var(--n-04);
}

.industry-card h3,
.support-card h3 {
  font-size: 1.15rem;
}

.industry-card p,
.support-card p {
  margin-top: 12px;
  color: var(--muted);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

.support-copy h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.support-copy p {
  margin-top: 22px;
  color: var(--muted);
  max-width: 520px;
}

.process-panel {
  padding: 38px;
  border-radius: 30px;
  border: 1px solid var(--n-08);
  background: linear-gradient(180deg, var(--n-05), var(--n-02));
}

.process-header {
  margin-bottom: 34px;
}

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

.process-step {
  padding: 26px;
  border-radius: 22px;
  background: var(--step-bg);
  border: 1px solid var(--n-06);
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 800;
}

.process-step h3 {
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.process-step p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-section {
  padding-top: 40px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--n-06), var(--n-03));
  border: 1px solid var(--n-08);
}

.contact-copy h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-copy p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 520px;
}

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

.contact-details a {
  color: var(--text-strong);
  font-weight: 600;
}

.contact-details p {
  margin-top: 6px;
  color: var(--muted-2);
}

.contact-form {
  padding: 28px;
  border-radius: 24px;
  background: var(--form-bg);
  border: 1px solid var(--n-07);
}

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

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--n-10);
  background: var(--n-04);
  color: var(--text-strong);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-eyebrow);
  box-shadow: 0 0 0 3px rgba(232, 90, 34, 0.12);
}

.form-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer {
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--n-08);
}

.footer-brand img {
  height: 64px;
  width: auto;
  padding: 10px 18px;
  border-radius: 18px;
  background: var(--logo-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.footer-brand p {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: var(--muted);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text-strong);
}

.footer-bottom {
  padding: 18px 0 30px;
}

.footer-bottom p {
  color: var(--muted-3);
  font-size: 0.82rem;
}

.float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(232, 90, 34, 0.32);
}

.float-wa:hover {
  background: var(--brand-2);
}

@media (max-width: 1100px) {
  .hero-inner,
  .section-header.split,
  .support-layout,
  .contact-shell,
  .footer-inner,
  .proof-band-grid,
  .process-steps,
  .industry-grid,
  .support-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

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

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    position: absolute;
    top: 78px;
    left: 24px;
    right: 24px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--nav-mobile-bg);
    border: 1px solid var(--n-08);
  }

  .hero-inner,
  .section-header.split,
  .support-layout,
  .contact-shell,
  .proof-band-grid,
  .industry-grid,
  .support-grid,
  .process-steps,
  .product-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-inner {
    min-height: auto;
  }

  .proof-band {
    padding-top: 24px;
  }

  .hero-bg {
    background-position: 68% center;
    background-size: auto 100%;
  }

  .hero-overlay,
  [data-theme="light"] .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 18, 20, 0.9), rgba(18, 18, 20, 0.66));
  }

  [data-theme="light"] .hero-copy {
    color: #ffffff;
  }

  [data-theme="light"] .hero-copy .eyebrow,
  [data-theme="light"] .hero-lead,
  [data-theme="light"] .hero-copy .proof-item span {
    color: rgba(255, 255, 255, 0.78);
  }

  [data-theme="light"] .hero-copy h1,
  [data-theme="light"] .hero-copy .proof-item strong {
    color: #ffffff;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero-copy h1,
  .section-header h2,
  .support-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .hero-proof {
    flex-direction: column;
  }

  .btn,
  .proof-item {
    width: 100%;
  }

  .process-panel,
  .contact-shell {
    padding: 24px;
  }

  .contact-form {
    padding: 22px;
  }

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

/* theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--n-06);
  border: 1px solid var(--n-10);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--n-10);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: inline-block;
}
