:root {
  --oms-ink: #071d2b;
  --oms-paper: #f7fbff;
  --oms-lime: #b8f23c;
  --oms-cyan: #25c9e8;
  --oms-sun: #ffd447;
  --oms-edge: clamp(18px, 4vw, 72px);
}

body.home {
  overflow-x: hidden;
  background: var(--oms-paper);
}

body.home .wp-block-post-content,
body.home main,
body.home .wp-site-blocks {
  width: 100%;
  max-width: none !important;
}

body.home .wp-block-post-content > .tech-hero:first-of-type {
  display: none;
}

body.home .wp-block-post-content > *:not(.oms-home) {
  width: min(1600px, calc(100% - (var(--oms-edge) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.oms-home {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  color: var(--oms-ink);
}

.oms-home *,
.oms-home *::before,
.oms-home *::after {
  box-sizing: border-box;
}

.oms-hero {
  position: relative;
  min-height: clamp(620px, 76vh, 860px);
  overflow: hidden;
  isolation: isolate;
  background: var(--oms-ink);
  color: #fff;
}

.oms-hero__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 201, 232, .32), transparent 28%),
    radial-gradient(circle at 22% 90%, rgba(184, 242, 60, .22), transparent 31%),
    linear-gradient(120deg, #071d2b 0%, #0c3144 55%, #071d2b 100%);
}

.oms-hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.oms-slider,
.oms-slide {
  min-height: inherit;
}

.oms-slide {
  display: none;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: 100%;
  padding: clamp(86px, 10vh, 130px) var(--oms-edge) 110px;
}

.oms-slide.is-active {
  display: grid;
  animation: omsReveal .7s cubic-bezier(.2,.75,.25,1) both;
}

.oms-slide__copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.oms-eyebrow {
  margin: 0 0 18px;
  color: var(--oms-lime);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.oms-slide h1,
.oms-slide h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: "Arial Narrow", "Aptos Display", sans-serif;
  font-size: clamp(3rem, 6vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .91;
}

.oms-slide h2 {
  font-size: clamp(2.5rem, 4.7vw, 5.8rem);
}

.oms-slide__description {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.oms-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.oms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.oms-button:hover {
  transform: translateY(-2px);
}

.oms-button--primary {
  background: var(--oms-lime);
  color: var(--oms-ink);
}

.oms-button--ghost {
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  background: rgba(255,255,255,.06);
}

.oms-slide__price {
  margin-top: 24px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
}

.oms-slide__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 650px);
}

.oms-slide__visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(720px, 100%);
  max-height: 610px;
  object-fit: contain;
  filter: drop-shadow(0 35px 50px rgba(0,0,0,.35));
  transform: rotate(-2deg);
}

.oms-slide__halo {
  position: absolute;
  width: min(580px, 85%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--oms-cyan), var(--oms-lime));
  filter: blur(2px);
  opacity: .85;
}

.oms-slider__controls {
  position: absolute;
  right: var(--oms-edge);
  bottom: 32px;
  left: var(--oms-edge);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.oms-slider__arrow,
.oms-slider__dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.oms-slider__arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 1.2rem;
}

.oms-slider__dots {
  display: flex;
  gap: 7px;
}

.oms-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  transition: width .2s ease, background .2s ease;
}

.oms-slider__dot.is-active {
  width: 28px;
  background: var(--oms-lime);
}

.oms-search,
.oms-categories,
.oms-trust {
  width: calc(100% - (var(--oms-edge) * 2));
  max-width: 1760px;
  margin-right: auto;
  margin-left: auto;
}

.oms-search {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(320px, 1.35fr);
  gap: 32px;
  align-items: center;
  margin-top: -42px;
  padding: 30px;
  border: 1px solid rgba(7,29,43,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(7,29,43,.14);
  position: relative;
  z-index: 8;
}

.oms-search h2,
.oms-section-heading h2 {
  margin: 0;
  color: var(--oms-ink);
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: -.035em;
  line-height: 1;
}

.oms-search .oms-eyebrow,
.oms-categories .oms-eyebrow {
  margin-bottom: 8px;
  color: #25806e;
}

.oms-search__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #eef4f7;
}

.oms-search__form input {
  min-width: 0;
  height: 54px;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--oms-ink);
  font: inherit;
  outline: 0;
}

