/* =============================================================================
   Emporio home page — design language of the MSI RTX Spark landing page
   (docs/msi-rtx-spark-analysis): light glass sections, a dark band, aurora light,
   flowing light ribbons, neon CTA, scroll reveals. Every text colour below meets
   WCAG AA (4.5:1) and stays readable under colour-vision deficiencies
   (docs/msi-rtx-spark-analysis/README.md §6–7, docs/responsively.app.md).
   All rules are scoped to .es / body.es-home so the other pages keep the old theme.
   ============================================================================= */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

.es {
  /* text on light — all ≥ 6:1 on #fff / #f5f7fc */
  --es-ink: #0e1a33;
  --es-text: #3b4863;
  --es-blue: #1d4ed8;
  --es-indigo: #4338ca;
  --es-violet: #6d28d9;
  /* surfaces */
  --es-light: #f5f7fc;
  --es-navy: #070d1f;
  --es-navy-2: #0b1530;
  /* text on dark — all ≥ 9:1 on #0b1530 */
  --es-d-ink: #ffffff;
  --es-d-text: #c9d5ee;
  --es-d-accent: #9cc3ff;
  /* decorative light (never carries text) */
  --es-glow-blue: #3d8bff;
  --es-glow-violet: #8b6bff;
  --es-glow-pink: #ff5fd2;
  --es-glow-cyan: #5fd3ff;
  --es-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  overflow-x: clip;
  background: var(--es-light);
  color: var(--es-text);
  font-family: "Manrope", "Open Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.es *,
.es *::before,
.es *::after {
  box-sizing: border-box;
}
.es h1,
.es h2,
.es h3 {
  margin: 0;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  color: var(--es-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.es p,
.es figure,
.es blockquote {
  margin: 0;
}
.es ul,
.es ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.es img {
  display: block;
  max-width: 100%;
  height: auto;
}
.es a {
  transition: none; /* the old theme animates `all` on every link */
}
.es a:focus-visible {
  outline: 3px solid var(--es-glow-blue);
  outline-offset: 4px;
}
.es-container {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.es-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------- type & small parts */
.es-grad {
  background: linear-gradient(95deg, var(--es-blue) 0%, var(--es-indigo) 50%, var(--es-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.es-grad--light {
  background-image: linear-gradient(95deg, #a9cbff 0%, #cdbdff 50%, #8fe3ff 100%);
}
.es-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--es-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}
.es-eyebrow::before,
.es-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.es-eyebrow--dark {
  color: var(--es-d-accent);
}
.es-title {
  margin-top: 16px !important;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}
.es-title--center {
  text-align: center;
}
.es-title--light {
  color: var(--es-d-ink) !important;
}
.es-title--sm {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.es-sub {
  margin-top: 18px !important;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
.es-sub--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ---------------------------------------------------------------- buttons */
/* Neon border: a conic-gradient square rotates behind the pill (a compositor-only transform,
   no repaint per frame); the 2px gap around the dark label is the visible border. */
.es-btn-neon {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 2px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 22px -4px rgba(61, 139, 255, 0.6), 0 0 34px -10px rgba(255, 95, 210, 0.45);
  transition: box-shadow 0.3s !important;
}
.es-btn-neon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: max(160%, 260px);
  aspect-ratio: 1;
  background: conic-gradient(var(--es-glow-blue), var(--es-glow-violet), var(--es-glow-pink), var(--es-glow-cyan), var(--es-glow-blue));
  transform: translate(-50%, -50%);
  animation: es-rotate 4s linear infinite;
  will-change: transform;
}
.es-btn-neon > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 50% 130%, rgba(76, 90, 230, 0.55), transparent 60%), linear-gradient(180deg, #121a3f, #0b1030);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.es-btn-neon svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--es-ease);
}
.es-btn-neon:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 30px -2px rgba(61, 139, 255, 0.8), 0 0 46px -8px rgba(255, 95, 210, 0.6);
}
.es-btn-neon:hover svg {
  transform: translateX(3px);
}
.es-btn-glass {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(13, 21, 46, 0.72);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s !important;
}
.es-btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(30, 42, 82, 0.85);
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------------------- hero */
.es-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 960px);
  padding: clamp(130px, 17vh, 180px) 0 clamp(120px, 14vw, 190px);
  overflow: hidden;
  background: var(--es-navy);
  color: var(--es-d-text);
}
.es-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.es-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 70% 40%;
  opacity: 0.6;
}
/* POS terminal photo: the terminal is on the left of the original, so it is mirrored to sit
   beside the copy. object-position picks the part of the original (before the mirror):
   20% keeps the terminal in frame on narrow, tall screens. */
.es-hero__photo--pos {
  object-position: 20% 45%;
  opacity: 0.72;
  transform: scaleX(-1);
}
@media (max-width: 1024px) {
  /* the copy spans the photo here: keep the lit screen and receipt dim behind it (AA) */
  .es-hero__photo--pos { opacity: 0.42; }
}
.es-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 31, 0.96) 0%, rgba(7, 13, 31, 0.86) 36%, rgba(7, 13, 31, 0.45) 70%, rgba(7, 13, 31, 0.3) 100%),
    linear-gradient(180deg, rgba(7, 13, 31, 0.6) 0%, transparent 28%, transparent 58%, rgba(7, 13, 31, 0.92) 100%);
}
.es-aurora {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.es-aurora--a {
  top: -12vw;
  left: -14vw;
  width: 62vw;
  height: 46vw;
  background: radial-gradient(closest-side, rgba(61, 139, 255, 0.55), rgba(61, 139, 255, 0.16) 60%, transparent);
  animation: es-drift-a 22s ease-in-out infinite alternate;
}
.es-aurora--b {
  top: 6%;
  right: -12vw;
  width: 52vw;
  height: 42vw;
  background: radial-gradient(closest-side, rgba(139, 107, 255, 0.45), rgba(139, 107, 255, 0.12) 60%, transparent);
  animation: es-drift-b 27s ease-in-out infinite alternate;
}
.es-aurora--c {
  bottom: -20vw;
  left: 28%;
  width: 48vw;
  height: 40vw;
  background: radial-gradient(closest-side, rgba(95, 211, 255, 0.38), rgba(95, 211, 255, 0.1) 60%, transparent);
  animation: es-drift-c 31s ease-in-out infinite alternate;
}
/* Light ribbon: a background layer only. It drifts with translate (never scale: scaling made
   Chrome re-rasterise the whole SVG every frame) and is masked away from the text. */
.es-ribbon {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 64%;
  pointer-events: none;
  animation: es-breathe 16s ease-in-out infinite alternate;
  will-change: transform;
}
.es-ribbon--hero {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, #000 72%);
}
.es-ribbon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.es-ribbon path,
.es-net__lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.es-ribbon__line {
  stroke: url(#es-g-ribbon);
  stroke-width: 1.1;
}

/* Light comets (home.js moves them along the curves with transform/opacity only, so they
   never trigger a repaint). Head at the right edge = transform origin = the point on the curve;
   a bright head, a tapering core line and a soft halo, all plain gradients. */
.es-comet {
  --len: 150px;
  --glow: 14px;
  --head: #ffffff;
  --core: rgba(190, 214, 255, 0.9);
  --halo: rgba(95, 160, 255, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--len);
  height: var(--glow);
  margin: calc(var(--glow) / -2) 0 0 calc(var(--len) * -1);
  background:
    radial-gradient(circle 3px at calc(100% - 3px) 50%, var(--head) 45%, transparent),
    linear-gradient(90deg, transparent, var(--core) 75%, var(--head)) 0 50% / 100% 2px no-repeat,
    radial-gradient(ellipse 100% 50% at 100% 50%, var(--halo), transparent 75%);
  transform-origin: 100% 50%;
  opacity: 0;
  pointer-events: none;
}
.es-comet--wave {
  --len: 96px;
  --glow: 12px;
}
.es-comet--alt {
  --core: rgba(156, 195, 255, 0.9);
  --head: #cfe0ff;
}
.es-comet--net {
  --len: 56px;
  --glow: 12px;
  --head: #1d4ed8;
  --core: #3d8bff;
  --halo: rgba(61, 139, 255, 0.35);
}
.es-comet--in {
  --head: #6d28d9;
  --core: #8b6bff;
  --halo: rgba(139, 107, 255, 0.35);
}
.es-wave__comets {
  overflow: visible;
}

.es-hero__cubes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.es-cube {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  overflow: visible;
  filter: drop-shadow(0 16px 30px rgba(40, 110, 255, 0.38));
  animation: es-float var(--f, 7s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transition: translate 0.7s var(--es-ease);
}
.es-cube--glass {
  --cube-top: rgba(255, 255, 255, 0.95);
  --cube-left: rgba(206, 220, 255, 0.82);
  --cube-right: rgba(146, 172, 240, 0.78);
}
.es-cube--blue {
  --cube-top: #bcd5ff;
  --cube-left: #4d86ff;
  --cube-right: #2047c9;
}
.es-cube--green {
  /* Emporio's own green, kept as a decorative accent from the logo cube */
  --cube-top: #a6f2c0;
  --cube-left: #1fbf57;
  --cube-right: #13883a;
}
.es-cube--violet {
  --cube-top: #ddd2ff;
  --cube-left: #8b6bff;
  --cube-right: #5634d6;
}

.es-hero__inner {
  z-index: 4;
}
.es-hero__inner > * {
  max-width: 720px;
}
.es-hero__title {
  margin: 20px 0 24px !important;
  color: var(--es-d-ink) !important;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem) !important;
  font-weight: 800;
  line-height: 1.03;
}
.es-hero__lead {
  max-width: 620px !important;
  color: var(--es-d-text);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.7;
}
.es-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* POS terminal on a light "stage" (MSI-style product hero). The black body would vanish on the
   navy, so a blue/violet glow sits behind it, a floor glow under the base and a thin rim light
   on the cut-out. Wide screens: beside the copy; below 1100px: under it (see responsive). */
.es-hero__device {
  --dw: clamp(380px, 35vw, 540px);
  position: absolute;
  top: calc(50% + 20px);
  right: max(28px, calc((100% - 1200px) / 2));
  z-index: 2;
  width: var(--dw);
  margin-top: calc(var(--dw) * -0.55); /* centred: transform is taken by the entrance animation */
  transition: translate 0.7s var(--es-ease);
}
.es-hero__device::before,
.es-hero__device::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.es-hero__device::before {
  inset: -16% -20% -4% -18%;
  background:
    radial-gradient(closest-side at 46% 42%, rgba(61, 139, 255, 0.5), rgba(61, 139, 255, 0.14) 55%, transparent 78%),
    radial-gradient(closest-side at 64% 60%, rgba(139, 107, 255, 0.34), transparent 70%);
}
.es-hero__device::after {
  right: 0;
  bottom: -2%;
  left: 8%;
  height: 10%;
  background: radial-gradient(closest-side, rgba(95, 211, 255, 0.42), rgba(61, 139, 255, 0.12) 60%, transparent);
}
.es-hero__device picture {
  display: block;
  animation: es-hover 9s ease-in-out infinite alternate;
}
.es-hero__device img {
  display: block;
  width: 100%;
  height: auto !important;
  filter: drop-shadow(0 0 1px rgba(170, 200, 255, 0.85)) drop-shadow(0 34px 38px rgba(0, 0, 0, 0.55));
}
.es-rise {
  opacity: 0;
  transform: translateY(26px);
  animation: es-rise 0.9s var(--es-ease) forwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.12s);
}

/* glowing wave dividers */
.es-wave {
  position: absolute;
  left: 0;
  z-index: 5;
  width: 100%;
  height: clamp(64px, 9vw, 140px);
  overflow: visible;
  pointer-events: none;
}
.es-wave path {
  vector-effect: non-scaling-stroke;
}
.es-wave--hero,
.es-wave--bottom {
  bottom: -1px;
}
.es-wave--top {
  top: -1px;
  transform: scaleY(-1);
}
.es-wave__fill {
  fill: var(--es-light);
}
.es-wave__line,
.es-wave__glow {
  fill: none;
  stroke: url(#es-g-wave);
}
.es-wave__line {
  stroke-width: 2;
}
.es-wave__glow {
  stroke-width: 10;
  opacity: 0.55;
  filter: blur(6px);
}

/* ---------------------------------------------------------------- light sections */
.es-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 0;
  background: var(--es-light);
}
.es-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 42% at 10% 28%, rgba(120, 170, 255, 0.2), transparent 70%),
    radial-gradient(42% 40% at 92% 72%, rgba(150, 120, 255, 0.15), transparent 70%);
}
.es-head {
  max-width: 840px;
  margin: 0 auto clamp(44px, 6vw, 76px);
  text-align: center;
}

