:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0e1318;
  --surface: rgba(16, 22, 28, 0.78);
  --surface-strong: #141b22;
  --text: #f4f8fb;
  --muted: #9aa8b4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #23d6c8;
  --accent-2: #a2f45c;
  --accent-3: #f1b84b;
  --shadow: rgba(0, 0, 0, 0.42);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f7;
  --bg-soft: #e9eeee;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #111a20;
  --muted: #5c6971;
  --line: rgba(17, 26, 32, 0.13);
  --accent: #008e84;
  --accent-2: #518f00;
  --accent-3: #b87500;
  --shadow: rgba(24, 38, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 214, 200, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 62%, var(--bg));
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 68%, var(--line));
  color: var(--accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 54%),
    color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 16%, transparent);
}

.brand-mark svg {
  width: 41px;
  height: 41px;
}

.brand strong {
  display: block;
  line-height: 1.05;
}

.brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.brand strong {
  background: linear-gradient(90deg, var(--accent) 0%, #ffffff 46%, var(--accent-3) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(1.12rem, 1.7vw, 1.62rem);
  font-weight: 800;
}

[data-theme="light"] .brand strong {
  background: linear-gradient(90deg, #007f78 0%, #13242a 48%, #b05f00 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  color: var(--accent-2);
  font-size: clamp(1.12rem, 1.7vw, 1.62rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 2px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

select,
button {
  font: inherit;
}

select {
  min-height: 40px;
  max-width: 132px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0 10px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

.theme-icon {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(20px, 6vw, 84px) 80px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/chain-signal-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.74) 40%, rgba(7, 9, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.1) 0%, rgba(7, 9, 13, 0.84) 100%);
}

[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(245, 247, 247, 0.96) 0%, rgba(245, 247, 247, 0.75) 42%, rgba(245, 247, 247, 0.2) 100%),
    linear-gradient(180deg, rgba(245, 247, 247, 0.08) 0%, rgba(245, 247, 247, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: min(100%, 760px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 7.4vw, 7.2rem);
  line-height: 0.95;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--accent);
  color: #041010;
}

.button.secondary {
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  color: var(--text);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px clamp(20px, 6vw, 84px);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.intro-band span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-band strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.intro-band p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: clamp(1rem, 2vw, 1.38rem);
  line-height: 1.48;
}

.section,
.split-section,
.poster-section {
  padding: clamp(64px, 8vw, 116px) clamp(20px, 6vw, 84px);
}

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

.section-heading h2,
.poster-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 1.02;
}

.section-heading p:not(.eyebrow),
.poster-copy p:not(.eyebrow),
.contact-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

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

.service-card {
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 20px 60px var(--shadow);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--accent);
  font-weight: 900;
}

.service-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    var(--surface);
}

.industry-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.industry-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 22px;
  background: var(--surface-strong);
}

.industry-list strong {
  font-size: 1.04rem;
}

.industry-list span {
  color: var(--muted);
  line-height: 1.5;
}

.poster-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: #04070a;
  box-shadow: 0 28px 80px var(--shadow);
}

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

.contact-section {
  padding-top: 32px;
}

.contact-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%),
    var(--surface-strong);
  padding: clamp(28px, 5vw, 58px);
}

.contact-panel .button {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .site-header {
    gap: 16px;
  }

  .brand-line {
    gap: 8px;
  }

  .brand strong,
  .brand small {
    font-size: clamp(0.96rem, 1.4vw, 1.28rem);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-block: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  }

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

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

  .split-section,
  .poster-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .language-picker {
    flex: 1;
    justify-content: space-between;
    min-width: 0;
  }

  select {
    max-width: 150px;
  }

  .hero {
    min-height: auto;
    padding: 116px 16px 52px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.72)),
      linear-gradient(180deg, rgba(7, 9, 13, 0.08) 0%, rgba(7, 9, 13, 0.9) 100%);
  }

  [data-theme="light"] .hero-overlay {
    background:
      linear-gradient(90deg, rgba(245, 247, 247, 0.95), rgba(245, 247, 247, 0.76)),
      linear-gradient(180deg, rgba(245, 247, 247, 0.06) 0%, rgba(245, 247, 247, 0.9) 100%);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 12.4vw, 3.35rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.92rem;
    text-transform: none;
  }

  .intro-band,
  .industry-list div {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .section,
  .split-section,
  .poster-section,
  .site-footer {
    padding-inline: 16px;
  }

  .intro-band {
    gap: 16px;
    padding-block: 22px;
  }

  .intro-band strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .poster-copy p:not(.eyebrow),
  .contact-panel p:not(.eyebrow),
  .service-card p,
  .industry-list span,
  .intro-band p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
  }

  .card-icon {
    margin-bottom: 24px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .poster-copy h2,
  .contact-panel h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .industry-list div {
    gap: 8px;
    min-height: auto;
    padding: 18px 16px;
  }

  .poster-section {
    gap: 22px;
  }

  .poster-frame {
    aspect-ratio: 4 / 3;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .site-footer {
    padding-top: 22px;
    padding-bottom: 26px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  .header-actions {
    align-items: stretch;
  }

  .language-picker {
    gap: 6px;
    font-size: 0.72rem;
  }

  select {
    max-width: 138px;
    min-height: 38px;
    padding-inline: 8px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 112px;
    padding-inline: 12px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .intro-band,
  .section,
  .split-section,
  .poster-section,
  .site-footer {
    padding-inline: 12px;
  }
}
