:root {
  color-scheme: dark;
  --ink: #eef9f8;
  --muted: #a8bec0;
  --line: rgba(118, 218, 224, 0.22);
  --paper: #071115;
  --white: #ffffff;
  --deep: #04090d;
  --deep-2: #0c2026;
  --panel: rgba(12, 32, 38, 0.74);
  --accent: #28d1b2;
  --accent-2: #f0b63f;
  --sky: rgba(40, 209, 178, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(40, 209, 178, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(117, 208, 223, 0.12), transparent 26rem),
    linear-gradient(180deg, #071115 0%, #08151a 46%, #050b0f 100%);
  color: var(--ink);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(117, 208, 223, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 208, 223, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

body[lang="zh-Hant"] {
  font-family: "Noto Sans TC", "Microsoft JhengHei", Inter, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(5, 13, 17, 0.82);
  color: var(--ink);
  border-bottom: 1px solid rgba(117, 208, 223, 0.18);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--deep);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.mark-field {
  fill: url("#fortivaleMarkGradient");
}

.mark-f {
  fill: #071317;
}

.mark-circuit {
  fill: none;
  stroke: #071317;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-node {
  fill: #071317;
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  font-size: 0.78rem;
  opacity: 0.78;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.94rem;
  font-weight: 650;
}

.desktop-nav a {
  opacity: 0.86;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button,
.header-cta,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header[data-elevated="true"] .lang-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #75d0df);
  color: #041014;
  box-shadow: 0 12px 26px rgba(40, 209, 178, 0.18);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 124px clamp(18px, 4vw, 56px) 72px;
}

.hero-canvas,
.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 9, 13, 0.96), rgba(4, 15, 19, 0.7) 54%, rgba(4, 9, 13, 0.32)),
    linear-gradient(0deg, rgba(4, 9, 13, 0.76), rgba(4, 9, 13, 0.1)),
    repeating-linear-gradient(90deg, rgba(117, 208, 223, 0.08) 0 1px, transparent 1px 88px);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(117, 208, 223, 0.18);
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.band {
  padding: clamp(54px, 8vw, 96px) 0;
  background:
    linear-gradient(90deg, rgba(40, 209, 178, 0.08), transparent 34%, rgba(240, 182, 63, 0.06)),
    rgba(8, 21, 26, 0.82);
  border-block: 1px solid rgba(117, 208, 223, 0.13);
}

.promo-reel {
  padding: clamp(56px, 8vw, 104px) 0;
  overflow: hidden;
}

.promo-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 430px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(117, 208, 223, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 22% 50%, rgba(40, 209, 178, 0.22), transparent 20rem),
    rgba(5, 13, 17, 0.78);
  box-shadow: var(--shadow), inset 0 0 70px rgba(117, 208, 223, 0.06);
  backdrop-filter: blur(18px);
}

.promo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(117, 208, 223, 0.18), transparent),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(117, 208, 223, 0.06) 25px, transparent 26px);
  opacity: 0.4;
  animation: scan-panel 5.5s linear infinite;
}

.promo-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.core-chip {
  position: relative;
  width: min(58vw, 230px);
  aspect-ratio: 1;
  border: 1px solid rgba(117, 208, 223, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 209, 178, 0.22), rgba(117, 208, 223, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px);
  box-shadow: 0 0 42px rgba(40, 209, 178, 0.26), inset 0 0 38px rgba(117, 208, 223, 0.18);
  animation: chip-pulse 3s ease-in-out infinite;
}

.core-chip::before,
.core-chip::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(240, 182, 63, 0.48);
  border-radius: 8px;
}

.core-chip::after {
  inset: 52px;
  border-color: rgba(117, 208, 223, 0.58);
}

.core-chip span {
  position: absolute;
  inset: 50%;
  width: 14px;
  height: 14px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 26px var(--accent-2);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(117, 208, 223, 0.24);
  border-radius: 50%;
}

.orbit-one {
  width: 320px;
  height: 160px;
  animation: orbit-tilt 7s linear infinite;
}

.orbit-two {
  width: 250px;
  height: 250px;
  border-color: rgba(240, 182, 63, 0.18);
  animation: orbit-tilt 9s linear infinite reverse;
}

.data-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: data-sweep 3.2s ease-in-out infinite;
}

.line-one {
  width: 78%;
  top: 30%;
  animation-delay: 0s;
}

.line-two {
  width: 62%;
  top: 50%;
  animation-delay: 0.7s;
}

.line-three {
  width: 72%;
  top: 70%;
  animation-delay: 1.4s;
}

.promo-copy {
  position: relative;
  z-index: 1;
}

.promo-copy h2 {
  max-width: 640px;
}

.promo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.promo-steps span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(117, 208, 223, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 249, 248, 0.86);
  font-weight: 740;
  animation: step-glow 5s ease-in-out infinite;
}

