/* Magento 2 landing page — technical extension of the shared TEWS visual system. */
body.tews-magento-page {
  overflow-x: hidden;
  overflow-x: clip;
}

.tews-magento {
  --tews-mg-navy: #07182d;
  --tews-mg-navy-soft: #0b213a;
  --tews-mg-gold: #c8a96b;
  --tews-mg-gold-hover: #e2c88a;
  --tews-mg-cream: #f5eedf;
  --tews-mg-warm: #e9dcc0;
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: clip;
  background: var(--tews-mg-navy);
}

.tews-magento,
.tews-magento *,
.tews-magento *::before,
.tews-magento *::after {
  box-sizing: border-box;
}

.tews-magento h1,
.tews-magento h2,
.tews-magento h3,
.tews-magento p,
.tews-magento li,
.tews-magento a {
  font-family: "Kiro", sans-serif;
}

.tews-magento h1,
.tews-magento h2,
.tews-magento h3 {
  margin-top: 0;
  text-wrap: balance;
}

.tews-mg-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.tews-mg-eyebrow {
  margin: 0 0 20px;
  color: var(--tews-mg-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tews-mg-number {
  display: block;
  margin-bottom: 14px;
  color: var(--tews-mg-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.tews-mg-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--tews-header-height, 88px) + 74px) 0 84px;
  align-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 77% 48%, rgba(200, 169, 107, 0.14), transparent 31%),
    linear-gradient(128deg, #041223 0%, var(--tews-mg-navy) 58%, #0a2038 100%);
}

.tews-mg-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.55), transparent);
}

.tews-mg-hero__grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.34;
  pointer-events: none;
}

.tews-mg-hero__grid::before,
.tews-mg-hero__grid::after {
  position: absolute;
  content: "";
  background-image: linear-gradient(rgba(200, 169, 107, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 169, 107, 0.1) 1px, transparent 1px);
  background-size: 94px 94px;
}

.tews-mg-hero__grid::before {
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 18%, #000 66%, transparent);
}

.tews-mg-hero__grid::after {
  top: 20%;
  right: -8%;
  width: 54%;
  height: 65%;
  transform: perspective(700px) rotateY(-28deg) rotateZ(-3deg);
  border: 1px solid rgba(200, 169, 107, 0.28);
  background-size: 58px 58px;
}

.tews-mg-hero__grid > span {
  position: absolute;
  right: 9%;
  width: 8px;
  height: 8px;
  background: var(--tews-mg-gold);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(200, 169, 107, 0.75);
}

.tews-mg-hero__grid > span:nth-child(1) { top: 22%; }
.tews-mg-hero__grid > span:nth-child(2) { top: 35%; right: 25%; }
.tews-mg-hero__grid > span:nth-child(3) { top: 57%; right: 13%; }
.tews-mg-hero__grid > span:nth-child(4) { top: 73%; right: 34%; }
.tews-mg-hero__grid > span:nth-child(5) { top: 46%; right: 43%; }

.tews-mg-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.tews-mg-hero__copy {
  max-width: 740px;
}

.tews-mg-hero h1 {
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.01;
}

.tews-mg-hero__copy > p:not(.tews-mg-eyebrow) {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.7;
}

.tews-mg-hero__copy .tews-button {
  margin-top: 18px;
}

.tews-mg-architecture {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(200, 169, 107, 0.25);
  border-radius: 50%;
}

.tews-mg-architecture::before,
.tews-mg-architecture::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px solid rgba(200, 169, 107, 0.2);
  border-radius: 50%;
}

.tews-mg-architecture::after {
  inset: 28%;
  border-color: rgba(200, 169, 107, 0.34);
}

.tews-mg-architecture__core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  place-content: center;
  text-align: center;
  background: #07182d;
  border: 1px solid var(--tews-mg-gold);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 0 42px rgba(200, 169, 107, 0.12);
}

