/* LOOPE marketing — about page
   Brand tokens preserved; layout / motion follow gpt-taste plan. */

:root {
  color-scheme: light dark;
  --panel: #f6ecdd;
  --card: #fffdf8;
  --ink: #2a241e;
  --muted: #7d7264;
  --line: #eee0cd;
  --sky: #5a4bd1;
  --sky-bright: #6c5ce7;
  --sky-ink: #4a3cb8;
  --sky-soft: #eeeafd;
  --navy: #2e2822;
  --on-accent: #ffffff;
  --font-display: "Cabinet Grotesk", "Noto Sans TC", "PingFang TC", sans-serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --panel: #1c1814;
    --card: #2a241e;
    --ink: #f3ecdf;
    --muted: #b5a891;
    --line: #3d342a;
    --sky: #8b7cf0;
    --sky-bright: #9b8ef5;
    --sky-ink: #c4bbff;
    --sky-soft: #3a3358;
    --navy: #12100e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #c9bfff44, transparent 58%),
    radial-gradient(900px 480px at 96% 4%, #ffd2a044, transparent 52%),
    radial-gradient(700px 400px at 50% 40%, #ffffff22, transparent 70%),
    var(--panel);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sky-ink);
  text-underline-offset: 0.15em;
}

.page {
  width: 100%;
  max-width: 100%;
}

/* —— Shared —— */
.section {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 7rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 9rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-primary {
  background: var(--sky-bright);
  color: var(--on-accent);
}

.btn-dark {
  background: var(--navy);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* —— Hero: Editorial Split —— */
.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: min(78vh, 820px);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    margin-top: 3.5rem;
  }
}

.hero-copy {
  max-width: 40rem;
}

.hero-brand {
  margin: 0 0 1.25rem;
}

.hero-brand img {
  height: clamp(2.6rem, 5vw, 3.4rem);
  width: auto;
}

.hero h1 {
  margin: 0;
  max-width: 72rem;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.55rem, 5.2vw, 4.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.inline-shot {
  display: inline-block;
  width: clamp(4.5rem, 8vw, 6.5rem);
  height: clamp(1.85rem, 3.2vw, 2.55rem);
  margin: 0 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.85rem;
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  background: var(--card);
  box-shadow: 0 30px 80px -40px rgb(42 36 30 / 0.55);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92);
  transform: scale(1.02);
  transition: transform 1.1s ease;
}

.hero-visual:hover img {
  transform: scale(1.07);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, transparent 20%, rgb(42 36 30 / 0.28) 100%);
  pointer-events: none;
}

/* —— Interest: Horizontal Accordions —— */
.interest-head {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.interest-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.interest-head p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 420px;
}

@media (min-width: 900px) {
  .accordion {
    flex-direction: row;
    height: 520px;
  }
}

.acc-item {
  position: relative;
  flex: 1 1 0;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .acc-item {
    min-height: 0;
  }

  .acc-item:hover,
  .acc-item:focus-within,
  .acc-item.is-active {
    flex: 2.35 1 0;
  }
}

.acc-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.12) saturate(0.85);
  transform: scale(1.05);
  transition: transform 0.9s ease, filter 0.9s ease;
}

.acc-item:hover img,
.acc-item.is-active img {
  transform: scale(1.12);
  filter: grayscale(0) contrast(1.08) saturate(0.95);
}

.acc-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(20 16 12 / 0.78) 100%);
}

.acc-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.35rem 1.4rem 1.5rem;
  color: #fff;
}

.acc-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.acc-copy span {
  display: block;
  margin-top: 0.4rem;
  max-width: 18rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.82);
  opacity: 0.95;
}

@media (min-width: 900px) {
  .acc-copy span {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s ease, opacity 0.45s ease, margin 0.45s ease;
    margin-top: 0;
  }

  .acc-item:hover .acc-copy span,
  .acc-item.is-active .acc-copy span {
    max-height: 6rem;
    opacity: 1;
    margin-top: 0.45rem;
  }
}

/* —— Desire: stacked cards + scale images —— */
.desire {
  position: relative;
}

.desire-intro {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.desire-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.desire-intro p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.stack-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  margin-inline: auto;
  padding-bottom: 2rem;
}

.stack-card {
  position: sticky;
  top: max(5.5rem, 12vh);
  margin: 0 0 1.25rem;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow:
    0 28px 70px -36px rgb(42 36 30 / 0.5),
    0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent);
}

.stack-card:last-child {
  margin-bottom: 0;
}

.stack-card:not(:last-child) {
  margin-bottom: min(48vh, 22rem);
}

.stack-card:nth-child(1) {
  z-index: 1;
}

.stack-card:nth-child(2) {
  z-index: 2;
  top: calc(max(5.5rem, 12vh) + 1.15rem);
}

.stack-card:nth-child(3) {
  z-index: 3;
  top: calc(max(5.5rem, 12vh) + 2.3rem);
}

.stack-card .media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 42vh;
  background: var(--navy);
}

.stack-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.9);
}

.stack-card .body {
  padding: 1.2rem 1.4rem 1.4rem;
  background: var(--card);
}

.stack-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stack-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.scale-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 4rem;
}

@media (min-width: 800px) {
  .scale-strip {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.scale-frame {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}

.scale-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.12);
  will-change: transform, opacity;
}

/* —— Feedback carousel —— */
.carousel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.carousel-head h2 {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--sky-soft);
  color: var(--sky-ink);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.quote-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 160px;
  transition: transform 0.55s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
}

.quote-card .avatar {
  width: 88px;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
}

.quote-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.88);
  transition: transform 0.7s ease;
}

.quote-card:hover .avatar img {
  transform: scale(1.08);
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.quote-card cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Action / CTA —— */
.cta {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 32px;
  background:
    radial-gradient(700px 320px at 15% 0%, #8b7cf066, transparent 55%),
    linear-gradient(145deg, #2e2822 0%, #1a1612 100%);
  color: #f7f1e8;
}

.cta h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cta p {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgb(247 241 232 / 0.72);
  font-size: 1.08rem;
}

.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.cta .btn-primary {
  background: #fff;
  color: #2a241e;
}

.cta .btn-ghost {
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
}

.support {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.95rem;
  color: rgb(247 241 232 / 0.68);
}

.support a {
  color: #d9d2ff;
}

/* —— Footer —— */
.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer a {
  text-decoration: none;
  color: var(--muted);
}

.footer a:hover {
  color: var(--sky-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .acc-item,
  .acc-item img,
  .quote-card,
  .quote-card .avatar img,
  .hero-visual img {
    transition: none !important;
  }
}
