:root {
  color-scheme: dark;
  --ai-panel: rgba(3, 10, 20, 0.92);
  --ai-line: rgba(130, 215, 255, 0.2);
  --ai-line-strong: rgba(130, 215, 255, 0.52);
  --ai-text: #dce9f3;
  --ai-muted: #91a7bc;
  --ai-teal: #82d7ff;
  --ai-teal-soft: #bfe8fa;
  --ai-cobalt: #3168e8;
  --ai-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --ai-content: 1200px;
  --ai-tech-font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body.ai-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ai-text);
  background:
    radial-gradient(circle at 82% 9%, rgba(31, 78, 150, 0.12), transparent 31rem),
    radial-gradient(circle at 8% 31%, rgba(28, 77, 111, 0.055), transparent 27rem),
    linear-gradient(145deg, #010307 0%, #020810 48%, #010307 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ai-page::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 215, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 215, 255, 0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

body.ai-page::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(130, 215, 255, 0.012) 50%, transparent 75%);
}

.ai-page :where(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
}

.ai-page :where(a, button, summary):focus-visible {
  outline: 2px solid var(--ai-teal);
  outline-offset: 4px;
}

.ai-page a {
  color: inherit;
}

.ai-page [hidden] {
  display: none !important;
}

.ai-page img,
.ai-page canvas {
  max-width: 100%;
}

.ai-page button,
.ai-page input,
.ai-page select {
  font: inherit;
}

.ai-page .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ai-teal);
  border-radius: 999px;
  color: var(--ai-teal-soft);
  background: #061422;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.ai-page .skip-link:focus {
  transform: translateY(0);
}

.ai-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--ai-content), calc(100% - 40px));
  min-height: 68px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(88, 213, 207, 0.15);
  border-radius: 22px;
  background: rgba(3, 11, 17, 0.79);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(135%);
}

.ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}

.ai-page .ai-brand {
  color: #bfe8fa;
}

.ai-brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 48px;
  place-items: center;
  isolation: isolate;
}

.ai-brand-mark::before,
.ai-brand-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  mask: url("aurevant-logo-transparent.png") center / contain no-repeat;
}

.ai-brand-mark::before {
  background: #57c9ff;
  opacity: 0.4;
  filter: blur(8px);
}

.ai-brand-mark::after {
  background: linear-gradient(112deg, transparent 32%, #bdeeff 45%, #fff 50%, #63d3ff 54%, transparent 66%);
  background-size: 240% 100%;
  animation: ai-logo-flow 5.2s ease-in-out infinite;
}

.ai-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.72) sepia(0.24) hue-rotate(154deg) saturate(2.1) brightness(1.08)
    drop-shadow(0 0 2px rgba(168, 235, 255, 0.95))
    drop-shadow(0 0 7px rgba(39, 170, 255, 0.72));
}

@keyframes ai-logo-flow {
  0%, 14% { background-position: 130% 0; opacity: 0.12; }
  38%, 60% { opacity: 0.86; }
  82%, 100% { background-position: -140% 0; opacity: 0.12; }
}

.ai-brand > span {
  display: grid;
  line-height: 1;
}

.ai-brand > .ai-brand-mark {
  display: block;
  line-height: initial;
}

.ai-brand small {
  margin-top: 4px;
  color: var(--ai-muted);
  font-size: 0.65rem;
  font-weight: 680;
  letter-spacing: 0.2em;
}

.ai-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ai-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ai-muted);
  font-size: 0.82rem;
  font-weight: 690;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ai-nav a:hover {
  border-color: var(--ai-line);
  color: var(--ai-teal-soft);
  background: rgba(51, 194, 184, 0.07);
}

.ai-language-links {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--ai-line);
}

.ai-language-links a {
  padding-inline: 9px;
}

.ai-language-links a[aria-current="page"] {
  border-color: var(--ai-line-strong);
  background: rgba(130, 215, 255, 0.06);
}

.ai-page main#main {
  min-width: 0;
}

