:root {
  --bg: #101413;
  --bg-deep: #080b0b;
  --surface: #171d1c;
  --surface-soft: #202827;
  --text: #f4faf7;
  --muted: #aebbb6;
  --faint: rgba(239, 255, 250, 0.1);
  --line: rgba(239, 255, 250, 0.14);
  --teal: #25d6c4;
  --coral: #ee7468;
  --amber: #e3bd72;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --page-x: clamp(24px, 7vw, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(37, 214, 196, 0.1), transparent 28rem),
    radial-gradient(circle at 4% 38%, rgba(238, 116, 104, 0.08), transparent 26rem),
    var(--bg);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial,
    sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.signal-canvas,
.grid-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.signal-canvas {
  z-index: -2;
  opacity: 0.18;
}

.grid-field {
  z-index: -1;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px),
    linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, 0.055) 48%, transparent 49%);
  background-size: 148px 148px, 148px 148px, 720px 720px;
  mask-image: linear-gradient(to bottom, #000 0 70%, transparent 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  min-height: 82px;
  grid-template-columns: 1fr auto auto 82px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.header-action,
.menu-button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  padding: 0 var(--page-x);
  font-size: 24px;
  font-weight: 900;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    linear-gradient(90deg, var(--teal) 0 44%, transparent 44% 56%, var(--coral) 56%),
    #050808;
}

.desktop-nav {
  gap: 30px;
  padding: 0 30px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.desktop-nav a,
.header-action,
.menu-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--teal);
}

.header-action {
  padding: 0 28px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  font-weight: 900;
}

.menu-button {
  position: relative;
  justify-content: center;
  border: 0;
  background: var(--teal);
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: #06100f;
  transition: transform 0.25s ease;
}

.menu-button span:first-child {
  transform: translateY(-5px);
}

.menu-button span:last-child {
  transform: translateY(5px);
}

body.menu-open .menu-button span:first-child {
  transform: rotate(28deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-28deg);
}

.menu-panel {
  position: fixed;
  top: 82px;
  right: 0;
  z-index: 18;
  display: grid;
  width: min(540px, 100%);
  gap: 20px;
  padding: 52px;
  border-left: 1px solid var(--line);
  background: rgba(12, 16, 15, 0.98);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.45s cubic-bezier(0.75, 0, 0.2, 1);
}

body.menu-open .menu-panel {
  clip-path: inset(0 0 0 0);
}

.menu-panel a {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.25;
}

.mini-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.menu-panel .mini-icon {
  width: 22px;
  height: 22px;
}

