:root {
  --black: #050505;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --mist: #fbfbfd;
  --line: rgba(0, 0, 0, 0.1);
  --white-line: rgba(255, 255, 255, 0.15);
  --accent: #d63a31;
  --link: #0071e3;
  --steel: #2b2d30;
  --carbon: #101113;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f5f5f7;
  overflow-x: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro TC",
    "SF Pro Display",
    "SF Pro Text",
    "PingFang TC",
    "Noto Sans TC",
    "Microsoft JhengHei",
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  font-synthesis-weight: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 60px;
  padding: 0 clamp(18px, 5vw, 48px);
  background: rgba(14, 15, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(160%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 132px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  padding: 18px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: #ffffff;
}

.hero {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: calc(100svh - 60px);
  gap: clamp(30px, 4vh, 52px);
  overflow: hidden;
  text-align: center;
}

.hero--dark {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0) 120px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #090a0b 0%, #000000 54%, #050505 100%);
  background-size: auto, 88px 88px, auto;
}

.hero__copy {
  width: min(920px, calc(100% - 36px));
  padding: clamp(44px, 7vh, 78px) 0 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.hero h1,
.statement h2,
.showcase h2,
.cinema h2,
.section-heading h2,
.security h2,
.contact h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
  word-break: keep-all;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(68px, 7.8vw, 104px);
}

.hero p:not(.kicker) {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--link);
  font-weight: 500;
  text-underline-offset: 4px;
}

.text-link::after {
  content: ">";
  margin-left: 7px;
  font-size: 0.92em;
}

.hero-stage {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  min-height: 390px;
  margin-bottom: clamp(42px, 6vh, 72px);
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 16% 4% 8%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.hero-stage__main {
  width: min(1000px, 94%);
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 34px 68px rgba(0, 0, 0, 0.58));
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.metrics article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 154px;
  padding: 26px 22px 28px;
  text-align: center;
  background: #111214;
}

.metrics strong {
  display: block;
  color: #ffffff;
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.statement {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 90px 20px;
  text-align: center;
  background: #f5f5f7;
}

.statement__inner {
  width: min(900px, 100%);
}

.statement h2,
.section-heading h2,
.contact h2 {
  font-size: 68px;
}

.statement p:not(.kicker),
.section-heading p:not(.kicker),
.contact p,
.security p {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.58;
}

.showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  min-height: 720px;
  padding: clamp(74px, 8vw, 118px) clamp(20px, 5vw, 64px);
}

.showcase--black {
  color: #ffffff;
  background:
    linear-gradient(180deg, #050505 0%, #111214 52%, #050505 100%);
}

.showcase--white {
  grid-template-columns: 1.1fr 0.9fr;
  background:
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.showcase--white .showcase__text {
  order: 2;
}

.showcase--white .showcase__visual {
  order: 1;
}

.showcase__text {
  justify-self: end;
  width: min(520px, 100%);
}

.showcase__text p:not(.kicker) {
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
}

.showcase--black .showcase__text p:not(.kicker) {
  color: rgba(255, 255, 255, 0.62);
}

.showcase h2,
.cinema h2,
.security h2 {
  font-size: 58px;
}

.showcase__visual {
  min-width: 0;
}

.showcase__visual img {
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 28px 58px rgba(0, 0, 0, 0.2));
}

.showcase--black .showcase__visual img {
  width: min(900px, 100%);
  filter: drop-shadow(0 30px 64px rgba(0, 0, 0, 0.62));
}

.cinema {
  position: relative;
  overflow: hidden;
  min-height: 800px;
  padding: 88px 20px 0;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(180deg, #0d0d0f 0%, #050505 100%);
}

.cinema__copy {
  width: min(860px, 100%);
  margin: 0 auto;
}

.cinema p:not(.kicker) {
  max-width: 720px;
  margin: 20px auto 42px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.58;
}

.cinema img {
  width: min(1080px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.42));
}

.lineup {
  padding: clamp(86px, 9vw, 136px) clamp(16px, 5vw, 64px);
  background: #f5f5f7;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto;
  text-align: center;
}

.segment-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 36px auto 34px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #ffffff;
}