.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(var(--ai-content), calc(100% - 40px));
  min-height: min(820px, calc(100vh - 92px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ai-teal);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 100%;
  margin: 0;
  color: #edf9ff;
  font-family: var(--ai-tech-font);
  font-size: clamp(3.4rem, 6.1vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.18;
}

.tech-title-line {
  position: relative;
  display: block;
  width: max-content;
  max-width: calc(100% - 0.15em);
  margin-left: 0.075em;
  transform: skewX(-7deg);
  transform-origin: left center;
  white-space: nowrap;
}

.tech-title-face {
  display: block;
  padding: 0.08em 0.13em 0.16em;
  color: transparent;
}

.fiber-title {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 5px rgba(91, 187, 232, 0.17));
}

.fiber-title text {
  font-family: var(--ai-tech-font);
  font-size: 100px;
  font-weight: 600;
  letter-spacing: 0;
}

.fiber-depth {
  opacity: 0.26;
  stroke-width: 0.8;
}

.fiber-strands,
.fiber-flow {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fiber-flow {
  stroke-dasharray: 10 174;
  stroke-dashoffset: 23;
  filter: drop-shadow(0 0 2px rgba(194, 237, 255, 0.55));
  animation: fiber-travel 8s linear infinite paused;
}

.tech-title-line:nth-child(2) .fiber-flow {
  animation-delay: -3s;
}

.tech-title-line:nth-child(3) .fiber-flow {
  animation-delay: -5s;
}

.fiber-title[data-led-visible="true"] .fiber-flow {
  animation-play-state: running;
}

.ai-page:not(:has(#aiScene[data-ready="true"])) .fiber-flow,
html[data-motion-paused="true"] .fiber-title .fiber-flow,
html[data-page-hidden="true"] .fiber-title .fiber-flow {
  animation-play-state: paused;
}

@keyframes fiber-travel {
  to { stroke-dashoffset: -345; }
}

html:is([lang="en"], [lang="ms"]) .hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2.3rem, 3.45vw, 3.7rem);
  letter-spacing: -0.025em;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy h1::after {
  display: block;
  width: clamp(90px, 24%, 150px);
  height: 3px;
  margin-top: 26px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--ai-teal), var(--ai-cobalt), transparent);
  box-shadow: 0 0 20px rgba(66, 223, 207, 0.34);
}