.icon-globe {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-globe::before,
.icon-globe::after {
  position: absolute;
  content: "";
}

.icon-globe::before {
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 6px;
  border-right: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.icon-globe::after {
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

.icon-band {
  border: 2px solid currentColor;
  border-radius: 8px;
}

.icon-band::before,
.icon-band::after {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  content: "";
  transform: translateX(-50%);
}

.icon-band::before {
  top: -6px;
  border-bottom: 0;
}

.icon-band::after {
  bottom: -6px;
  border-top: 0;
}

.icon-pulse::before {
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-pulse::after {
  position: absolute;
  top: 8px;
  left: 3px;
  width: 13px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid transparent;
  transform: skewX(-28deg);
  content: "";
}

.icon-phone {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-phone::after {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.icon-bell::before {
  position: absolute;
  inset: 3px 4px 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 3px 3px;
  content: "";
}

.icon-bell::after {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 -1px currentColor;
  content: "";
  transform: translateX(-50%);
}

main {
  padding-top: 82px;
}

.hero,
.page-hero {
  display: grid;
  align-items: center;
  gap: 72px;
  padding: 92px var(--page-x) 110px;
}

.hero {
  min-height: 760px;
  grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1.12fr);
}

.page-hero {
  min-height: 620px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
}

.page-hero.compact {
  min-height: 480px;
  grid-template-columns: minmax(0, 860px);
  align-items: end;
}

.kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: 0;
}

.lead,
.story-text p,
.lab-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 900;
}

.button.primary {
  color: #06100f;
  background: var(--teal);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 900;
}

.image-cut,
.page-hero-photo,
.story-photo,
.lab-image {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-cut {
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 90% 100%, 0 100%, 0 12%);
}

.hero-image,
.page-hero-photo {
  position: relative;
  margin: 0;
  min-height: 540px;
}

.hero-image img,
.page-hero-photo img {
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.hero-image figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  min-width: 250px;
  padding: 16px 18px;
  border-left: 5px solid var(--teal);
  background: rgba(9, 12, 12, 0.76);
  backdrop-filter: blur(14px);
}

.hero-image figcaption span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.hero-image figcaption strong {
  font-size: 16px;
}

.quiet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 var(--page-x);
  border: 1px solid var(--line);
  background: var(--line);
}

.quiet-stats article {
  position: relative;
  min-height: 170px;
  padding: 30px;
  background: rgba(20, 25, 24, 0.9);
}

.quiet-stats article::before,
.spec-list article::before,
.insight-grid article::before,
.process-section article::before,
.faq-section article::before,
.rail-card::before {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
}

.quiet-stats article:nth-child(1)::before { content: "↯"; }
.quiet-stats article:nth-child(2)::before { content: "g"; }
.quiet-stats article:nth-child(3)::before { content: "≈"; }
.spec-list article:nth-child(1)::before { content: "◌"; }
.spec-list article:nth-child(2)::before { content: "↯"; }
.spec-list article:nth-child(3)::before { content: "⌁"; }
.spec-list article:nth-child(4)::before { content: "◇"; }
.spec-list article:nth-child(5)::before { content: "●"; }
.spec-list article:nth-child(6)::before { content: "g"; }
.insight-grid article:nth-child(1)::before { content: "☾"; }
.insight-grid article:nth-child(2)::before { content: "♡"; }
.insight-grid article:nth-child(3)::before { content: "↗"; }
.insight-grid article:nth-child(4)::before { content: "○"; }
.process-section article:nth-child(1)::before { content: "⌁"; }
.process-section article:nth-child(2)::before { content: "◷"; }
.process-section article:nth-child(3)::before { content: "↓"; }
.faq-section article::before { content: "?"; }
.rail-card:nth-child(1)::before { content: "☾"; }
.rail-card:nth-child(2)::before { content: "♡"; }
.rail-card:nth-child(3)::before { content: "↗"; }
.rail-card:nth-child(4)::before { content: "○"; }

.quiet-stats span,
.spec-list span,
.rail-card span,
.process-section span,
.insight-grid span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.quiet-stats strong {
  display: block;
  margin: 8px 0;
  color: var(--amber);
  font-size: 32px;
  line-height: 1;
}

.quiet-stats p,
.rail-card p,
.spec-list p,
.insight-grid p,
.process-section p,
.faq-section p,
.site-footer,
.notify-form span {
  color: var(--muted);
}

.wide-story,
.lab-band,
.spec-section,
.feature-rail,
.process-section,
.insight-grid,
.quote-panel,
.faq-section,
.notify-section,
.cta-section {
  padding: 120px var(--page-x);
}

.wide-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 78px;
  align-items: center;
}

.wide-story.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.story-photo,
.lab-image {
  min-height: 460px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}

.story-photo img,
.lab-image img {
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.layered-photo {
  position: relative;
}

.layered-photo::before {
  position: absolute;
  inset: 34px auto auto -34px;
  width: 45%;
  height: 44%;
  background: var(--coral);
  content: "";
  z-index: -1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading::before,
.story-text::before,
.lab-copy::before {
  display: block;
  width: 78px;
  height: 7px;
  margin-bottom: 26px;
  background: var(--coral);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  content: "";
}

.drag-shell {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
}

.drag-shell::-webkit-scrollbar {
  display: none;
}

.drag-shell.is-dragging {
  cursor: grabbing;
}

.drag-track {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 4px var(--page-x) 22px 0;
}

.drag-track.relaxed {
  gap: 28px;
}

.rail-card {
  width: min(390px, 82vw);
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(23, 29, 28, 0.9);
  user-select: none;
}

.rail-card:nth-child(even) {
  transform: translateY(34px);
}

.lab-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 74px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
}

.lab-copy {
  max-width: 560px;
}

.cta-section,
.notify-section,
.quote-panel {
  margin: 0 var(--page-x) 100px;
  padding: 60px;
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(37, 214, 196, 0.12), rgba(238, 116, 104, 0.1)),
    var(--surface);
}

.cta-section h2,
.notify-section h2 {
  margin-bottom: 24px;
}

.page-hero-photo img {
  object-position: 72% center;
}

.spec-list,
.insight-grid,
.process-section,
.faq-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spec-list article,
.insight-grid article,
.process-section article,
.faq-section article {
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(23, 29, 28, 0.9);
}

.insight-grid,
.process-section,
.faq-section {
  padding-top: 92px;
}

.insight-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quote-panel p {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.35;
}

.app-panel {
  display: grid;
  min-height: 520px;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(37, 214, 196, 0.15), transparent 17rem),
    var(--surface);
}