.promo-steps span:nth-child(2) {
  animation-delay: 0.45s;
}

.promo-steps span:nth-child(3) {
  animation-delay: 0.9s;
}

.promo-steps span:nth-child(4) {
  animation-delay: 1.35s;
}

.promo-steps span:nth-child(5) {
  animation-delay: 1.8s;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1.14fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.intro p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services,
.industries {
  padding: clamp(58px, 9vw, 112px) 0;
}

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

.section-heading.compact {
  display: block;
}

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

.service-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 209, 178, 0.54);
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.44), 0 0 34px rgba(40, 209, 178, 0.12);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.optical-module-visual {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 26%, rgba(40, 209, 178, 0.34), transparent 7rem),
    radial-gradient(circle at 82% 72%, rgba(240, 182, 63, 0.16), transparent 8rem),
    linear-gradient(135deg, #071317, #102b31 58%, #071115);
}

.optical-module-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(117, 208, 223, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(117, 208, 223, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.module {
  position: absolute;
  left: 18%;
  width: 68%;
  height: 38px;
  border: 1px solid rgba(238, 249, 248, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(238, 249, 248, 0.18), rgba(238, 249, 248, 0.55) 18%, rgba(238, 249, 248, 0.2) 56%, rgba(117, 208, 223, 0.2)),
    linear-gradient(180deg, #aebfc1, #60777c 46%, #dbe8e6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 24px rgba(40, 209, 178, 0.16);
}

.module::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 30px;
  height: 26px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(180deg, #111b20, #03070a);
  border: 1px solid rgba(117, 208, 223, 0.28);
}

.module::after {
  content: "FORTIVALE OPTICAL";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(4, 9, 13, 0.72);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.module-a {
  top: 58px;
  transform: rotate(-7deg);
}

.module-b {
  top: 118px;
  transform: rotate(-7deg) translateX(18px);
}

.fiber {
  position: absolute;
  left: -6%;
  width: 40%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), #75d0df);
  box-shadow: 0 0 16px rgba(40, 209, 178, 0.72);
  transform: rotate(-7deg);
}

.fiber-a {
  top: 75px;
}

.fiber-b {
  top: 137px;
  background: linear-gradient(90deg, transparent, var(--accent-2), #75d0df);
}

.light-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75d0df;
  box-shadow: 0 0 18px #75d0df;
  animation: optical-dot 2.4s ease-in-out infinite;
}

.dot-a {
  left: 20%;
  top: 71px;
}

.dot-b {
  left: 25%;
  top: 132px;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-2);
  animation-delay: 0.7s;
}

.service-card div {
  padding: 24px;
}

.service-card h3,
.capability-list h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.capability-list p {
  margin: 0;
  color: var(--muted);
}

.dark {
  background:
    linear-gradient(135deg, rgba(40, 209, 178, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(240, 182, 63, 0.08), transparent 30%),
    var(--deep);
  color: var(--white);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 92px);
}

.capability-list {
  display: grid;
  gap: 18px;
}

.capability-list div {
  padding: 20px;
  border: 1px solid rgba(117, 208, 223, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.capability-list span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-weight: 850;
}

.capability-list p {
  color: rgba(255, 255, 255, 0.68);
}

.industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.industry-row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-weight: 720;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.contact h2 {
  margin-bottom: 22px;
}

.contact-panel {
  background:
    linear-gradient(180deg, rgba(40, 209, 178, 0.18), rgba(117, 208, 223, 0.08)),
    rgba(8, 21, 26, 0.86);
  border: 1px solid rgba(117, 208, 223, 0.26);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

dl,
dd {
  margin: 0;
}

.contact-panel dl {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

dt {
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  font-weight: 720;
}

dd a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.full {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 740;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan-panel {
  from {
    transform: translateX(-35%);
  }

  to {
    transform: translateX(35%);
  }
}

@keyframes chip-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes orbit-tilt {
  from {
    transform: rotateX(64deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(64deg) rotateZ(360deg);
  }
}

@keyframes data-sweep {
  0% {
    opacity: 0;
    transform: translateX(-32%);
  }

  28%,
  58% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(32%);
  }
}

@keyframes step-glow {
  0%,
  100% {
    border-color: rgba(117, 208, 223, 0.22);
    box-shadow: none;
  }

  45% {
    border-color: rgba(40, 209, 178, 0.62);
    box-shadow: 0 0 22px rgba(40, 209, 178, 0.16);
  }
}

@keyframes optical-dot {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }

  50% {
    transform: translateX(120px);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

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

  .intro-grid,
  .promo-stage,
  .capability-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-subtitle,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 112px 18px 50px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.5rem);
  }

  .section-heading {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    grid-template-rows: 190px 1fr;
  }

  .promo-visual {
    min-height: 250px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