.tews-mg-architecture__core span {
  color: #fff;
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.tews-mg-architecture__core small {
  color: var(--tews-mg-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tews-mg-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--tews-mg-gold-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  background: var(--tews-mg-navy-soft);
  border: 1px solid rgba(200, 169, 107, 0.5);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.tews-mg-node::after {
  content: none;
}

.tews-mg-node--erp { top: 6%; left: 20%; }
.tews-mg-node--erp::after { left: 48px; top: 61px; transform: rotate(43deg); }
.tews-mg-node--pim { top: 12%; right: 10%; }
.tews-mg-node--pim::after { right: 48px; top: 61px; transform: rotate(137deg); }
.tews-mg-node--api { right: 0; bottom: 18%; }
.tews-mg-node--api::after { right: 56px; top: 12px; transform: rotate(202deg); }
.tews-mg-node--data { bottom: 5%; left: 17%; }
.tews-mg-node--data::after { left: 55px; top: 5px; transform: rotate(-41deg); }

.tews-mg-next {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  width: 30px;
  height: 46px;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 169, 107, 0.78);
  border-radius: 18px;
}

.tews-mg-next span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 3px;
  height: 7px;
  transform: translateX(-50%);
  background: var(--tews-mg-gold);
  border-radius: 3px;
  animation: tewsMgWheel 2.8s ease-in-out infinite;
}

.tews-mg-section {
  position: relative;
  padding: clamp(92px, 10vw, 150px) 0;
  overflow: hidden;
}

.tews-mg-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(200, 169, 107, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 169, 107, 0.07) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000 77%, transparent);
  opacity: 0.58;
}

.tews-mg-section--light {
  color: rgba(7, 24, 45, 0.8);
  background: var(--tews-mg-cream);
}

.tews-mg-section--warm {
  color: rgba(7, 24, 45, 0.8);
  background: var(--tews-mg-warm);
}

.tews-mg-section--dark {
  color: rgba(255, 255, 255, 0.72);
  background: var(--tews-mg-navy);
}

