:root {
  color-scheme: dark;
  --bg: #0b1117;
  --panel: #101922;
  --panel-2: #14202a;
  --text: #f6f8fb;
  --muted: #aebac6;
  --subtle: #748391;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #36d6f2;
  --amber: #f2b84b;
  --green: #51c985;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(7, 13, 19, 0.1), var(--bg) 760px),
    radial-gradient(circle at 84% 4%, rgba(54, 214, 242, 0.18), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(11, 17, 23, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 38px;
  border: 1px solid rgba(54, 214, 242, 0.38);
  border-radius: 8px;
  background: rgba(54, 214, 242, 0.08);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  padding: 120px clamp(18px, 6vw, 80px) 76px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.74) 42%, rgba(11, 17, 23, 0.22) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 23, 0.16) 28%, rgba(11, 17, 23, 0.52) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

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

.primary-button,
.secondary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.submit-button {
  color: #071014;
  background: linear-gradient(135deg, var(--cyan), #8deaf7);
  box-shadow: 0 14px 40px rgba(54, 214, 242, 0.18);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.intro-section,
.services-section,
.process-section,
.contact-section {
  padding: clamp(74px, 10vw, 124px) clamp(18px, 6vw, 80px);
}

.intro-section,
.process-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p {
  margin: 0 0 22px;
}

.services-section {
  background: #edf3f6;
  color: #15202a;
}

.services-section .eyebrow {
  color: #087f95;
}

.services-section h2 {
  color: #111a22;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 58px);
}

.service-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(11, 17, 23, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(18, 31, 42, 0.08);
}

.service-card p {
  margin: 0;
  color: #52616e;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: #dff8fc;
  color: #087f95;
  font-weight: 900;
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.14);
  color: var(--amber);
  font-weight: 900;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.94fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(54, 214, 242, 0.12), transparent 42%),
    #0f171f;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hubspot-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hs-form-frame {
  min-height: 520px;
  width: 100%;
}

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

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(5, 10, 15, 0.72);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(54, 214, 242, 0.52);
  outline-offset: 2px;
}

::placeholder {
  color: #75818d;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  font-size: 1rem;
}

.form-note {
  margin: 0;
  color: var(--subtle);
  font-size: 0.88rem;
}

.hubspot-card form {
  display: grid;
  gap: 16px;
}

.hubspot-card fieldset {
  max-width: none;
}

.hubspot-card label {
  display: block;
  margin-bottom: 8px;
}

.hubspot-card .hs-form-field {
  margin-bottom: 16px;
}

.hubspot-card .hs-error-msgs {
  margin: 8px 0 0;
  padding: 0;
  color: #ffb4a8;
  font-size: 0.9rem;
  list-style: none;
}

.hubspot-card .hs-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #071014;
  background: linear-gradient(135deg, var(--cyan), #8deaf7);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(54, 214, 242, 0.18);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--subtle);
  background: #080d12;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

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

  .brand-mark {
    width: 64px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 88vh;
    padding: 104px 18px 56px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.82) 58%, rgba(11, 17, 23, 0.5) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 23, 0.1) 34%, rgba(11, 17, 23, 0.5) 100%);
  }

  h1 {
    max-width: 9.8em;
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    font-size: 0.76rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }
}