/* scroll reveal (only once home.js is running, so the page is complete without it) */
.es.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--es-ease), transform 0.9s var(--es-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.es.is-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- multi-store network */
.es-net {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-areas:
    "one . two"
    "hq hub pop"
    ". eco .";
  gap: 30px 56px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.es-net__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.es-net__path {
  stroke: rgba(29, 78, 216, 0.45);
  stroke-width: 1.8;
  stroke-dasharray: 3 7;
}
.es-net__comets {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.es-network {
  padding-bottom: clamp(24px, 3vw, 48px);
}
.es-start {
  padding-top: clamp(24px, 3vw, 48px);
}
.es-net__dot {
  fill: #fff;
  stroke: var(--es-glow-blue);
  stroke-width: 2.5;
}
.es-net__hub {
  position: relative;
  z-index: 2;
  grid-area: hub;
  justify-self: center;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #1d2d66, var(--es-navy-2) 68%);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(61, 139, 255, 0.08), 0 0 0 24px rgba(61, 139, 255, 0.05), 0 34px 60px -22px rgba(29, 78, 216, 0.6);
}
.es-net__hub::before,
.es-net__hub::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(61, 139, 255, 0.45);
  border-radius: 50%;
  animation: es-ping 3.6s var(--es-ease) infinite;
}
.es-net__hub::after {
  animation-delay: -1.8s;
}
.es-net__hub span {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.es-net__logo {
  width: 92px;
  height: 92px;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(61, 139, 255, 0.45));
}
.es-node {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(220px, 100%);
}
.es-node--hq { grid-area: hq; }
.es-node--one { grid-area: one; }
.es-node--two { grid-area: two; }
.es-node--pop { grid-area: pop; }
.es-node--eco { grid-area: eco; }
.es-node__card {
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #f1f5ff);
  box-shadow: inset 0 1px 0 #fff, 0 22px 44px -22px rgba(29, 78, 216, 0.4), 0 2px 8px rgba(14, 26, 51, 0.06);
  text-align: center;
  animation: es-bob 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -1.4s);
}
.es-node__card img {
  width: auto;
  height: 76px;
  margin: 0 auto 12px;
}
.es-node__card figcaption {
  color: var(--es-ink);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: capitalize;
}
.es-net__city {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 6px;
  opacity: 0.2;
  pointer-events: none;
}

/* ---------------------------------------------------------------- getting started */
.es-start__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) clamp(22px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.82) 55%, rgba(255, 255, 255, 0.9));
  box-shadow: 0 44px 90px -44px rgba(29, 78, 216, 0.4), 0 0 0 1px rgba(29, 78, 216, 0.06);
}
.es-start__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 0%, rgba(61, 139, 255, 0.14), transparent 70%);
}
.es-start__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.es-ring {
  position: absolute;
  top: -150px;
  right: -130px;
  width: 440px;
  aspect-ratio: 1;
  border: 18px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(61, 139, 255, 0.16), 0 24px 60px rgba(61, 139, 255, 0.14);
  animation: es-float 12s ease-in-out infinite alternate;
}
.es-spark {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  color: var(--es-glow-blue);
  animation: es-twinkle var(--tw, 3.2s) ease-in-out infinite;
}
.es-cube--mini {
  filter: drop-shadow(0 8px 14px rgba(40, 110, 255, 0.3));
}
.es-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(44px, 5vw, 66px) !important;
}
.es-step {
  position: relative;
  padding-top: 28px;
}
.es-step__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(29, 78, 216, 0.15);
}
.es-step__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--es-blue), var(--es-violet), var(--es-glow-cyan));
  transform: scaleX(0);
  transform-origin: left;
  animation: es-fill 7.5s var(--es-ease) infinite;
  animation-delay: calc(var(--i, 0) * 2.5s);
}
.es-step__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.es-step__num {
  color: var(--es-blue);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.es-step__top img {
  width: auto;
  height: 54px;
}
.es-step h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}
.es-step p {
  line-height: 1.7;
}