.tews-mg-section h2 {
  margin-bottom: 26px;
  color: var(--tews-mg-navy);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.tews-mg-section--dark h2,
.tews-mg-section--dark h3 {
  color: #fff;
}

.tews-mg-heading {
  max-width: 800px;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.tews-mg-heading--center {
  margin-inline: auto;
  text-align: center;
}

.tews-mg-heading--center > p:not(.tews-mg-eyebrow) {
  max-width: 660px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

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

.tews-mg-card {
  position: relative;
  min-height: 245px;
  padding: 34px 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(7, 24, 45, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(7, 24, 45, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tews-mg-card::after {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  content: "";
  border: 1px solid rgba(200, 169, 107, 0.38);
  transform: rotate(45deg);
}

.tews-mg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 107, 0.72);
  box-shadow: 0 24px 56px rgba(7, 24, 45, 0.1);
}

.tews-mg-card > span {
  display: block;
  margin-bottom: 30px;
  color: #9a7330;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tews-mg-card h3 {
  margin-bottom: 14px;
  color: var(--tews-mg-navy);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.tews-mg-card p,
.tews-mg-copy > p:not(.tews-mg-eyebrow) {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 300;
  line-height: 1.7;
}

.tews-mg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
}

.tews-mg-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tews-mg-experience-grid article {
  position: relative;
  min-height: 190px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(200, 169, 107, 0.25);
  border-radius: 15px;
}

.tews-mg-experience-grid article::before {
  position: absolute;
  top: 0;
  left: 24px;
  width: 44px;
  height: 2px;
  content: "";
  background: var(--tews-mg-gold);
}

.tews-mg-experience-grid h3 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 400;
}

.tews-mg-experience-grid p {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.tews-mg-stack {
  display: flex;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
}

.tews-mg-stack li {
  margin: 0;
  padding: 11px 18px;
  color: var(--tews-mg-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(7, 24, 45, 0.18);
  border-radius: 999px;
}

.tews-mg-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.tews-mg-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tews-mg-timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 22px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--tews-mg-gold), rgba(200, 169, 107, 0.12));
}

.tews-mg-timeline li {
  position: relative;
  display: grid;
  min-height: 76px;
  margin: 0;
  padding: 12px 18px 12px 76px;
  align-items: center;
  border-bottom: 1px solid rgba(7, 24, 45, 0.1);
}

.tews-mg-timeline li > span {
  position: absolute;
  z-index: 2;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--tews-mg-navy);
  font-size: 11px;
  font-weight: 700;
  background: var(--tews-mg-gold);
  border-radius: 50%;
}

.tews-mg-timeline strong {
  color: var(--tews-mg-navy);
  font-size: 17px;
  font-weight: 400;
}

.tews-mg-blog {
  padding-block: clamp(78px, 8vw, 112px);
}

.tews-mg-blog__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.tews-mg-blog__inner > div {
  max-width: 790px;
}

.tews-mg-blog h2 {
  margin-bottom: 20px;
}

.tews-mg-blog p:not(.tews-mg-eyebrow) {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

.tews-mg-blog .tews-button {
  white-space: nowrap;
}

.tews-mg-contact {
  color: var(--tews-mg-navy);
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.76), transparent 54%),
    linear-gradient(135deg, #f7f0e2, #e9d8b6);
}

.tews-mg-contact__inner {
  max-width: 890px;
}

.tews-mg-contact h2 {
  font-size: clamp(42px, 5.4vw, 72px);
}

.tews-mg-contact__inner > p:not(.tews-mg-eyebrow) {
  max-width: 710px;
  margin: 0 auto 14px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.65;
}

.tews-mg-contact .tews-button {
  margin-top: 28px;
}

.tews-mg-contact__email {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  color: var(--tews-mg-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration-color: rgba(7, 24, 45, 0.36);
  text-underline-offset: 5px;
}

@keyframes tewsMgWheel {
  0%, 58%, 100% { transform: translate(-50%, 0); opacity: 0.65; }
  72% { transform: translate(-50%, 7px); opacity: 1; }
  86% { transform: translate(-50%, 0); opacity: 0.65; }
}

@media (max-width: 1000px) {
  .tews-mg-hero__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
    gap: 36px;
  }

  .tews-mg-architecture {
    width: 320px;
  }

  .tews-mg-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tews-mg-split,
  .tews-mg-workflow {
    grid-template-columns: 1fr;
  }

  .tews-mg-copy {
    max-width: 780px;
  }

  .tews-mg-timeline {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .tews-mg-shell {
    width: min(100% - 32px, 620px);
  }

  .tews-mg-hero {
    min-height: 100svh;
    padding: calc(var(--tews-header-height, 70px) + 54px) 0 78px;
  }

  .tews-mg-hero__inner {
    display: block;
  }

  .tews-mg-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .tews-mg-architecture {
    display: none;
  }

  .tews-mg-section {
    padding: 78px 0;
  }

  .tews-mg-section h2 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .tews-mg-service-grid,
  .tews-mg-experience-grid {
    grid-template-columns: 1fr;
  }

  .tews-mg-card {
    min-height: 0;
  }

  .tews-mg-experience-grid article {
    min-height: 0;
  }

  .tews-mg-stack {
    gap: 9px;
  }

  .tews-mg-stack li {
    padding: 9px 14px;
    font-size: 13px;
  }

  .tews-mg-blog__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tews-mg-blog .tews-button {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .tews-mg-shell {
    width: calc(100% - 28px);
  }

  .tews-mg-hero h1 {
    font-size: 42px;
  }

  .tews-mg-hero__copy > p:not(.tews-mg-eyebrow),
  .tews-mg-card p,
  .tews-mg-copy > p:not(.tews-mg-eyebrow) {
    font-size: 15px;
  }

  .tews-mg-card,
  .tews-mg-experience-grid article {
    padding: 26px 22px;
  }

  .tews-mg-contact .tews-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tews-mg-next span {
    animation: none;
  }

  .tews-mg-card {
    transition: none;
  }
}