.phone-frame {
  width: 260px;
  height: 500px;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(145deg, #303b39, #080b0b);
  box-shadow: var(--shadow);
}

.phone-ui {
  display: grid;
  height: 100%;
  align-content: start;
  gap: 24px;
  padding: 34px 24px;
  border-radius: 32px;
  background: #0b100f;
}

.phone-ui span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.phone-ui strong {
  font-size: 24px;
  line-height: 1.2;
}

.ring {
  width: 150px;
  height: 150px;
  margin: 8px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0b100f 0 52%, transparent 53%),
    conic-gradient(var(--teal) 0 72%, var(--coral) 72% 84%, rgba(255, 255, 255, 0.1) 84% 100%);
}

.app-bars {
  display: flex;
  height: 120px;
  align-items: end;
  gap: 12px;
}

.app-bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--teal), rgba(37, 214, 196, 0.1));
}

.app-bars i:nth-child(1) { height: 42%; }
.app-bars i:nth-child(2) { height: 68%; }
.app-bars i:nth-child(3) { height: 54%; }
.app-bars i:nth-child(4) { height: 82%; background: linear-gradient(180deg, var(--coral), rgba(238, 116, 104, 0.1)); }
.app-bars i:nth-child(5) { height: 63%; }

.notify-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 40px;
  align-items: end;
}

.notify-form {
  display: grid;
  gap: 16px;
}

.notify-form label {
  display: grid;
  gap: 8px;
}

.notify-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px var(--page-x);
  border-top: 1px solid var(--line);
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer strong {
  color: var(--text);
}

.section-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

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

[data-parallax] {
  will-change: transform;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-action {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr 82px;
  }

  .hero,
  .page-hero,
  .wide-story,
  .wide-story.reverse,
  .lab-band,
  .notify-section {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .quiet-stats,
  .spec-list,
  .process-section,
  .faq-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  :root {
    --page-x: 20px;
  }

  .brand {
    font-size: 21px;
  }

  .hero,
  .page-hero {
    gap: 40px;
    padding-top: 62px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-image,
  .hero-image img,
  .page-hero-photo,
  .page-hero-photo img {
    min-height: 390px;
  }

  .quiet-stats,
  .spec-list,
  .insight-grid,
  .process-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .wide-story,
  .lab-band,
  .spec-section,
  .feature-rail,
  .process-section,
  .insight-grid,
  .quote-panel,
  .faq-section,
  .notify-section,
  .cta-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .story-photo,
  .story-photo img,
  .lab-image,
  .lab-image img {
    min-height: 320px;
  }

  .cta-section,
  .notify-section,
  .quote-panel {
    margin-inline: var(--page-x);
    padding: 28px;
  }

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