.segment {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.segment.is-active {
  color: #ffffff;
  border-color: #111111;
  background: #161719;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.14);
}

.product-card.is-hidden {
  display: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 13;
  padding: 22px;
  object-fit: contain;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #eeeeef 100%);
}

.product-card img.product-card__image--editorial {
  padding: 0;
  object-fit: contain;
  background: #f5f5f7;
}

.product-card div {
  padding: 22px 24px 26px;
}

.product-card p,
.product-card h3,
.product-card span {
  margin: 0;
}

.product-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.product-card h3 {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.2;
}

.product-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.install {
  padding: clamp(86px, 9vw, 136px) clamp(16px, 5vw, 64px);
  background: #ffffff;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(var(--max), 100%);
  margin: 46px auto 0;
  background: transparent;
}

.install-steps article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.install-steps span {
  color: var(--link);
  font-weight: 800;
}

.install-steps h3 {
  margin: 24px 0 10px;
  font-size: 23px;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.62;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 46px;
  padding: clamp(86px, 9vw, 128px) clamp(16px, 5vw, 64px);
  background:
    linear-gradient(135deg, #111214 0%, #050505 100%);
  color: #ffffff;
}

.security__copy {
  justify-self: end;
  width: min(480px, 100%);
}

.security p {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.68);
}

.security img {
  width: min(620px, 100%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.contact {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 90px 20px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(180deg, #050505 0%, #111214 100%);
}

.contact__inner {
  width: min(900px, 100%);
}

.contact p {
  color: rgba(255, 255, 255, 0.68);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  padding: 0 22px;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 500;
}

.pill--primary {
  border-color: var(--link);
  background: var(--link);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 48px);
  color: rgba(255, 255, 255, 0.72);
  background: #000000;
  border-top: 1px solid var(--white-line);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 78px;
  }

  .statement h2,
  .section-heading h2,
  .contact h2 {
    font-size: 54px;
  }

  .showcase h2,
  .cinema h2,
  .security h2 {
    font-size: 46px;
  }

  .metrics,
  .showcase,
  .showcase--white,
  .product-grid,
  .install-steps,
  .security {
    grid-template-columns: 1fr 1fr;
  }

  .showcase,
  .showcase--white {
    text-align: center;
  }

  .showcase__text,
  .security__copy {
    justify-self: center;
  }

  .showcase--white .showcase__text,
  .showcase--white .showcase__visual {
    order: initial;
  }
}

@media (max-width: 760px) {
  .global-nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }

  .global-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero__copy {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p:not(.kicker) {
    font-size: 19px;
  }

  .hero__actions {
    gap: 18px;
  }

  .segment-control {
    width: min(100%, 340px);
  }

  .segment {
    flex: 1 1 calc(50% - 4px);
    padding: 0 12px;
  }

  .hero-stage {
    width: min(100%, calc(100vw - 30px));
    min-height: 300px;
    margin-bottom: 46px;
  }

  .metrics,
  .showcase,
  .showcase--white,
  .product-grid,
  .install-steps,
  .security {
    grid-template-columns: 1fr;
  }

  .metrics article {
    min-height: 150px;
  }

  .statement {
    min-height: 520px;
  }

  .statement h2,
  .section-heading h2,
  .contact h2 {
    font-size: 40px;
  }

  .statement p:not(.kicker),
  .section-heading p:not(.kicker),
  .contact p,
  .security p,
  .showcase__text p:not(.kicker),
  .cinema p:not(.kicker) {
    font-size: 17px;
  }

  .showcase {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .showcase h2,
  .cinema h2,
  .security h2 {
    font-size: 36px;
  }

  .cinema {
    min-height: auto;
    padding-top: 72px;
  }

  .security__copy,
  .security img {
    justify-self: center;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
