:root {
  --brand: #b8006d;
  --brand-deep: #8a0052;
  --ink: #141218;
  --ink-soft: #3b3640;
  --paper: #f7f2f4;
  --paper-2: #efe6eb;
  --line: rgba(20, 18, 24, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 18, 24, 0.18);
  --radius: 14px;
  --font-display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Space Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(184, 0, 109, 0.22), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(184, 0, 109, 0.10), transparent 50%),
    linear-gradient(165deg, #fbf7f9 0%, var(--paper) 45%, #ebe3e8 100%);
  overflow-x: hidden;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: rgba(184, 0, 109, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 18, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 24, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  z-index: 0;
}

.topbar,
.hero,
.screens,
.install,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.top-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.top-links a:hover {
  color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  padding: 48px 24px 64px;
}

.hero-copy {
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.btn-sub {
  font-size: 0.78rem;
  opacity: 0.78;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(20, 18, 24, 0.18);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn.is-recommended {
  outline: 2px solid rgba(184, 0, 109, 0.35);
  outline-offset: 2px;
}

.hint {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 900ms ease both;
  animation-delay: 120ms;
}

.phone {
  width: min(100%, 320px);
  aspect-ratio: 9 / 19.2;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a2430, #151218 70%);
  box-shadow: var(--shadow);
  animation: floaty 5.5s ease-in-out infinite;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 34%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0c0b0e;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(184, 0, 109, 0.18), transparent 40%),
    var(--paper-2);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen img.is-missing {
  display: none;
}

.shot-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-soft);
  padding: 24px;
}

.phone-screen:has(img.is-missing) .shot-fallback,
.phone-screen:not(:has(img[src])) .shot-fallback {
  display: grid;
}

.shot-fallback span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.screens,
.install {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.section-head {
  margin-bottom: 28px;
  animation: rise 700ms ease both;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.shot-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 18px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px dashed rgba(20, 18, 24, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  min-height: 420px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 0, 109, 0.45);
}

.shot-card img {
  width: 100%;
  height: calc(100% - 42px);
  object-fit: cover;
}

.shot-card figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.shot-card.is-empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(184, 0, 109, 0.04),
      rgba(184, 0, 109, 0.04) 12px,
      transparent 12px,
      transparent 24px
    ),
    rgba(255, 255, 255, 0.6);
}

.shot-card.is-empty img {
  display: none;
}

.shot-card.is-empty::before {
  content: attr(data-file);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-deep);
}

.shot-card.is-empty figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.72);
}

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

.steps li {
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px 40px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer img {
  border-radius: 8px;
}

.guide {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.guide-hero {
  margin-bottom: 42px;
  animation: rise 700ms ease both;
}

.guide-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.guide-cta {
  margin-top: 24px;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  animation: rise 700ms ease both;
}

.guide-step:nth-child(even) .guide-shot {
  order: -1;
}

.step-badge {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-step h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.guide-step-copy p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.guide-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0f0e12;
  border: 1px solid rgba(20, 18, 24, 0.08);
}

.guide-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-shot-home {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
}

.guide-shot-home img {
  width: min(220px, 70%);
}

.guide-footer-cta {
  margin-top: 40px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-footer-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

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

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
    gap: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: min(100%, 260px);
  }

  .shot-rail {
    grid-template-columns: 1fr;
  }

  .shot-card {
    min-height: 360px;
  }

  .guide-step,
  .guide-step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .guide-step:nth-child(even) .guide-shot {
    order: 0;
  }
}

@media (max-width: 560px) {
  .top-links {
    display: none;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .guide-footer-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
