:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --ink: #10223c;
  --muted: #5e718d;
  --border: #d9e7f6;
  --blue: #1f6fe5;
  --blue-strong: #155bc8;
  --teal: #16c8ad;
  --teal-soft: #dffbf6;
  --green: #16804a;
  --green-soft: #e7f8ee;
  --red: #ff4b56;
  --shadow: 0 20px 60px rgba(21, 74, 128, 0.12);
  --container: min(1160px, calc(100vw - 40px));
  color: var(--ink);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    sans-serif;
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(232, 245, 255, 0.9), rgba(255, 255, 255, 0) 38%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(217, 231, 246, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(31, 111, 229, 0.18),
    0 10px 20px rgba(31, 111, 229, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #40536e;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.header-cta {
  padding: 0 18px;
  background: #e62117;
  color: #fff;
  box-shadow: 0 12px 24px rgba(230, 33, 23, 0.22);
}

.section-shell {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 70px 0 56px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: 100vw;
  border: 1px solid rgba(177, 210, 245, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(31, 111, 229, 0.1), rgba(255, 255, 255, 0) 38%),
    linear-gradient(155deg, rgba(22, 200, 173, 0.08), rgba(255, 255, 255, 0) 44%),
    linear-gradient(rgba(31, 111, 229, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 229, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 245, 255, 0.64));
  background-size:
    auto,
    auto,
    42px 42px,
    42px 42px,
    auto;
  box-shadow: 0 28px 80px rgba(31, 111, 229, 0.12);
  content: "";
  transform: translateX(-50%);
}

.hero::after {
  position: absolute;
  top: 94px;
  right: 18px;
  z-index: -1;
  width: min(42vw, 480px);
  height: 210px;
  border-radius: 8px;
  border: 1px solid rgba(177, 210, 245, 0.42);
  background:
    linear-gradient(90deg, rgba(31, 111, 229, 0.12) 0 88px, transparent 88px),
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(239, 247, 255, 0.22));
  box-shadow:
    -72px 48px 0 -18px rgba(255, 255, 255, 0.46),
    -72px 48px 0 -17px rgba(177, 210, 245, 0.34),
    72px 64px 0 -28px rgba(255, 255, 255, 0.38),
    72px 64px 0 -27px rgba(22, 200, 173, 0.2);
  content: "";
  opacity: 0.5;
}

.hero-copy,
.product-console {
  position: relative;
}

.hero-copy::before {
  position: absolute;
  right: 4px;
  bottom: 122px;
  z-index: -1;
  width: 260px;
  height: 132px;
  border: 1px solid rgba(31, 111, 229, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 111, 229, 0.18) 0 34%, transparent 34% 100%),
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  content: "";
  opacity: 0.5;
}

.hero-copy::after {
  position: absolute;
  right: 38px;
  bottom: 84px;
  z-index: -1;
  width: 190px;
  height: 44px;
  border: 1px solid rgba(22, 200, 173, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  opacity: 0.62;
}

.section-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10.8em;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 950;
  line-height: 0.98;
}

h1 span {
  display: block;
}

.hero-title-accent {
  color: var(--blue);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 950;
  line-height: 1.12;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

.hero-lead,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.button {
  gap: 10px;
  padding: 0 20px;
}

.button svg,
.featured-product svg,
.project-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 34px rgba(31, 111, 229, 0.22);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  min-width: 0;
  padding: 0;
}

.hero-stats dt {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 27px;
  font-weight: 950;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero-stats dd span {
  display: block;
  margin-top: 4px;
  color: #7890ad;
  font-size: 12px;
  font-weight: 750;
}

.product-console {
  padding: 24px;
  border: 1px solid rgba(217, 231, 246, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow);
}

.console-header,
.featured-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.console-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.console-header strong {
  color: var(--ink);
  font-size: 18px;
}

.featured-product {
  align-items: flex-start;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(67, 130, 240, 0.34);
  background:
    radial-gradient(circle at 10% 20%, rgba(54, 145, 255, 0.34), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(113, 176, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #071d4f 0%, #0d3e91 52%, #09275f 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 34px rgba(13, 62, 145, 0.2);
}

.featured-logo {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(130, 185, 255, 0.34), 0 14px 28px rgba(0, 18, 68, 0.28);
}

.featured-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-product h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.14;
}

.featured-product p {
  margin-bottom: 0;
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.featured-product a {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
}

.console-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.console-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.console-row strong,
.console-row small {
  display: block;
}

.console-row strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.console-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--project-accent), transparent 82%);
}

.project-matrix {
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.72fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading-left {
  display: block;
  max-width: 760px;
}

.section-heading-left h2 {
  max-width: 720px;
}

.section-heading-left p:not(.section-label) {
  max-width: 650px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

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

.project-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(21, 74, 128, 0.08);
}

.project-card-content {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.project-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.product-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--project-soft);
  color: var(--project-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  font-weight: 950;
  overflow: hidden;
}

.product-mark-small {
  width: 38px;
  height: 38px;
}

.product-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-mark span {
  display: none;
}

.product-mark img[hidden] + span {
  display: grid;
}

.project-status {
  color: var(--project-accent);
  font-size: 13px;
  font-weight: 900;
}

.project-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
}

.project-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.72;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--project-accent);
  font-size: 15px;
  font-weight: 950;
}

.tool-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 138px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--project-accent), transparent 82%), transparent 34%),
    var(--project-soft);
}

.tool-visual-logo {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--project-accent), transparent 72%);
}

.tool-visual-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-visual-lines {
  display: grid;
  gap: 9px;
}

.tool-visual-lines span {
  display: block;
  width: min(100%, 220px);
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--project-accent), #ffffff 72%);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #263b56;
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: #40536e;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section-heading,
  .section-heading-left {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero::after,
  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

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

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-stats div,
  .hero-stats div:first-child {
    padding: 0;
    border-left: 0;
  }

  .product-console {
    padding: 16px;
  }

  .featured-product {
    display: grid;
  }

  .project-matrix {
    padding: 60px 0;
  }

  .site-footer {
    display: grid;
  }
}
