:root {
  --ink: #10202a;
  --muted: #63727d;
  --line: #d9e2e8;
  --paper: #f7fafb;
  --panel: #ffffff;
  --blue: #1764e8;
  --teal: #16a0a8;
  --lime: #b8ff32;
  --orange: #f47b20;
  --violet: #7856d9;
  --shadow: 0 18px 55px rgba(16, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(23, 100, 232, 0.1), transparent 34rem),
    linear-gradient(180deg, #f8fbfd 0%, #eef6f1 48%, #fbfaf6 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(217, 226, 232, 0.8);
  background: rgba(248, 251, 253, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: #0c2633;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  background:
    linear-gradient(135deg, var(--lime) 0 45%, transparent 45%),
    linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 0 0 4px rgba(23, 100, 232, 0.11);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #40515c;
  font-size: 0.92rem;
  font-weight: 700;
}

.top-nav a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.top-nav a:hover {
  border-color: var(--line);
  background: #fff;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3.5rem) 2.5rem;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #071d2b;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: #071d2b;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-lead,
.section-heading p,
.system-copy p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.hero-actions,
.contact-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-action,
.secondary-action {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  color: #fff;
  background: #092e3a;
  box-shadow: 0 12px 28px rgba(9, 46, 58, 0.18);
}

.secondary-action {
  color: #103243;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.hero-board {
  display: grid;
  gap: 0.9rem;
}

.capability {
  min-height: 9.25rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 30px rgba(16, 32, 42, 0.08);
}

.capability.active {
  color: #fff;
  border-color: rgba(9, 46, 58, 0.1);
  background:
    linear-gradient(135deg, rgba(184, 255, 50, 0.18), transparent 42%),
    #092e3a;
}

.capability strong {
  display: block;
  margin: 0.6rem 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.capability p {
  margin-bottom: 0;
  color: inherit;
  opacity: 0.82;
}

.capability-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: #092e3a;
  background: var(--lime);
  font-weight: 900;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(1rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip div {
  min-height: 6.25rem;
  padding: 1rem;
  background: #fff;
}

.proof-strip span,
.case-note span,
.system-item span,
.video-meta span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  margin-top: 0.3rem;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.18;
}

.section-block {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3.5rem);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 1.8rem;
}

.workflow-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workflow-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.ops-showcase {
  background: rgba(255, 255, 255, 0.38);
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.ops-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ops-frame img {
  width: 100%;
  object-fit: cover;
}

.ops-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ops-item {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ops-item span {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-item strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
  line-height: 1.24;
}

.ops-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
}

.filter-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2c3d47;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.filter-button.active {
  color: #fff;
  border-color: #092e3a;
  background: #092e3a;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 32, 42, 0.08);
}

.video-card[hidden] {
  display: none;
}

.video-card video,
.asset-preview {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #dce7ec;
  object-fit: cover;
}

.asset-preview {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 100, 232, 0.82), rgba(22, 160, 168, 0.76)),
    #103243;
}

.asset-preview span {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-preview strong {
  font-size: 1.7rem;
  line-height: 1.1;
}

.asset-preview a {
  width: fit-content;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #092e3a;
  background: #fff;
  font-weight: 900;
}

.video-meta {
  padding: 1rem;
}

.video-meta p,
.case-note p,
.system-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.app-showcase {
  background: rgba(255, 255, 255, 0.42);
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.phone-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 9px solid #0e242f;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.phone-shot.offset {
  transform: translateY(2rem);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.case-notes {
  display: grid;
  gap: 1rem;
}

.case-note,
.system-item {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.system-item {
  min-height: 13rem;
}

.system-item span {
  color: var(--orange);
  margin-bottom: 2rem;
}

.system-item strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

.system-dashboard {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.system-dashboard-copy {
  max-width: 820px;
  padding: 1.2rem 1.2rem 0;
}

.system-dashboard-copy h3 {
  font-size: 1.45rem;
}

.system-dashboard-copy p:last-child {
  margin-bottom: 1rem;
  color: var(--muted);
}

.system-dashboard img {
  width: 100%;
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-item {
  min-height: 13rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 251, 0.95)),
    #fff;
}

.process-item span {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-item strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.24rem;
  line-height: 1.25;
}

.process-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-section {
  justify-content: space-between;
  margin: clamp(1rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-section div {
  max-width: 780px;
}

@media (max-width: 1100px) {
  .hero-section,
  .app-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

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

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

  .ops-list {
    grid-template-columns: 1fr;
  }

  .system-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2.4rem;
  }

  .proof-strip,
  .video-grid,
  .process-grid,
  .ops-list,
  .system-grid,
  .phone-pair {
    grid-template-columns: 1fr;
  }

  .phone-shot.offset {
    transform: none;
  }

  .video-card video,
  .asset-preview {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .capability {
    min-height: 0;
  }
}