.hero-tagline {
  max-width: 31rem;
  margin: 28px 0 0;
  color: var(--ai-teal-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.45;
}

.hero-intro {
  max-width: 35rem;
  margin: 17px 0 0;
  color: var(--ai-muted);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
}

.hero-value-note {
  max-width: 35rem;
  margin-top: 18px;
}

.hero-value-note p {
  margin: 0;
  color: #aac6d9;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 1.68;
}

.hero-value-note p + p {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button,
.text-button,
.motion-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.button {
  min-width: 148px;
  padding: 13px 20px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button.primary {
  color: #031412;
  background: linear-gradient(135deg, #65e6d7, #31c8bd);
  box-shadow: 0 13px 38px rgba(21, 200, 187, 0.18);
}

.button.primary:hover {
  box-shadow: 0 16px 46px rgba(21, 200, 187, 0.3);
}

.button.secondary {
  border-color: rgba(76, 215, 206, 0.27);
  color: var(--ai-text);
  background: rgba(8, 25, 35, 0.58);
}

.button.secondary:hover {
  border-color: rgba(76, 215, 206, 0.58);
  background: rgba(11, 42, 51, 0.72);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: center;
  width: 100%;
  min-width: 0;
  gap: 0;
}

.ai-emblem-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  aspect-ratio: 1688 / 932;
  overflow: hidden;
  border: 1px solid rgba(89, 190, 244, 0.15);
  border-radius: clamp(16px, 2.4vw, 30px);
  background: #020915;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(16, 124, 226, 0.09),
    inset 0 0 50px rgba(44, 168, 255, 0.06);
  mask-image: linear-gradient(to bottom, black 0%, black 88%, transparent 100%);
}

.ai-emblem-image,
.ai-emblem-led {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ai-emblem-image {
  object-fit: cover;
}

.ai-emblem-led {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ai-emblem-led use {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.ai-led-tracks use {
  stroke: rgba(87, 211, 255, 0.24);
  stroke-width: 2;
}

.ai-led-tail use,
.ai-led-core use,
.ai-led-beads use {
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: ai-emblem-led-flow var(--run, 5.4s) linear infinite;
}

.ai-led-tail use {
  stroke: #199dff;
  stroke-width: 18;
  stroke-dasharray: 0.09 0.91;
  opacity: 0.78;
  filter: drop-shadow(0 0 8px #14a8ff) drop-shadow(0 0 18px rgba(42, 183, 255, 0.82));
}

.ai-led-core use {
  stroke: #effcff;
  stroke-width: 5;
  stroke-dasharray: 0.024 0.976;
  filter: drop-shadow(0 0 4px #d8f8ff) drop-shadow(0 0 9px #39bfff);
}

.ai-led-beads use {
  stroke: #ffffff;
  stroke-width: 9;
  stroke-dasharray: 0.006 0.494;
  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 13px #29baff);
}

@keyframes ai-emblem-led-flow {
  to { stroke-dashoffset: -1; }
}

@media (min-width: 941px) {
  .ai-hero {
    grid-template-columns: minmax(0, 452px) minmax(430px, 1fr);
    align-items: start;
    row-gap: 16px;
    column-gap: 12px;
  }

  .hero-copy,
  .hero-visual {
    display: contents;
  }

  .hero-lead {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    z-index: 2;
    width: min(100%, 288px);
  }

  .hero-details {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .ai-emblem-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
    width: auto;
    margin: 0.5cm 0 0 288px;
    aspect-ratio: 2.18;
  }

  .hero-visual > .scene-stage {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    margin-top: 0;
  }

  .ai-hero > .hero-metrics {
    grid-row: 3;
  }
}

.scene-stage {
  position: relative;
  isolation: isolate;
  width: 92%;
  aspect-ratio: 1;
  justify-self: end;
  margin-top: clamp(-62px, -4.7vw, -34px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(27, 62, 109, 0.16), transparent 70%);
  mask-image:
    linear-gradient(to right, transparent, black 5%, black 95%, transparent),
    linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  mask-composite: intersect;
}

.planetary-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, #d7e9ff 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 79% 18%, #aabdd9 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 70% 83%, #d7e9ff 0 0.5px, transparent 1.2px),
    radial-gradient(circle at 24% 78%, #aabdd9 0 0.5px, transparent 1.2px),
    radial-gradient(circle at 88% 58%, #d7e9ff 0 0.8px, transparent 1.5px);
}

.scene-stage.scene-ready .planetary-fallback,
.scene-stage:has(#aiScene[data-ready="true"]) .planetary-fallback {
  visibility: hidden;
}

.fallback-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit);
  height: var(--orbit-height);
  border: 1px solid rgba(130, 172, 218, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.fallback-orbit i {
  position: absolute;
  top: var(--planet-y);
  left: var(--planet-x);
  width: var(--planet-size);
  height: var(--planet-size);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 28%, #ffffffb8, transparent 42%), var(--planet-color);
  box-shadow: inset -4px -3px 5px #000a, 0 0 9px #a5c9ff1a;
  transform: translate(-50%, -50%);
}

.fallback-earth {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 1px solid #8ac8ea;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 23%, #d8edee9c 0 8%, transparent 9%),
    radial-gradient(ellipse at 56% 70%, #d8edee85 0 5%, transparent 7%),
    radial-gradient(ellipse at 27% 38%, #64857c 0 14%, transparent 15%),
    radial-gradient(ellipse at 42% 65%, #768e76 0 9%, transparent 10%),
    radial-gradient(ellipse at 71% 33%, #788f6d 0 16%, transparent 17%),
    radial-gradient(ellipse at 76% 76%, #85927b 0 6%, transparent 7%),
    radial-gradient(circle at 30% 26%, #4b96bb, #194966 57%, #061528 90%);
  box-shadow: inset -13px -8px 18px #010813c4, inset 3px 2px 9px #b3e1f76b, 0 0 16px #639dd85c, 0 0 38px #427ec42e;
  transform: translate(-50%, -50%);
}

#aiScene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#aiScene:not([data-ready="true"]) {
  visibility: hidden;
}

.scene-start-motion {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 9px 13px;
  border: 1px solid rgba(119, 199, 241, 0.46);
  border-radius: 999px;
  color: #d7f3ff;
  background: rgba(3, 14, 28, 0.82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38), inset 0 0 18px rgba(75, 161, 218, 0.08);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.scene-start-motion[hidden] {
  display: none;
}

.motion-control {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border: 1px solid rgba(78, 219, 210, 0.22);
  color: var(--ai-muted);
  background: rgba(3, 13, 20, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.motion-control:hover,
.motion-control[data-paused="true"] {
  border-color: rgba(78, 219, 210, 0.48);
  color: var(--ai-teal-soft);
  background: rgba(5, 28, 35, 0.86);
}

.hero-visual:not(:has(canvas[data-ready="true"])) .motion-control {
  display: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--ai-content), calc(100% - 40px));
  margin: -46px auto 0;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  background: var(--ai-line);
  box-shadow: var(--ai-shadow);
}

.ai-hero > .hero-metrics {
  grid-column: 1 / -1;
  width: 100%;
}

.hero-metrics > div {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 32px);
  background: rgba(5, 17, 25, 0.96);
}

.hero-metrics b {
  display: block;
  margin-bottom: 3px;
  color: var(--ai-teal-soft);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.hero-metrics > div > span {
  display: block;
  color: var(--ai-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-wrap {
  width: min(var(--ai-content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(86px, 11vw, 148px) 0;
  scroll-margin-top: 104px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading h2,
.closing-block h2 {
  margin: 0;
  color: var(--ai-text);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.ai-overview {
  position: relative;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  position: relative;
  min-height: 150px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  color: #b6cfcc;
  background:
    linear-gradient(135deg, rgba(29, 113, 124, 0.09), transparent 58%),
    var(--ai-panel);
  box-shadow: inset 0 1px rgba(127, 235, 225, 0.035);
}

.highlights li::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 21px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--ai-teal), var(--ai-cobalt));
  box-shadow: 0 0 16px rgba(54, 218, 205, 0.24);
}

.selection-note {
  max-width: 880px;
  margin: 22px 0 0;
  padding: 21px 24px;
  border-left: 3px solid var(--ai-teal);
  border-radius: 0 16px 16px 0;
  color: var(--ai-muted);
  background: linear-gradient(90deg, rgba(44, 199, 188, 0.09), rgba(10, 25, 36, 0.42));
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -18px 0 20px;
}

.text-button {
  padding: 10px 15px;
  border: 1px solid var(--ai-line);
  color: var(--ai-teal-soft);
  background: rgba(8, 25, 35, 0.7);
  font-size: 0.8rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.text-button:hover {
  border-color: var(--ai-line-strong);
  background: rgba(17, 55, 63, 0.67);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(210px, 244px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3.5vw, 44px);
}

.module-index {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 118px);
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  background: rgba(5, 16, 24, 0.82);
  scrollbar-color: rgba(66, 223, 207, 0.34) transparent;
  scrollbar-width: thin;
}

.module-index > :first-child:not(nav) {
  margin: 0 0 13px;
  color: var(--ai-muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.module-index nav {
  display: grid;
  gap: 5px;
}

.module-index nav > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ai-muted);
  font-size: 0.77rem;
  font-weight: 660;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.module-index nav > a b {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  border: 1px solid rgba(74, 222, 211, 0.22);
  border-radius: 8px;
  color: var(--ai-teal-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.module-index nav > a span {
  min-width: 0;
}

.module-index nav > a:hover,
.module-index nav > a:focus-visible {
  border-color: var(--ai-line);
  color: var(--ai-teal-soft);
  background: rgba(48, 184, 174, 0.08);
}

.module-list {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.module-card {
  scroll-margin-top: 108px;
  overflow: clip;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(29, 112, 124, 0.055), transparent 45%),
    rgba(5, 16, 24, 0.84);
  box-shadow: inset 0 1px rgba(118, 230, 220, 0.03);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.module-card[open] {
  border-color: rgba(75, 222, 211, 0.31);
  background: rgba(6, 20, 29, 0.94);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18), inset 0 1px rgba(118, 230, 220, 0.05);
}

.module-card summary {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 15px;
  min-height: 86px;
  padding: 17px 19px;
  cursor: pointer;
  list-style: none;
}

.module-card summary::-webkit-details-marker {
  display: none;
}

.module-card[open] summary {
  border-bottom: 1px solid var(--ai-line);
}

.module-code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(74, 222, 211, 0.32);
  border-radius: 14px;
  color: var(--ai-teal-soft);
  background: linear-gradient(145deg, rgba(40, 177, 168, 0.15), rgba(39, 83, 184, 0.1));
  box-shadow: inset 0 1px rgba(132, 239, 230, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 850;
}

.module-heading {
  min-width: 0;
}

.module-heading strong {
  display: block;
  color: var(--ai-text);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.35;
}

.module-heading small {
  display: block;
  margin-top: 4px;
  color: var(--ai-muted);
  font-size: 0.73rem;
  font-weight: 540;
  line-height: 1.35;
}

.module-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ai-line);
  border-radius: 50%;
  color: var(--ai-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.module-card[open] .module-toggle {
  border-color: rgba(66, 223, 207, 0.38);
  color: var(--ai-teal);
}

.module-toggle .toggle-open,
.module-card[open] .module-toggle .toggle-closed {
  display: none;
}

.module-card[open] .module-toggle .toggle-open {
  display: block;
}

.feature-list {
  display: grid;
  margin: 0;
  padding: 8px 19px 16px;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(81, 192, 187, 0.09);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-number {
  color: #688c90;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.feature-name {
  min-width: 0;
  color: #b8cdca;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.quote-gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(34px, 6vw, 72px);
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(72, 225, 213, 0.31);
  border-radius: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 94, 222, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(13, 64, 69, 0.26), rgba(4, 16, 24, 0.96) 58%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), inset 0 1px rgba(119, 238, 228, 0.08);
}

.quote-gate::before {
  position: absolute;
  top: -76px;
  right: clamp(36px, 10vw, 140px);
  width: 170px;
  height: 170px;
  border: 1px solid rgba(79, 226, 214, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow: 0 0 70px rgba(48, 104, 232, 0.12);
}

.quote-gate h2,
.quote-gate h3 {
  max-width: 720px;
  margin: 0;
  color: var(--ai-text);
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  font-weight: 790;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.quote-gate p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ai-muted);
}

.quote-gate .button {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: min(220px, 100%);
}

.quote-gate > .eyebrow,
.quote-gate > h2,
.quote-gate > h3,
.quote-gate > p:not(.eyebrow) {
  grid-column: 1;
}

.quote-gate > .eyebrow {
  margin-bottom: -10px;
}

.terms-block {
  padding-top: 0;
}

.terms-block ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
  margin: 0;
  padding: 27px 30px 27px 55px;
  border: 1px solid var(--ai-line);
  border-radius: 24px;
  color: var(--ai-muted);
  background: rgba(5, 16, 24, 0.67);
}

.terms-block li {
  padding: 5px 7px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.terms-block li::marker {
  color: var(--ai-teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.closing-block {
  position: relative;
  width: min(var(--ai-content), calc(100% - 40px));
  margin: clamp(50px, 8vw, 100px) auto;
  padding: clamp(48px, 8vw, 94px) clamp(24px, 8vw, 94px);
  overflow: hidden;
  border: 1px solid rgba(69, 223, 211, 0.25);
  border-radius: clamp(26px, 4vw, 42px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(38, 173, 161, 0.17), transparent 45%),
    radial-gradient(circle at 92% 8%, rgba(41, 82, 207, 0.17), transparent 32%),
    linear-gradient(145deg, rgba(7, 27, 35, 0.95), rgba(3, 11, 18, 0.96));
  box-shadow: var(--ai-shadow);
}

.closing-block::before {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 280px;
  height: 210px;
  border: 1px solid rgba(78, 223, 212, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow: 0 0 80px rgba(49, 104, 232, 0.12);
  transform: translateX(-50%);
}

.closing-block p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ai-muted);
}

.closing-block .principle {
  color: var(--ai-teal-soft);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 650;
}

.closing-block .button {
  margin-top: 30px;
}

.ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--ai-content), calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--ai-line);
  color: #6f8988;
  font-size: 0.75rem;
}

.ai-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ai-muted);
  text-decoration-color: rgba(66, 223, 207, 0.28);
  text-underline-offset: 4px;
}

.ai-footer a:hover {
  color: var(--ai-teal-soft);
}

/* A travelling highlight follows the border without adding an overlay over content. */
@property --led-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes led-orbit {
  to { --led-angle: 360deg; }
}

.ai-page .led-frame {
  --led-surface: #030a14;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--led-surface), var(--led-surface)) padding-box,
    conic-gradient(from var(--led-angle),
      rgba(87, 164, 213, 0.18) 0deg 280deg,
      rgba(93, 183, 235, 0.28) 300deg,
      rgba(130, 215, 255, 0.72) 332deg,
      rgba(229, 249, 255, 0.98) 342deg 345deg,
      rgba(87, 164, 213, 0.18) 354deg 360deg) border-box;
  box-shadow: 0 0 13px rgba(110, 201, 255, 0.065), inset 0 0 15px rgba(110, 201, 255, 0.022);
  animation: led-orbit 12s linear infinite;
  animation-delay: var(--led-phase, 0s);
  animation-play-state: paused;
}

.ai-page .led-frame[data-led-visible="true"] {
  animation-play-state: running;
}

.ai-page:not(:has(#aiScene[data-ready="true"])) .led-frame,
html[data-motion-paused="true"] .ai-page .led-frame,
html[data-page-hidden="true"] .ai-page .led-frame {
  animation-play-state: paused;
}

.ai-page .button.primary {
  --led-surface: #173d57;
  color: #e1f5ff;
}

.ai-page .led-frame:hover {
  box-shadow: 0 0 18px rgba(110, 201, 255, 0.12), inset 0 0 15px rgba(110, 201, 255, 0.04);
}

.hero-metrics > div {
  background: rgba(3, 10, 20, 0.98);
}

.module-card[open] summary,
.feature-list li,
.ai-footer {
  border-color: rgba(130, 215, 255, 0.19);
}

.feature-name {
  color: #b8cbdc;
}

.feature-number {
  color: #789bb9;
}

/* Content uses the same hollow fiber contours as the main title. */
.ai-page :is(.hero-tagline, .hero-intro, .hero-value-note p, .selection-note, .module-heading strong, .feature-name, .quote-gate > p, .closing-block p) {
  font-family: var(--ai-tech-font);
  color: #d5eafa;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-shadow: none;
}

.ai-page :is(.hero-intro, .selection-note, .quote-gate > p, .closing-block p) {
  font-size: clamp(1.125rem, 1.55vw, 1.4rem);
  line-height: 1.85;
}

.ai-page :is(.hero-tagline, .module-heading strong, .feature-name) {
  color: #cce5f4;
  font-size: clamp(1.125rem, 1.4vw, 1.28rem);
  font-weight: 600;
  line-height: 1.6;
}

.ai-page :is(.section-heading h2, .quote-gate h2, .closing-block h2) {
  font-family: var(--ai-tech-font);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.3;
  color: #e5f5ff;
  text-shadow: none;
}

/* Real text controls wrapping and selection; the decorative SVG follows its lines. */
.fiber-copy {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0.12em 0.16em;
  font-family: var(--ai-tech-font);
  font-weight: 600;
}

.tech-copy {
  display: block;
  color: #bce7ff;
  line-height: inherit;
  -webkit-text-fill-color: #030a13;
  -webkit-text-stroke: 0.65px #bce7ff;
  text-shadow: none;
}

.fiber-copy[data-fiber-ready="true"] > .tech-copy {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
}

.fiber-copy-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 3px rgba(130, 215, 255, 0.13));
}

.copy-strands {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fiber-copy .tech-copy::selection {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: #245e86;
  text-shadow: none;
}

@media (max-width: 1020px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .module-index {
    position: static;
    max-width: 100%;
    max-height: none;
    padding: 12px;
    overflow: hidden;
  }

  .module-index nav {
    display: flex;
    gap: 7px;
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(66, 223, 207, 0.34) transparent;
    scrollbar-width: thin;
  }

  .module-index nav > a {
    flex: 0 0 auto;
    max-width: 250px;
  }
}

@media (max-width: 940px) {
  .ai-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 74px;
  }

  .hero-copy {
    max-width: 750px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-visual {
    justify-items: center;
    max-width: 750px;
  }

  .scene-stage {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .ai-header {
    display: grid;
    gap: 5px;
    width: calc(100% - 24px);
    padding: 8px;
    border-radius: 18px;
  }

  .ai-brand {
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .ai-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ai-language-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--ai-line);
  }

  .ai-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 4px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .ai-hero,
  .hero-metrics,
  .section-wrap,
  .closing-block,
  .ai-footer {
    width: calc(100% - 28px);
  }

  .ai-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 48px;
  }

  .hero-copy,
  .hero-lead,
  .hero-details {
    display: contents;
  }

  .hero-lead > .eyebrow {
    order: 1;
    width: 100%;
  }

  .hero-copy h1 {
    order: 2;
    width: 100%;
    max-width: none;
  }

  html:is([lang="en"], [lang="ms"]) .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.72rem, 8.4vw, 3.6rem);
  }

  .hero-copy h1 > span {
    white-space: nowrap;
  }

  .hero-lead > .hero-tagline {
    order: 3;
    width: 100%;
    margin-top: 22px;
  }

  .hero-visual {
    order: 7;
    width: min(100%, 440px);
    margin-top: 30px;
  }

  .hero-details > .hero-intro {
    order: 4;
    width: 100%;
    margin-top: 30px;
  }

  .hero-details > .hero-value-note {
    order: 5;
    width: 100%;
  }

  .hero-details > .hero-actions {
    order: 6;
    width: 100%;
  }

  .ai-hero > .hero-metrics {
    order: 8;
    margin-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics > div {
    padding: 18px 20px;
  }

  .highlights,
  .terms-block ol {
    grid-template-columns: 1fr;
  }

  .terms-block ol {
    padding: 22px 22px 22px 45px;
  }

  .module-card summary {
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    gap: 11px;
    padding: 15px;
  }

  .module-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .feature-list {
    padding-inline: 13px;
  }

  .feature-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 12px 6px;
  }

  .ai-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* A persistent header must not consume a narrow or zoomed reading viewport. */
@media (max-width: 760px), (max-height: 600px) {
  html {
    scroll-padding-top: 16px;
  }

  .ai-header {
    position: relative;
    top: auto;
  }

  .section-wrap,
  .module-card {
    scroll-margin-top: 0;
  }
}

@media (max-width: 520px) {
  .ai-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-hero {
    padding-top: 40px;
  }

  .ai-emblem-stage {
    width: min(90%, 340px);
    border-radius: 16px;
  }

  .scene-stage {
    width: 100%;
    margin-top: -18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .motion-control {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .text-button {
    width: 100%;
  }

  .quote-gate {
    grid-template-columns: 1fr;
  }

  .quote-gate .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .module-card summary {
    min-height: 80px;
  }

  .closing-block {
    padding-inline: 20px;
  }
}

@media (max-width: 360px) {
  .ai-header,
  .ai-hero,
  .hero-metrics,
  .section-wrap,
  .closing-block,
  .ai-footer {
    width: calc(100% - 20px);
  }

  .ai-brand {
    letter-spacing: 0.11em;
  }

  .hero-copy h1 {
    font-size: 2.62rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .module-card summary {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    padding: 13px 11px;
  }

  .module-code {
    width: 40px;
    height: 40px;
  }

  .feature-list {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-page .led-frame,
  .ai-page .fiber-flow,
  .ai-page .ai-brand-mark::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .ai-page *,
  .ai-page *::before,
  .ai-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ai-emblem-led .ai-led-tail use,
  .ai-emblem-led .ai-led-core use,
  .ai-emblem-led .ai-led-beads use {
    animation: none !important;
    opacity: 0.34;
  }
}

@media (forced-colors: active) {
  .tech-title-face {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
    filter: none;
    mask-image: none;
  }

  .fiber-title,
  .fiber-copy-art {
    display: none;
  }

  .ai-page .fiber-copy > .tech-copy {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
    text-shadow: none;
    mask-image: none;
  }

  .ai-page :is(h1, h2, p, .feature-name, .module-heading strong) {
    text-shadow: none;
  }

  .ai-page .led-frame {
    border: 1px solid CanvasText;
    background: Canvas;
    animation: none;
    box-shadow: none;
  }

  .ai-page :where(.button, .text-button, .motion-control, .module-card, .module-index, .quote-gate, .highlights li) {
    border: 1px solid CanvasText;
  }

}
