:root {
  --moderniza-cyan: #67e8f9;
  --moderniza-blue: #4f8cff;
  --moderniza-violet: #8b5cf6;
  --moderniza-ink: #050816;
}

html {
  background:
    radial-gradient(circle at 12% 6%, rgba(79, 140, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(139, 92, 246, 0.20), transparent 32rem),
    linear-gradient(180deg, #071225 0%, #050816 48%, #09101f 100%) !important;
}

body {
  color: #eef6ff;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif !important;
  background: transparent !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

header {
  border-bottom: 1px solid rgba(103, 232, 249, 0.14);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

header > div {
  background: rgba(5, 8, 22, 0.74) !important;
}

.henrique-brand {
  color: var(--moderniza-cyan) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em !important;
  text-shadow: 0 0 24px rgba(103, 232, 249, 0.48);
}

img[alt="Background"] {
  filter: hue-rotate(125deg) saturate(1.45) brightness(0.55) contrast(1.1);
}

img[alt="overview"] {
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(37, 99, 235, 0.24), 0 0 0 8px rgba(79, 140, 255, 0.04);
}

main h1,
main h2,
main h3,
main [class*="text-5xl"],
main [class*="text-6xl"] {
  letter-spacing: -0.035em !important;
}

[class*="text-[#FC651E]"],
[class*="text-[#FF803D]"],
[class*="text-primary-500"] {
  color: var(--moderniza-cyan) !important;
}

[class*="bg-[#FC651E]"],
[class*="bg-primary-500"] {
  color: white !important;
  border-color: rgba(103, 232, 249, 0.7) !important;
  background: linear-gradient(135deg, var(--moderniza-violet), #2563eb 55%, #0891b2) !important;
  box-shadow: 0 12px 38px rgba(79, 70, 229, 0.34) !important;
}

[class*="border-[#FC651E]"],
[class*="border-primary-500"] {
  border-color: var(--moderniza-cyan) !important;
}

[class*="from-[#FC651E]"] {
  --tw-gradient-from: var(--moderniza-cyan) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(103, 232, 249, 0) var(--tw-gradient-to-position) !important;
}

[class*="to-[#F8854F"] {
  --tw-gradient-to: rgba(139, 92, 246, 0.72) var(--tw-gradient-to-position) !important;
}

[class*="shadow-"][class*="FC651E"] {
  box-shadow: 0 0 36px rgba(79, 140, 255, 0.42) !important;
}

[class*="border-[#38383D]"],
[class*="border-[#262626]"],
[class*="border-[#131E29]"] {
  border-color: rgba(103, 232, 249, 0.24) !important;
  background: linear-gradient(145deg, rgba(12, 24, 48, 0.9), rgba(8, 13, 31, 0.94)) !important;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.42);
}

[class*="rounded-2xl"] {
  border-radius: 28px !important;
}

::selection {
  color: #ffffff;
  background: rgba(79, 140, 255, 0.7);
}

footer.henrique-minimal-footer {
  background: linear-gradient(180deg, rgba(7, 18, 37, 0.2), #071225) !important;
}

.henrique-footer-about {
  border-color: rgba(103, 232, 249, 0.2) !important;
}

.henrique-footer-about a {
  color: var(--moderniza-cyan) !important;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.moderniza-company {
  width: min(1080px, calc(100% - 40px));
  margin: 80px auto 48px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.25), rgba(76, 29, 149, 0.26));
  box-shadow: 0 26px 80px rgba(2, 8, 23, 0.48);
}

.moderniza-company__eyebrow {
  margin: 0 0 12px;
  color: var(--moderniza-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.moderniza-company h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
}

.moderniza-company__body {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

@media (max-width: 767px) {
  body::before { background-size: 28px 28px; }
  img[alt="overview"] { border-radius: 16px; }
}

/* Moderniza light direction */
:root {
  --moderniza-cyan: #0284c7;
  --moderniza-blue: #2563eb;
  --moderniza-violet: #6366f1;
  --moderniza-ink: #0f172a;
  --moderniza-muted: #64748b;
  --moderniza-line: #dbe4f0;
  --moderniza-surface: #ffffff;
}

html {
  color-scheme: light;
  background: #f7f9fc !important;
}

body {
  color: var(--moderniza-ink) !important;
  background: #f7f9fc !important;
}

body::before {
  opacity: 1;
  background-image:
    radial-gradient(circle at 8% 5%, rgba(37, 99, 235, 0.10), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(14, 165, 233, 0.11), transparent 30rem),
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

header {
  border-bottom-color: rgba(37, 99, 235, 0.12) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.05);
}

header > div {
  background: transparent !important;
}

.henrique-brand {
  color: var(--moderniza-blue) !important;
  text-shadow: none !important;
}

img[alt="Background"] {
  opacity: 0.075 !important;
  filter: saturate(0.7) brightness(1.8) contrast(0.72) !important;
}

img[alt="overview"] {
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(30, 64, 175, 0.13), 0 0 0 8px rgba(37, 99, 235, 0.035) !important;
}

main,
main section,
main > div {
  color: var(--moderniza-ink);
}

[class*="text-white"] {
  color: var(--moderniza-ink) !important;
}

[class*="text-[#B1B1B1]"],
[class*="text-[#A1A1AA]"],
[class*="text-[#71717A]"],
[class*="text-zinc"],
[class*="text-gray"] {
  color: var(--moderniza-muted) !important;
}

[class*="text-[#FC651E]"],
[class*="text-[#FF803D]"],
[class*="text-primary-500"] {
  color: var(--moderniza-blue) !important;
}

[class*="bg-[#0D0D0D]"],
[class*="bg-[#171717]"],
[class*="bg-[#1D1D1D]"],
[class*="bg-[#131E29]"],
[class*="bg-black"] {
  background-color: var(--moderniza-surface) !important;
}

[class*="border-[#38383D]"],
[class*="border-[#262626]"],
[class*="border-[#131E29]"] {
  border-color: var(--moderniza-line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08) !important;
}

[class*="bg-[#FC651E]"],
[class*="bg-primary-500"] {
  color: #ffffff !important;
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22) !important;
}

[class*="border-[#FC651E]"],
[class*="border-primary-500"] {
  border-color: rgba(37, 99, 235, 0.6) !important;
}

[class*="from-[#FC651E]"] {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(37, 99, 235, 0) var(--tw-gradient-to-position) !important;
}

[class*="to-[#F8854F"] {
  --tw-gradient-to: rgba(14, 165, 233, 0.7) var(--tw-gradient-to-position) !important;
}

html body footer.henrique-minimal-footer {
  background: #ffffff !important;
  box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.18);
}

html body .henrique-footer-about {
  border-color: var(--moderniza-line) !important;
}

.henrique-footer-about a {
  color: var(--moderniza-blue) !important;
}

.moderniza-company {
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: linear-gradient(135deg, #ffffff, #eff6ff) !important;
  box-shadow: 0 24px 70px rgba(30, 64, 175, 0.10) !important;
}

.moderniza-company__eyebrow {
  color: var(--moderniza-blue) !important;
}

.moderniza-company h2 {
  color: var(--moderniza-ink) !important;
}

.moderniza-company__body {
  color: var(--moderniza-muted) !important;
}

::selection {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.8);
}

body.moderniza-home .mt-40 {
  margin-top: 5.5rem !important;
}

body.moderniza-home .mt-32 {
  margin-top: 4.5rem !important;
}

body.moderniza-home .gap-60 {
  gap: 7rem !important;
}

body.moderniza-home .moderniza-promoted-section {
  width: 100%;
  margin-top: 5rem !important;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #f0f7ff) !important;
  box-shadow: 0 24px 70px rgba(30, 64, 175, 0.09);
}

body.moderniza-home .moderniza-home-lead {
  width: 100%;
  order: -1;
  margin-top: clamp(5.5rem, 9vw, 8rem) !important;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 32px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 62%, #eaf4ff 100%) !important;
  box-shadow: 0 30px 90px rgba(30, 64, 175, 0.12);
}

body.moderniza-home .moderniza-home-lead img[alt="overview"] {
  padding: clamp(8px, 1.4vw, 16px);
  border-color: rgba(37, 99, 235, 0.20) !important;
  background: #eef4fb !important;
  box-shadow: 0 22px 60px rgba(30, 64, 175, 0.14) !important;
}

body.moderniza-home .moderniza-contrast-frame {
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #e8f1fb) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(30, 64, 175, 0.08);
}

body.moderniza-home img.moderniza-contrast-image {
  filter: brightness(0) saturate(100%) invert(21%) sepia(67%) saturate(2124%) hue-rotate(215deg) brightness(92%) contrast(92%) !important;
}

@media (max-width: 767px) {
  body.moderniza-home .mt-40,
  body.moderniza-home .moderniza-promoted-section {
    margin-top: 3.5rem !important;
  }

  body.moderniza-home .mt-32 {
    margin-top: 3rem !important;
  }

  body.moderniza-home .gap-60 {
    gap: 4.5rem !important;
  }

  body.moderniza-home .moderniza-promoted-section {
    padding: 20px;
    border-radius: 22px;
  }

  body.moderniza-home .moderniza-home-lead {
    margin-top: 4.5rem !important;
    padding: 20px;
    border-radius: 22px;
  }

  body.moderniza-home .moderniza-contrast-frame {
    padding: 8px 12px;
    border-radius: 12px;
  }
}

/* Equal badge cards */
body.moderniza-home .moderniza-backer-row {
  gap: 16px !important;
}

body.moderniza-home .moderniza-awards-row {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
}

body.moderniza-home img.moderniza-badge-art {
  display: block !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 140px !important;
  min-height: 140px !important;
  max-height: 140px !important;
  box-sizing: border-box !important;
  padding: 18px 22px !important;
  object-fit: contain !important;
  border-radius: 20px !important;
}

@media (max-width: 767px) {
  body.moderniza-home .moderniza-backer-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  body.moderniza-home .moderniza-awards-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.moderniza-home img.moderniza-badge-art {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
  }
}

/* Strong contrast for transparent white homepage artwork */
body.moderniza-home .moderniza-contrast-frame {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

body.moderniza-home img.moderniza-contrast-image {
  filter: none !important;
}

body.moderniza-home img[src*="techstar"],
body.moderniza-home img[src*="product-of-the-day"],
body.moderniza-home img[src*="product-of-the-week"] {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: 140px !important;
  min-height: 140px !important;
  max-height: 140px !important;
  box-sizing: border-box !important;
  padding: 18px 22px !important;
  object-fit: contain !important;
  border: 1px solid rgba(30, 64, 175, 0.26) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 58%, #0284c7 100%) !important;
  filter: none !important;
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.moderniza-home img[src*="Chrome.svg"] {
  box-sizing: content-box !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: #2563eb !important;
  filter: none !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22) !important;
}

@media (max-width: 767px) {
  body.moderniza-home img[src*="techstar"],
  body.moderniza-home img[src*="product-of-the-day"],
  body.moderniza-home img[src*="product-of-the-week"] {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
  }
}
