:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --paper-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --charcoal: #090d16;
  --charcoal-soft: #111827;
  --acid: #00f2fe;
  --coral: #2563eb;
  --cyan: #06b6d4;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img,
iframe {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  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,
    color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-name {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle svg,
.button svg,
.service-card svg,
.scroll-cue svg,
.text-link svg,
.contact-points svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(118px, 17vh, 170px) clamp(20px, 5vw, 72px) clamp(54px, 9vh, 88px);
  color: var(--white);
  background: var(--charcoal);
}

.video-backdrop,
.video-poster,
.video-backdrop iframe,
.hero-shade {
  position: absolute;
  inset: 0;
}

.video-backdrop {
  z-index: -3;
  overflow: hidden;
  background: #11130f;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  visibility: visible;
}

.video-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-backdrop iframe {
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  border: 0;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -2;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 13, 22, 0.25) 0%, rgba(9, 13, 22, 0.1) 46%, rgba(9, 13, 22, 0.02) 100%),
    linear-gradient(0deg, rgba(9, 13, 22, 0.2) 0%, rgba(9, 13, 22, 0.05) 50%, rgba(9, 13, 22, 0.15) 100%);
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow,
.section-kicker,
.plan-label {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #53d7e7;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-shadow: 0 0 16px rgba(83, 215, 231, 0.32);
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: #fffdf8;
  text-shadow: 0 2px 24px rgba(83, 215, 231, 0.22);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 30px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  color: #fffdf8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.hero-actions,
.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.15;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.button-ghost {
  color: #fffdf8;
  background: rgba(83, 215, 231, 0.06);
  border-color: rgba(83, 215, 231, 0.48);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(83, 215, 231, 0.12);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(83, 215, 231, 0.14);
  border-color: rgba(83, 215, 231, 0.72);
  box-shadow: 0 0 24px rgba(83, 215, 231, 0.24);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 42px 0 0;
  border: 1px solid rgba(83, 215, 231, 0.18);
  background: rgba(83, 215, 231, 0.08);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  min-width: 0;
  padding: 17px;
  background: rgba(10, 11, 8, 0.22);
  border-left: 1px solid rgba(83, 215, 231, 0.12);
}

.hero-metrics dt {
  font-size: clamp(1.15rem, 2.8vw, 1.8rem);
  font-weight: 950;
  line-height: 1.1;
  color: #fffdf8;
  text-shadow: 0 0 12px rgba(83, 215, 231, 0.18);
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: #e8ecff;
  font-size: 0.9rem;
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 28px;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
}

.section {
  padding: clamp(66px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro-band {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
  background: var(--paper-strong);
}

.intro-band h2 {
  margin: 0;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

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

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

.service-card,
.audience-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.audience-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  color: var(--coral);
}

.service-card p,
.audience-grid p,
.timeline p,
.proof-copy p,
.contact-copy p,
.plan-summary p,
.plan-list {
  color: var(--muted);
}

.dark-panel {
  color: var(--white);
  background: var(--charcoal);
}

.dark-panel .section-kicker {
  color: var(--acid);
}

.dark-panel .section-heading {
  width: min(840px, 100%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  background: transparent;
}

.timeline article {
  min-width: 0;
  min-height: 250px;
  padding: 28px 24px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline article:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.timeline span {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 42px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--cyan);
  font-size: 0.86rem;
  font-weight: 950;
}

.timeline p {
  color: rgba(255, 253, 248, 0.7);
}

.proof-section {
  background: #ffffff;
  background-image: radial-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.proof-media {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--charcoal);
  transition: transform 0.3s ease;
}

.proof-media:hover {
  transform: scale(1.02);
}

.proof-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
}

.plan-section {
  background: var(--paper-strong);
}

.plan-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 15, 0.05);
}

.tab {
  min-height: 42px;
  padding: 8px 16px;
  color: var(--muted);
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 900;
}

.tab.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.plan-display {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr) auto;
  gap: clamp(22px, 4vw, 50px);
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(6, 182, 212, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.plan-summary h3 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.plan-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
}

.audience-section {
  background: var(--paper);
}

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

.contact-section {
  color: var(--white);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-section .section-kicker {
  color: var(--cyan);
}

.contact-copy p {
  color: rgba(255, 253, 248, 0.72);
}

.contact-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 800;
}

.contact-points svg {
  color: var(--acid);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: 0;
  background: rgba(15, 23, 42, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(83, 215, 231, 0.2);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--acid);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--coral);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 12, 9, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 900;
}

.modal-body {
  margin: 0 0 20px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-display,
  .proof-layout,
  .contact-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .plan-display {
    align-items: start;
  }

  .plan-display .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px 18px;
    color: var(--ink);
    background: rgba(247, 244, 236, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 108px 18px 48px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 18vw, 5.6rem);
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .timeline article {
    min-height: auto;
  }

  .timeline span {
    margin-bottom: 28px;
  }

  .plan-tabs {
    width: 100%;
  }

  .plan-display .button {
    width: 100%;
  }
}

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