/* Higgsfield Enterprise landing — Trafficholic lime #D1FE17 */

body.hfe-standalone-landing {
  --hfe-ink: #111216;
  --hfe-paper: #ffffff;
  --hfe-soft: #f6f8f0;
  --hfe-green: #d1fe17;
  --hfe-green-dim: rgba(209, 254, 23, 0.28);
  --hfe-accent: #2f3d0a;
  --hfe-muted: #5a616c;
  --hfe-line: rgba(17, 18, 22, 0.1);
  --hfe-radius: 16px;
  --hfe-max: min(1120px, 100%);
  --page-gutter: clamp(1.25rem, 3.75vw, 3.25rem);
  background: var(--hfe-paper);
  color: var(--hfe-ink);
}

body.hfe-standalone-landing .site-wrap::before {
  display: none;
}

body.hfe-standalone-landing .site-main {
  padding-top: var(--site-header-offset, 5rem);
  background: var(--hfe-paper);
}

.hfe-land-root {
  --hfe-ink: #111216;
  --hfe-paper: #ffffff;
  --hfe-soft: #f6f8f0;
  --hfe-green: #d1fe17;
  --hfe-accent: #2f3d0a;
  --hfe-muted: #5a616c;
  --hfe-line: rgba(17, 18, 22, 0.1);
  --hfe-radius: 16px;
  --hfe-max: min(1120px, 100%);
  color: var(--hfe-ink);
  background: var(--hfe-paper);
}

.hfe-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hfe-muted);
  margin: 0 0 0.65rem;
}

.hfe-section-inner {
  width: var(--hfe-max);
  margin-inline: auto;
}

.hfe-land-root h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
  margin-top: 0.35rem;
  color: var(--hfe-ink);
  max-width: 22em;
}

