@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+TC:wght@300;400;500;600&display=swap");

:root {
  --eclipse: #07070a;
  --eclipse-elevated: #101016;
  --eclipse-soft: #17171f;
  --lunar: #c8c8d4;
  --lunar-bright: #e8e8f0;
  --violet-muted: #7a5a78;
  --violet-glow: #9a6b8a;
  --crimson-petal: #a84d5c;
  --crimson-soft: #c46a78;
  --halo: rgba(154, 107, 138, 0.22);
  --halo-crimson: rgba(168, 77, 92, 0.18);
  --line: rgba(200, 200, 212, 0.14);
  --text: #d6d6e0;
  --text-muted: #9a9aaa;
  --danger: #c46a78;
  --font-display: "Cormorant Garamond", "Noto Serif TC", serif;
  --font-body: "Noto Sans TC", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 72rem;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--halo), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, var(--halo-crimson), transparent 50%),
    radial-gradient(ellipse 35% 25% at 10% 60%, rgba(122, 90, 120, 0.12), transparent 45%),
    var(--eclipse);
}

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

a {
  color: var(--lunar-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--crimson-soft);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--lunar-bright);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 10, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lunar-bright);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--violet-glow);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--lunar);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--lunar-bright);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--eclipse-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Buttons — bloom rings */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--lunar-bright);
  text-decoration: none;
  background: var(--eclipse-soft);
  border: 1px solid rgba(200, 200, 212, 0.28);
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, inset 0.35s ease, border-color 0.35s ease;
  z-index: -1;
}

.btn::before {
  inset: -10px;
}

.btn:hover {
  background: #1c1420;
  border-color: var(--violet-glow);
  color: #fff;
}

.btn:hover::after {
  opacity: 1;
  border-color: rgba(154, 107, 138, 0.45);
}

.btn:hover::before {
  opacity: 1;
  border-color: rgba(168, 77, 92, 0.28);
}

.btn-primary {
  background: linear-gradient(145deg, #2a1a28, #1a1018);
  border-color: rgba(168, 77, 92, 0.45);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed eclipse composition */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.75) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 42%, transparent 0%, transparent 12%, rgba(7, 7, 10, 0.35) 28%, rgba(7, 7, 10, 0.92) 70%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.35) 0%, rgba(7, 7, 10, 0.55) 45%, rgba(7, 7, 10, 0.97) 100%);
}

.hero-corona {
  position: absolute;
  width: min(48vw, 28rem);
  aspect-ratio: 1;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  border: 1px solid rgba(200, 200, 212, 0.2);
  box-shadow:
    0 0 60px rgba(154, 107, 138, 0.15),
    inset 0 0 40px rgba(168, 77, 92, 0.08);
  animation: corona-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-corona::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 10, 14, 0.95) 40%, transparent 70%);
  border: 1px solid rgba(200, 200, 212, 0.12);
}

@keyframes corona-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 600;
  color: var(--lunar-bright);
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
  animation: rise-fade 1s ease both;
}

.hero-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  color: var(--crimson-soft);
  margin: 0 0 1rem;
  animation: rise-fade 1s ease 0.15s both;
}

.hero-lead {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 32rem;
  animation: rise-fade 1s ease 0.3s both;
}

.hero .btn-group {
  animation: rise-fade 1s ease 0.45s both;
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-bottom: 0.6rem;
}

/* Service list — no cards, editorial rows */
.service-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
}

.service-row h3 {
  margin: 0 0 0.6rem;
}

.service-row h3 a {
  text-decoration: none;
}

.service-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Evidence / quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quote-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--violet-muted);
}

.quote-item blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--lunar);
  font-style: italic;
}

.quote-item cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.75rem;
  align-items: start;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.75);
}

.blog-item time {
  font-size: 0.82rem;
  color: var(--violet-glow);
}

@media (max-width: 720px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero.has-media {
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
}

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

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.7);
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.4), rgba(7, 7, 10, 0.95));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero p {
  max-width: 36rem;
  color: var(--text-muted);
  margin: 0;
}

/* Process / methodology timeline */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--crimson-petal);
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 0.4rem;
}

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--lunar);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--lunar-bright);
  background: var(--eclipse-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet-glow);
  box-shadow: 0 0 0 3px var(--halo);
}

.form-field .error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--crimson-soft);
}

.form-field.is-invalid .error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--crimson-petal);
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  border-color: rgba(154, 107, 138, 0.5);
  color: var(--lunar-bright);
  background: rgba(154, 107, 138, 0.12);
}

.form-status.is-error {
  display: block;
  border-color: rgba(168, 77, 92, 0.55);
  color: var(--crimson-soft);
  background: rgba(168, 77, 92, 0.1);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
}

.contact-aside {
  padding-top: 0.5rem;
  border-top: 1px solid var(--violet-muted);
}

.contact-aside dl {
  margin: 0;
}

.contact-aside dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-glow);
  margin-top: 1.1rem;
}

.contact-aside dd {
  margin: 0.25rem 0 0;
  color: var(--lunar);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal-content {
  max-width: 44rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, var(--halo-crimson), transparent 60%),
    var(--eclipse);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--lunar-bright);
  margin-bottom: 0.5rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 60;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--eclipse-elevated);
  border: 1px solid rgba(154, 107, 138, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--halo);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise-fade 0.45s ease both;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--violet-glow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Pricing note */
.price-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--crimson-petal);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