/* ---------------------------------------------------------------- dark band */
.es-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(140px, 15vw, 210px) 0;
  background: radial-gradient(70% 55% at 50% 0%, rgba(40, 90, 200, 0.35), transparent 70%), linear-gradient(180deg, var(--es-navy-2) 0%, #0a1122 50%, #0d1428 100%);
  color: var(--es-d-text);
  /* the band's height is fractional: let the next (light) section overlap it slightly so
     no 1px dark seam shows under the wave */
  margin-bottom: -2px;
}
.es-dark__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.es-aurora--d {
  top: 8%;
  left: -16vw;
  width: 54vw;
  height: 40vw;
  background: radial-gradient(closest-side, rgba(31, 95, 255, 0.5), rgba(31, 95, 255, 0.14) 60%, transparent);
  animation: es-drift-a 24s ease-in-out infinite alternate;
}
.es-aurora--e {
  right: -14vw;
  bottom: 4%;
  width: 50vw;
  height: 40vw;
  background: radial-gradient(closest-side, rgba(91, 61, 255, 0.42), rgba(91, 61, 255, 0.12) 60%, transparent);
  animation: es-drift-b 29s ease-in-out infinite alternate;
}
.es-ribbon--band {
  inset: 0;
  height: 100%;
  opacity: 0.75;
  /* keep the lines in the margins and out from behind the headings and quotes */
  -webkit-mask-image: radial-gradient(62% 58% at 50% 50%, transparent 55%, #000 100%);
  mask-image: radial-gradient(62% 58% at 50% 50%, transparent 55%, #000 100%);
}
.es-dark__inner {
  display: grid;
  gap: clamp(64px, 8vw, 100px);
}
.es-cta {
  text-align: center;
}
.es-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.es-reviews {
  text-align: center;
}
.es-reviews > .es-title {
  margin-bottom: 36px;
}
.es-quotes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.es-quote {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: linear-gradient(160deg, #18233f, #0f1832); /* opaque: the light ribbon stays behind */
}
.es-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 170, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.es-quote:hover::before {
  opacity: 1;
}
.es-quote::after {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 18px;
  color: rgba(156, 195, 255, 0.22);
  font: 800 4.5rem/1 "Sora", serif;
  pointer-events: none;
}
.es-quote blockquote p {
  position: relative;
  color: #eef3ff;
  font-size: 1.02rem;
  line-height: 1.6;
}
.es-quote blockquote p + p {
  margin-top: 10px;
  color: var(--es-d-text);
}
.es-reviews__more {
  margin-top: 30px !important;
}
.es-reviews__more a {
  color: var(--es-d-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.es-reviews__more a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- partners */
.es-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto !important;
}
.es-logo {
  position: relative;
  display: grid;
  place-items: center;
  height: 124px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(14, 26, 51, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px -24px rgba(29, 78, 216, 0.4);
}
.es-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 139, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.es-logo:hover::before {
  opacity: 1;
}
.es-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: es-sheen 9s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
  pointer-events: none;
}
.es-logo img {
  position: relative;
  width: auto;
  max-height: 64px;
  object-fit: contain;
}

/* ---------------------------------------------------------------- header & footer on this page */
body.es-home .header.sticky {
  background: rgba(7, 13, 31, 0.94);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
@media (min-width: 992px) {
  body.es-home .header #menu > .menu-item > a:hover,
  body.es-home .header.sticky #menu > .menu-item > a:hover {
    color: var(--es-d-accent, #9cc3ff);
  }
}
body.es-home .footer {
  position: relative;
  background: radial-gradient(80% 120% at 50% 0%, rgba(61, 139, 255, 0.16), transparent 60%), linear-gradient(180deg, #0b1530, #070d1f);
}
body.es-home .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3d8bff, #8b6bff, #5fd3ff, transparent);
}

/* ---------------------------------------------------------------- keyframes */
@keyframes es-rotate { to { transform: translate(-50%, -50%) rotate(1turn); } }
@keyframes es-rise { to { opacity: 1; transform: none; } }
@keyframes es-drift-a { to { transform: translate(14vw, 6vw) scale(1.15); } }
@keyframes es-drift-b { to { transform: translate(-12vw, 5vw) scale(0.92); } }
@keyframes es-drift-c { to { transform: translate(-10vw, -8vw) scale(1.2); } }
@keyframes es-breathe {
  from { transform: translateY(-2.5%); }
  to { transform: translateY(2.5%); }
}
@keyframes es-float {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-18px) rotate(5deg); }
}
@keyframes es-bob { to { transform: translateY(-8px); } }
@keyframes es-hover { to { transform: translateY(-12px); } }
@keyframes es-ping {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes es-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
@keyframes es-fill {
  0% { opacity: 1; transform: scaleX(0); }
  30% { opacity: 1; transform: scaleX(1); }
  45%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes es-sheen {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* loops stop while their section is off screen (home.js) */
.es .is-paused,
.es .is-paused *,
.es .is-paused *::before,
.es .is-paused *::after {
  animation-play-state: paused !important;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1099px) {
  /* not enough room beside the copy: the terminal follows it */
  .es-hero__device {
    --dw: min(400px, 74vw);
    position: relative;
    top: auto;
    right: auto;
    margin: clamp(36px, 6vw, 56px) auto 0;
  }
  /* the cubes float around the terminal, not over its screen or the copy (positions are
     inline custom properties, hence !important) */
  .es-hero__cubes .es-cube:nth-child(2) { --x: 9% !important; --y: 72% !important; }
  .es-hero__cubes .es-cube:nth-child(3) { --x: 82% !important; --y: 62% !important; }
}
@media (max-width: 767px) {
  .es-hero__cubes .es-cube:nth-child(1) { --x: 76% !important; --y: 57% !important; --s: 56px !important; }
  .es-hero__cubes .es-cube:nth-child(2) { --x: 5% !important; --y: 86% !important; --s: 42px !important; }
}
@media (max-width: 1024px) {
  .es-start__deco .es-cube--mini { display: none; }
  .es-quotes { grid-template-columns: repeat(2, 1fr); }
  .es-logos { grid-template-columns: repeat(3, 1fr); }
  .es-net { gap: 26px 28px; }
}
@media (max-width: 767px) {
  .es-hero { min-height: auto; padding-top: 118px; }
  .es-hero__actions > a { flex: 1 1 auto; justify-content: center; }
  .es-hero__actions .es-btn-neon > span { justify-content: center; width: 100%; }
  .es-hero__cubes .es-cube { opacity: 0.45; }
  .es-hero__cubes .es-cube:nth-child(n + 3) { display: none; }
  .es-net {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hub hub"
      "hq one"
      "two pop"
      "eco eco";
    gap: 22px 14px;
  }
  .es-net__hub { width: 176px; }
  .es-net__logo { width: 72px; height: 72px; }
  .es-node { width: 100%; }
  .es-node--eco { width: calc(50% - 7px); }
  .es-node__card img { height: 60px; }
  .es-steps { grid-template-columns: 1fr; }
  .es-ring { width: 300px; top: -120px; right: -150px; }
  .es-start__deco .es-spark:nth-of-type(n + 3) { display: none; }
}
@media print {
  .es [data-reveal],
  .es .es-rise { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 600px) {
  .es-quotes { grid-template-columns: 1fr; }
  .es-logos { grid-template-columns: repeat(2, 1fr); }
  .es-logo { height: 104px; }
}

/* ---------------------------------------------------------------- user preferences */
@media (prefers-reduced-motion: reduce) {
  .es *,
  .es *::before,
  .es *::after {
    animation: none !important;
    transition: none !important;
  }
  .es .es-rise,
  .es.is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .es-comet { display: none; }
}
@media (forced-colors: active) {
  .es-aurora,
  .es-ribbon,
  .es-hero__cubes,
  .es-hero__photo,
  .es-wave,
  .es-comet,
  .es-start__deco,
  .es-net__lines,
  .es-net__logo,
  .es-section::before,
  .es-hero__device::before,
  .es-hero__device::after,
  .es-logo::after { display: none !important; }
  .es-grad {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }
  .es-btn-neon::before { display: none; }
  .es-btn-neon > span,
  .es-btn-glass,
  .es-node__card,
  .es-quote,
  .es-net__hub { border: 1px solid CanvasText; }
  /* the logo image is white text: keep the header dark so it stays visible */
  body.es-home .header {
    forced-color-adjust: none;
    background: #070d1f;
  }
}
