:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #111111;
  --muted: #505050;
  --line: #d7d2c8;
  --red: #ea4335;
  --blue: #1d4ed8;
  --yellow: #fbbc04;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.hero {
  padding: 6rem 0 3rem;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.hero::before {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--red);
  right: 8%;
  top: 1.6rem;
}

.hero::after {
  width: 120px;
  height: 120px;
  background: var(--blue);
  right: 20%;
  top: 4.8rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  border: 2px solid var(--ink);
  padding: 0.2rem 0.5rem;
  margin-bottom: 1rem;
  background: var(--yellow);
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.06;
  margin: 0;
  max-width: 860px;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: var(--paper);
}

.section {
  padding: 2.3rem 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
}

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

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 1rem;
  box-shadow: 8px 8px 0 #00000010;
}

.card h3 { margin-top: 0.2rem; }

.card p,
.card li {
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: start;
}

.quote-box {
  border: 2px solid var(--ink);
  padding: 1.1rem;
  background:
    linear-gradient(135deg, var(--yellow) 0 22%, transparent 22% 100%),
    var(--paper);
}

.quote-box p {
  margin: 0;
  line-height: 1.8;
}

.quote-box span {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--muted);
}

.contact {
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--red);
  right: 3%;
  bottom: 1.5rem;
  z-index: -1;
}

.contact-form {
  max-width: 660px;
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.74rem 0.82rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
}

textarea { resize: vertical; }

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--blue);
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 2px solid var(--ink);
  margin-top: 1.2rem;
}

@media (max-width: 920px) {
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .hero::before,
  .hero::after,
  .contact::after {
    opacity: 0.45;
  }
}