.oms-search__form button {
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  background: var(--oms-ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.oms-categories {
  padding: clamp(70px, 9vw, 130px) 0;
}

.oms-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.oms-section-heading > a {
  color: var(--oms-ink);
  font-weight: 800;
}

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

.oms-category {
  position: relative;
  min-height: clamp(220px, 26vw, 390px);
  overflow: hidden;
  border-radius: 22px;
  background: #dbe7ed;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(7,29,43,.1);
}

.oms-category:nth-child(1),
.oms-category:nth-child(6) {
  grid-column: span 2;
}

.oms-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.oms-category:hover img {
  transform: scale(1.06);
}

.oms-category__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,29,43,.88), rgba(7,29,43,.05) 72%);
}

.oms-category__content {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.oms-category__content strong,
.oms-category__content small {
  display: block;
}

.oms-category__content strong {
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.05;
}

.oms-category__content small {
  margin-top: 7px;
  color: rgba(255,255,255,.76);
}

.oms-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 60px;
  border-radius: 22px;
  background: rgba(7,29,43,.14);
}

.oms-trust div {
  padding: 28px;
  background: #fff;
}

.oms-trust strong,
.oms-trust span {
  display: block;
}

.oms-trust strong {
  font-size: 1.05rem;
}

.oms-trust span {
  margin-top: 5px;
  color: #63747f;
  font-size: .92rem;
}

.oms-remote-product-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8fbff;
}

.oms-category-accordion,
.oms-archive-products {
  margin-top: 24px;
}

.oms-category-accordion__heading,
.oms-archive-products__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.oms-category-accordion__heading h2,
.oms-archive-products__heading h2 {
  margin: 0;
  color: var(--oms-ink);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1;
}

.oms-category-accordion__heading > span {
  color: #63747f;
  font-size: .9rem;
  font-weight: 700;
}

.oms-category-accordion__items {
  display: grid;
  gap: 10px;
}

.oms-category-accordion__item {
  overflow: hidden;
  border: 1px solid rgba(7,29,43,.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,29,43,.06);
}

.oms-category-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px 20px;
  cursor: pointer;
  color: var(--oms-ink);
  font-size: 1rem;
  font-weight: 850;
  list-style: none;
}

.oms-category-accordion__item summary::-webkit-details-marker {
  display: none;
}

.oms-category-accordion__item summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  background: #eef4f7;
  font-size: 1.25rem;
  line-height: 1;
}

.oms-category-accordion__item[open] summary::after {
  content: "−";
  background: var(--oms-lime);
}

.oms-category-accordion__meta {
  color: #63747f;
  font-size: .82rem;
  font-weight: 750;
}

.oms-category-accordion__panel {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(7,29,43,.08);
}

.oms-category-accordion__all {
  display: inline-flex;
  margin: 18px 0 14px;
  color: #08745f;
  font-weight: 850;
}

.oms-category-accordion__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.oms-category-accordion__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f3f7f9;
  color: var(--oms-ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 720;
}

.oms-category-accordion__links a:hover {
  background: #e5f6ef;
}

.oms-category-accordion__links small {
  color: #08745f;
  font-weight: 850;
}

.oms-archive-products {
  padding-top: 26px;
  border-top: 1px solid rgba(7,29,43,.1);
}

.oms-archive-products .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px !important;
}

.oms-archive-products .products::before,
.oms-archive-products .products::after {
  display: none !important;
}

.oms-archive-products .products li.product {
  width: auto !important;
  margin: 0 !important;
}

.oms-archive-products .woocommerce-pagination {
  margin-top: 28px;
}

@keyframes omsReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .oms-slide {
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .oms-slide__visual {
    min-height: 300px;
  }

  .oms-slide__visual img {
    max-height: 340px;
  }

  .oms-search {
    grid-template-columns: 1fr;
  }

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

  .oms-archive-products .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root { --oms-edge: 14px; }

  .oms-hero {
    min-height: 760px;
  }

  .oms-slide {
    display: none;
    padding-bottom: 100px;
  }

  .oms-slide.is-active {
    display: grid;
  }

  .oms-slide h1,
  .oms-slide h2 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .oms-slider__controls {
    justify-content: center;
  }

  .oms-search {
    margin-top: -24px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .oms-search__form {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .oms-search__form button {
    min-height: 50px;
  }

  .oms-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .oms-category-grid {
    grid-template-columns: 1fr;
  }

  .oms-category:nth-child(1),
  .oms-category:nth-child(6) {
    grid-column: auto;
  }

  .oms-category {
    min-height: 260px;
  }

  .oms-trust {
    grid-template-columns: 1fr;
  }

  .oms-category-accordion__heading,
  .oms-archive-products__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .oms-category-accordion__item summary {
    flex-wrap: wrap;
  }

  .oms-category-accordion__meta {
    order: 3;
    width: 100%;
  }

  .oms-archive-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oms-slide.is-active { animation: none; }
  .oms-category img,
  .oms-button { transition: none; }
}
