:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #646a73;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --night: #111816;
  --night-2: #1c2722;
  --line: #dde2dc;
  --green: #1f8a70;
  --green-dark: #126250;
  --copper: #b36b3f;
  --blue: #365d88;
  --yellow: #d8a534;
  --shadow: 0 22px 70px rgba(21, 29, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.hero-section {
  min-height: 92vh;
  padding: 22px clamp(18px, 4vw, 64px) 54px;
  background:
    radial-gradient(circle at 82% 26%, rgba(31, 138, 112, 0.22), transparent 28%),
    linear-gradient(135deg, #101614 0%, #1d2924 52%, #293028 100%);
  color: #f6fbf7;
  overflow: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 0;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 900;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: rgba(246, 251, 247, 0.72);
  font-size: 14px;
  font-weight: 800;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(92vh - 86px);
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(246, 251, 247, 0.76);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-action {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 28px rgba(31, 138, 112, 0.24);
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.secondary-action.light {
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  perspective: 1200px;
}

.product-frame {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.desktop-frame {
  top: 70px;
  right: 0;
  width: min(100%, 560px);
  min-height: 340px;
  padding: 14px;
  transform: rotateX(6deg) rotateY(-9deg);
}

.frame-bar,
.preview-top {
  display: flex;
  gap: 7px;
  padding-bottom: 14px;
}

.frame-bar span,
.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.chart-panel {
  min-height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
    rgba(255, 255, 255, 0.12);
}

.chart-panel.tall {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(31, 138, 112, 0.88), rgba(31, 138, 112, 0.2)),
    rgba(255, 255, 255, 0.12);
}

.chart-panel.accent {
  background:
    linear-gradient(135deg, rgba(216, 165, 52, 0.82), rgba(179, 107, 63, 0.22)),
    rgba(255, 255, 255, 0.12);
}

.chart-panel.wide {
  grid-column: span 2;
  min-height: 72px;
}

.phone-frame {
  right: 24px;
  bottom: 42px;
  width: 190px;
  min-height: 330px;
  padding: 18px 14px;
  background: #eef4ef;
  color: var(--ink);
  transform: rotateX(2deg) rotateY(-15deg);
}

.phone-speaker {
  width: 52px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #202825;
}

.app-card {
  height: 66px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 24, 22, 0.1);
}

.app-card.active {
  background: linear-gradient(135deg, var(--green), #89b86d);
}

.app-card.muted {
  background: #dfe7df;
}

.ai-console {
  position: absolute;
  left: 16px;
  bottom: 92px;
  display: grid;
  gap: 4px;
  width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(17, 24, 22, 0.78);
  box-shadow: var(--shadow);
}

.ai-console span,
.ai-console small {
  color: rgba(246, 251, 247, 0.64);
}

.ai-console strong {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.signal {
  position: absolute;
  left: 32px;
  top: 54px;
  display: flex;
  gap: 10px;
}

.signal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yellow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1180px;
  margin: -30px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-strip span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.trust-strip span:last-child {
  border-right: 0;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px clamp(18px, 4vw, 0px) 0;
}

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

.section-heading h2,
.ai-copy h2,
.contact-inner h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.service-tabs button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 20px;
  font-weight: 950;
}

.service-tabs button span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.service-tabs button.active {
  border-color: rgba(31, 138, 112, 0.4);
  background: #e8f4ee;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-panel h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.16;
}

.service-panel p,
.ai-copy p,
.contact-inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8faf8;
  color: var(--green-dark);
  font-weight: 950;
}

.portfolio-section {
  perspective: 1200px;
}

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

.portfolio-card {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(21, 29, 25, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
}

.demo-preview {
  height: 235px;
  padding: 16px;
  background: linear-gradient(135deg, #25332e, #dce5dc);
}

.demo-preview .preview-top span {
  background: rgba(20, 20, 20, 0.22);
}

.preview-body {
  height: calc(100% - 24px);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.preview-hero {
  height: 68px;
  border-radius: 8px;
  background: var(--green);
}

.preview-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.preview-lines span {
  height: 8px;
  border-radius: 999px;
  background: #cfd8d0;
}

.preview-lines span:nth-child(2) {
  width: 74%;
}

.preview-lines span:nth-child(3) {
  width: 52%;
}

.preview-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-widgets span {
  height: 42px;
  border-radius: 8px;
  background: #edf1ed;
}

.demo-saas .preview-hero,
.demo-field .preview-hero,
.demo-sales .preview-hero {
  background: var(--blue);
}

.demo-course .preview-hero,
.demo-loyalty .preview-hero,
.demo-docs .preview-hero {
  background: var(--copper);
}

.demo-fitness .preview-hero,
.demo-support .preview-hero,
.demo-hotel .preview-hero {
  background: var(--green);
}

.portfolio-content {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.portfolio-content span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.portfolio-content h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.portfolio-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-row small {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-weight: 800;
}

.ai-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
  margin: 96px auto 0;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 52px);
  background: var(--night);
  color: #f6fbf7;
  box-shadow: var(--shadow);
}

.ai-copy p {
  color: rgba(246, 251, 247, 0.68);
}

.ai-workbench {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.ai-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ai-options button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  color: rgba(246, 251, 247, 0.72);
  font-weight: 900;
}

.ai-options button.active {
  border-color: transparent;
  background: var(--green);
  color: #ffffff;
}

.ai-answer {
  min-height: 190px;
  border-radius: 8px;
  padding: 22px;
  background: #f6fbf7;
  color: var(--ink);
}

.ai-answer span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.ai-answer p {
  margin: 14px 0 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.55;
}

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

.process-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.process-card span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 950;
}

.process-card h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-band {
  margin-top: 96px;
  padding: 76px clamp(18px, 4vw, 64px);
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.92), rgba(17, 24, 22, 0.96)),
    var(--night);
  color: #ffffff;
}

.contact-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  margin-bottom: 18px;
}

.contact-inner p {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  justify-content: center;
}

.animate-in {
  opacity: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .service-panel,
  .ai-lab {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 520px;
  }

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

  .trust-strip {
    margin-left: 18px;
    margin-right: 18px;
  }

  .trust-strip span {
    border-bottom: 1px solid var(--line);
  }

  .trust-strip span:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .hero-section {
    min-height: auto;
  }

  .site-nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .desktop-frame {
    top: 28px;
    width: 100%;
    min-height: 280px;
  }

  .phone-frame {
    right: 0;
    bottom: 12px;
    width: 160px;
    min-height: 284px;
  }

  .ai-console {
    left: 0;
    bottom: 34px;
    width: 170px;
  }

  .trust-strip,
  .service-tabs,
  .portfolio-grid,
  .process-grid,
  .ai-options {
    grid-template-columns: 1fr;
  }

  .trust-strip span,
  .trust-strip span:last-child {
    grid-column: auto;
    border-right: 0;
  }

  .section-shell {
    padding-top: 68px;
  }

  .service-panel,
  .ai-lab {
    margin-left: 18px;
    margin-right: 18px;
  }

  .portfolio-grid,
  .process-grid,
  .section-heading,
  .service-tabs {
    padding-left: 18px;
    padding-right: 18px;
  }

  .portfolio-card {
    min-height: auto;
  }
}