.hfe-lead {
  max-width: 42rem;
  color: var(--hfe-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.hfe-n {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--hfe-accent);
  margin-bottom: 0.45rem;
}

/* Hero — brand-first, one composition */
.hfe-hero {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--page-gutter) clamp(2.25rem, 4.5vw, 3.5rem);
  background:
    radial-gradient(ellipse 65% 50% at 92% 8%, rgba(209, 254, 23, 0.42), transparent 58%),
    radial-gradient(ellipse 40% 35% at 8% 90%, rgba(209, 254, 23, 0.12), transparent 50%),
    linear-gradient(180deg, #eef8c8 0%, #f7faf0 42%, var(--hfe-paper) 78%, #dfe8c8 100%);
  overflow: hidden;
}

/* Soft handoff into dark 服務重點 band (avoids hard white→black cut) */
.hfe-hero + .hfe-carousel {
  margin-top: 0;
  background:
    linear-gradient(180deg, #c8d6a0 0%, #3a4520 8%, #0f1408 18%, #1a2410 55%, #243018 100%);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

.hfe-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(209, 254, 23, 0.18), transparent 70%);
  pointer-events: none;
  animation: hfe-glow 8s ease-in-out infinite alternate;
}

@keyframes hfe-glow {
  from { opacity: 0.55; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 1; transform: translate3d(-2%, -3%, 0) scale(1.06); }
}

.hfe-hero-grid {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.hfe-hero-copy h1 {
  font-family: var(--font-heading, "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif);
  font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--hfe-ink);
  max-width: 11.5em;
  margin: 0;
}

.hfe-hero-lead {
  margin-top: 1.15rem;
  max-width: 38rem;
  color: var(--hfe-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.hfe-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hfe-hero-note {
  margin-top: 0.95rem;
  font-size: 0.9rem;
  color: var(--hfe-muted);
  max-width: 40rem;
  line-height: 1.55;
}

.hfe-hero-visual {
  margin: 0;
  border-radius: calc(var(--hfe-radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(47, 61, 10, 0.18);
  background: #111216;
  box-shadow:
    0 22px 48px rgba(47, 61, 10, 0.14),
    0 0 0 1px rgba(209, 254, 23, 0.12);
  animation: hfe-rise 0.9s ease-out both;
}

@keyframes hfe-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hfe-hero-visual img,
.hfe-hero-visual picture {
  display: block;
  width: 100%;
  height: auto;
}

.hfe-hero-visual img {
  transition: transform 0.7s ease;
}

.hfe-hero-visual:hover img {
  transform: scale(1.03);
}

/* Service focus carousel */
.hfe-carousel {
  padding: clamp(2rem, 4vw, 3.25rem) var(--page-gutter);
  background: linear-gradient(180deg, #0f1408 0%, #1a2410 48%, #243018 100%);
  color: #f4f6f8;
  scroll-margin-top: calc(var(--site-header-offset, 5rem) + 0.5rem);
}

.hfe-carousel .hfe-kicker {
  color: rgba(209, 254, 23, 0.88);
}

.hfe-carousel h2 {
  color: #fff;
  max-width: 36rem;
}

.hfe-carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 2rem;
}

.hfe-carousel-card {
  margin: 0;
  border-radius: var(--hfe-radius);
  overflow: hidden;
  border: 1px solid rgba(209, 254, 23, 0.22);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hfe-carousel-card:hover,
.hfe-carousel-card:focus-within {
  border-color: rgba(209, 254, 23, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hfe-carousel-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
}

.hfe-carousel-open:focus-visible {
  outline: 2px solid var(--hfe-green);
  outline-offset: 2px;
}

.hfe-carousel-open img,
.hfe-carousel-open picture {
  display: block;
  width: 100%;
  height: auto;
}

.hfe-carousel-card figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hfe-green);
}

/* Viewport-centered lightbox (* { margin:0 } kills UA dialog centering) */
.hfe-lightbox {
  position: fixed;
  inset: 0;
  width: min(520px, 92vw);
  height: fit-content;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.hfe-lightbox::backdrop {
  background: rgba(8, 12, 6, 0.86);
}

.hfe-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  background: #111;
}

.hfe-lightbox p {
  margin: 0.65rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.hfe-lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: 0;
  transform: translateY(-120%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sections */
.hfe-who,
.hfe-benefits,
.hfe-partner,
.hfe-process,
.hfe-faq,
.hfe-studios,
.hfe-compare,
.hfe-resources {
  padding: clamp(2rem, 4vw, 3.25rem) var(--page-gutter);
}

.hfe-who,
.hfe-process {
  background: var(--hfe-soft);
}

.hfe-card-grid,
.hfe-benefit-grid,
.hfe-process-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.hfe-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hfe-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.hfe-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hfe-card,
.hfe-benefit-grid li,
.hfe-process-grid li {
  background: var(--hfe-paper);
  border: 1px solid var(--hfe-line);
  border-radius: var(--hfe-radius);
  padding: 1.15rem 1.2rem 1.25rem;
  transition: border-color 0.15s ease, transform 0.2s ease;
}

.hfe-card:hover,
.hfe-benefit-grid li:hover,
.hfe-process-grid li:hover {
  border-color: rgba(47, 61, 10, 0.28);
  transform: translateY(-2px);
}

.hfe-card h3,
.hfe-benefit-grid h3,
.hfe-process-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.hfe-card p,
.hfe-benefit-grid p,
.hfe-process-grid p {
  margin: 0;
  color: var(--hfe-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.hfe-fineprint {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--hfe-muted);
}

/* Studios */
.hfe-studios {
  background: var(--hfe-paper);
}

.hfe-studio-featured {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hfe-studio-card {
  background: var(--hfe-soft);
  border: 1px solid var(--hfe-line);
  border-radius: var(--hfe-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hfe-studio-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111216;
}

.hfe-studio-media img,
.hfe-studio-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hfe-studio-media img {
  object-fit: cover;
  height: 100%;
  transition: transform 0.55s ease;
}

.hfe-studio-card:hover .hfe-studio-media img {
  transform: scale(1.04);
}

.hfe-studio-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.hfe-studio-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.hfe-studio-body p {
  margin: 0;
  color: var(--hfe-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.hfe-studio-compact {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hfe-studio-compact li {
  background: #fff;
  border: 1px solid var(--hfe-line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.hfe-studio-compact h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.hfe-studio-compact p {
  margin: 0;
  color: var(--hfe-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hfe-inline-visual {
  margin: 1.35rem 0 0;
  border-radius: var(--hfe-radius);
  overflow: hidden;
  border: 1px solid var(--hfe-line);
  box-shadow: 0 14px 32px rgba(47, 61, 10, 0.1);
}

.hfe-inline-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hfe-compare {
  background: var(--hfe-soft);
}

.hfe-table-wrap {
  margin-top: 1.35rem;
  overflow-x: auto;
  border: 1px solid var(--hfe-line);
  border-radius: var(--hfe-radius);
  background: #fff;
}

.hfe-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.hfe-table th,
.hfe-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hfe-line);
  line-height: 1.55;
}

.hfe-table thead th {
  background: rgba(209, 254, 23, 0.45);
  font-weight: 800;
  color: var(--hfe-ink);
}

.hfe-table tbody th {
  font-weight: 750;
  color: var(--hfe-ink);
  width: 34%;
}

.hfe-table tbody tr:last-child th,
.hfe-table tbody tr:last-child td {
  border-bottom: none;
}

.hfe-table tbody td:last-child {
  font-weight: 700;
  color: var(--hfe-accent);
}

.hfe-partner {
  background:
    linear-gradient(135deg, rgba(209, 254, 23, 0.55), rgba(209, 254, 23, 0.18) 45%, #fff 100%);
}

.hfe-partner-points {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  max-width: 40rem;
  color: var(--hfe-ink);
  line-height: 1.7;
  font-weight: 600;
}

.hfe-partner .hfe-hero-actions {
  margin-top: 1.25rem;
}

.hfe-resources {
  background:
    radial-gradient(ellipse 60% 50% at 8% 0%, rgba(209, 254, 23, 0.28), transparent 55%),
    var(--hfe-paper);
}

.hfe-resource-grid {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hfe-resource-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--hfe-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hfe-resource-grid a:hover,
.hfe-resource-grid a:focus-visible {
  border-color: rgba(47, 61, 10, 0.35);
  box-shadow: 0 10px 24px rgba(47, 61, 10, 0.08);
  outline: none;
}

.hfe-resource-grid strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hfe-ink);
}

.hfe-resource-grid span {
  color: var(--hfe-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hfe-faq-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.hfe-faq-item {
  border: 1px solid var(--hfe-line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
}

.hfe-faq-item summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.hfe-faq-item summary::-webkit-details-marker {
  display: none;
}

.hfe-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--hfe-muted);
  line-height: 1.7;
}

.hfe-faq-cta {
  margin-top: 1.25rem;
}

.hfe-final-cta {
  padding: clamp(2.25rem, 5vw, 3.75rem) var(--page-gutter) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(209, 254, 23, 0.18), transparent 55%),
    #111216;
  color: #f5f7fa;
}

.hfe-final-cta-inner {
  width: var(--hfe-max);
  margin-inline: auto;
}

.hfe-final-cta .hfe-kicker {
  color: rgba(245, 247, 250, 0.7);
}

.hfe-final-cta h2 {
  color: #fff;
  max-width: 18em;
}

.hfe-final-cta .hfe-lead {
  color: rgba(245, 247, 250, 0.78);
}

.hfe-price-line {
  margin-top: 0.85rem;
  font-weight: 700;
}

.hfe-price-line mark {
  background: var(--hfe-green);
  color: #111216;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hfe-final-cta .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.hfe-land-root .btn-whatsapp {
  background: #25d366;
  color: #073b1d;
  border: none;
  font-weight: 800;
}

.hfe-land-root .btn-ghost {
  background: transparent;
  border: 1px solid rgba(17, 18, 22, 0.18);
  color: var(--hfe-ink);
  font-weight: 700;
}

.hfe-carousel .btn-ghost,
.hfe-final-cta .btn-ghost {
  border-color: rgba(245, 247, 250, 0.35);
  color: #fff;
}

/* Reveal motion (theme may also drive .reveal) */
.hfe-land-root .reveal {
  animation: hfe-rise 0.75s ease-out both;
}

@media (max-width: 960px) {
  .hfe-hero-grid,
  .hfe-card-grid,
  .hfe-benefit-grid,
  .hfe-process-grid,
  .hfe-card-grid-4,
  .hfe-studio-featured,
  .hfe-studio-compact,
  .hfe-resource-grid,
  .hfe-carousel-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .hfe-card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hfe-resource-grid,
  .hfe-studio-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hfe-hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfe-hero::after,
  .hfe-hero-visual,
  .hfe-land-root .reveal,
  .hfe-hero-visual img,
  .hfe-studio-media img {
    animation: none !important;
    transition: none !important;
  }
}
