:root {
  --ink: #17181c;
  --muted: #646a73;
  --paper: #f7f5ef;
  --white: #ffffff;
  --teal: #157f86;
  --coral: #df634c;
  --green: #6f8d54;
  --gold: #c59a42;
  --line: rgba(23, 24, 28, 0.14);
  --shadow: 0 24px 70px rgba(23, 24, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  color: var(--white);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(23, 24, 28, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px 20px 48px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 19, 22, 0.82), rgba(12, 19, 22, 0.34) 52%, rgba(12, 19, 22, 0.08)),
    linear-gradient(0deg, rgba(12, 19, 22, 0.66), rgba(12, 19, 22, 0.04) 52%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  margin-left: clamp(0px, 7vw, 96px);
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-content p:not(.kicker) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

.primary-action,
.signup button {
  background: var(--coral);
  color: var(--white);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.hero-note {
  position: absolute;
  right: clamp(20px, 6vw, 84px);
  bottom: 42px;
  width: min(260px, calc(100% - 40px));
  padding: 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.hero-note strong {
  margin-top: 4px;
}

section:not(.hero) {
  padding: 80px clamp(20px, 6vw, 88px);
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.16;
}

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

.brief-grid article,
.pulse-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.brief-grid p,
.pulse-card p,
.feature-row p {
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.tag.coral {
  color: var(--coral);
}

.tag.green {
  color: var(--green);
}

.edits {
  background: #ffffff;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-width: 88px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--ink);
  color: var(--white);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 30px;
  align-items: stretch;
  padding: 34px;
  border-radius: 8px;
  background: #eff4f3;
}

.feature-row h3 {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 48px);
}

.mini-list {
  display: grid;
  gap: 10px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.pulse-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.pulse-card.wide {
  grid-row: span 2;
  min-height: 494px;
  background: var(--ink);
  color: var(--white);
}

.pulse-card.wide p {
  color: rgba(255, 255, 255, 0.72);
}

.pulse-card span {
  display: block;
  margin-bottom: 70px;
  color: var(--coral);
  font-weight: 900;
}

.join {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: #dfe8df;
}

.join h2 {
  max-width: 680px;
}

.signup {
  display: flex;
  width: min(480px, 100%);
  gap: 8px;
}

.signup input {
  min-width: 0;
  flex: 1;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.signup button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header {
    inset: 10px 10px auto;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 16px;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 88svh;
    padding: 110px 18px 34px;
  }

  .hero-content {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 26px;
  }

  section:not(.hero) {
    padding: 58px 18px;
  }

  .brief-grid,
  .feature-row,
  .pulse-grid,
  .join {
    grid-template-columns: 1fr;
  }

  .brief-grid,
  .pulse-grid {
    display: grid;
  }

  .feature-row,
  .join {
    display: grid;
  }

  .pulse-card.wide {
    min-height: 300px;
  }

  .signup {
    flex-direction: column;
  }
}
