/* === Video-to-Website: 信義之星 Demo === */

:root {
  /* Developer theme */
  --dev-accent: #C9A96E;
  --dev-primary: #1A1A2E;
  --bg-dark: #08080D;
  --bg-light: #F5F3F0;
  --text-on-dark: #E8E4DF;
  --text-on-light: #1A1A1A;

  /* PickPeak brand (CTA + header only) */
  --pp-site-blue: #1624C0;
  --pp-urban-blue: #0F6A85;
  --pp-blueprint-blue: #164B5F;
  --pp-perspective-blue: #E3F8FA;

  /* Typography */
  --font-zh: 'Noto Sans TC', sans-serif;
  --font-en: 'Inter', sans-serif;

  --section-pad: 5vw;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; }
body {
  font-family: var(--font-zh);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   LOADER
   ============================ */
#loader {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-dark); z-index: 9999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-name-zh { font-size: 2.5rem; font-weight: 900; display: block; letter-spacing: 0.1em; }
.loader-name-en {
  font-family: var(--font-en); font-size: 0.85rem; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.3em; opacity: 0.4; display: block; margin-top: 0.3rem;
}
#loader-bar {
  width: 200px; height: 1px; background: rgba(255,255,255,0.1);
  margin-top: 2.5rem; position: relative; overflow: hidden;
}
#loader-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 0%; background: var(--dev-accent);
  transition: width 0.2s ease-out;
}
#loader-percent {
  font-family: var(--font-en); font-size: 0.75rem; font-weight: 400;
  margin-top: 0.8rem; opacity: 0.35; letter-spacing: 0.1em;
}

/* ============================
   HEADER (Hybrid Brand)
   ============================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.2rem var(--section-pad);
  opacity: 0; transition: opacity 0.4s;
}
.site-header.visible { opacity: 1; }
.site-header nav { display: flex; justify-content: space-between; align-items: center; }
.header-developer-name {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.15em; opacity: 0.7;
}
.header-pickpeak-badge {
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pp-perspective-blue); opacity: 0.6;
  display: flex; align-items: center; gap: 0.4rem;
}
.header-pickpeak-badge svg { opacity: 0.7; }

/* ============================
   HERO
   ============================ */
.hero-standalone {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--bg-dark); position: relative; z-index: 10;
}
.hero-content { position: relative; z-index: 2; }
.hero-heading .hero-zh {
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 900; display: block; letter-spacing: 0.05em;
  line-height: 1.1;
}
.hero-heading .hero-en {
  font-family: var(--font-en); font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.25em;
  opacity: 0.35; display: block; margin-top: 0.8rem;
}
.hero-standalone .section-label {
  margin-bottom: 1.5rem; color: var(--dev-accent);
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  opacity: 0.4; margin-top: 1.5rem; font-weight: 300; letter-spacing: 0.1em;
}
.scroll-indicator {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  text-align: center; opacity: 0.3;
}
.scroll-indicator span {
  font-family: var(--font-en); font-size: 0.65rem; letter-spacing: 0.25em; font-weight: 400;
}
.scroll-arrow {
  width: 1px; height: 40px; background: var(--text-on-dark);
  margin: 0.6rem auto 0; transform-origin: top;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.4); opacity: 0.7; }
}

/* ============================
   CANVAS
   ============================ */
.canvas-wrap {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  clip-path: circle(0% at 50% 50%);
}
#canvas { width: 100%; height: 100%; display: block; }

/* ============================
   DARK OVERLAY
   ============================ */
#dark-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-dark); opacity: 0; z-index: 3; pointer-events: none;
}

/* ============================
   MARQUEE
   ============================ */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; width: 100%;
  z-index: 2; pointer-events: none;
  transform: translateY(-50%); opacity: 0;
  transition: opacity 0.3s;
}
.marquee-wrap.visible { opacity: 1; }
.marquee-text {
  font-family: var(--font-en); font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 900; white-space: nowrap;
  color: var(--dev-accent); opacity: 0.05;
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ============================
   SCROLL CONTAINER
   ============================ */
#scroll-container { position: relative; height: 900vh; z-index: 5; }

/* ============================
   SCROLL SECTIONS
   ============================ */
.scroll-section {
  position: absolute; width: 100%;
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  will-change: opacity;
}
.scroll-section.visible { opacity: 1; pointer-events: auto; }

/* Side alignment */
.align-left { padding-left: var(--section-pad); padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: var(--section-pad); }
.align-left .section-inner,
.align-right .section-inner { max-width: 40vw; }


/* Section label */
.section-label {
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  opacity: 0.35; margin-bottom: 1.2rem; display: block;
}

/* Section heading */
.section-heading {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem;
}
.heading-en {
  font-family: var(--font-en); font-weight: 300;
  font-size: 0.4em; text-transform: uppercase;
  letter-spacing: 0.18em; opacity: 0.4;
  display: block; margin-top: 0.4em;
}

/* Section body */
.section-body {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.9; opacity: 0.65; max-width: 32ch; font-weight: 300;
}

/* ============================
   TRANSPORT CARDS
   ============================ */
.transport-cards { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.transport-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 1.2rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 6px;
}
.transport-type {
  font-family: var(--font-en); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dev-accent); min-width: 4.5rem;
}
.transport-name { font-size: 0.95rem; font-weight: 500; display: block; }
.transport-distance { font-size: 0.8rem; opacity: 0.45; display: block; margin-top: 0.15rem; }

/* ============================
   AMENITY GRID
   ============================ */
.amenity-grid { display: flex; flex-direction: column; gap: 0; margin-top: 1.2rem; }
.amenity-item {
  padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.amenity-item:last-child { border-bottom: none; }
.amenity-name { font-weight: 600; font-size: 1.05rem; display: block; }
.amenity-name-en {
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.3; display: block; margin-top: 0.15rem;
}
.amenity-desc { font-size: 0.85rem; opacity: 0.5; margin-top: 0.4rem; font-weight: 300; }

/* ============================
   STATS
   ============================ */
.section-stats {
  width: 100%; text-align: center; justify-content: center;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 3rem; max-width: 950px; margin: 0 auto; padding: 0 2rem;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-en); font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700; color: var(--dev-accent); display: block;
  line-height: 1;
}
.stat-suffix { font-size: 1.1rem; opacity: 0.7; }
.stat-label {
  display: block; font-family: var(--font-en); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  opacity: 0.35; margin-top: 0.6rem; font-weight: 400;
}

/* ============================
   DEVELOPER
   ============================ */
.developer-stats {
  display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.dev-stat {
  font-size: 0.85rem; opacity: 0.5;
  padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}
.dev-stat strong {
  color: var(--dev-accent); font-weight: 700; opacity: 1;
}

/* ============================
   CTA — PickPeak Branded
   ============================ */
.pickpeak-branded {
  text-align: center; justify-content: center;
  width: 100%;
}
.cta-container {
  max-width: 500px; margin: 0 auto; padding: 0 2rem;
}
.cta-pickpeak-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin-bottom: 2rem;
}
.cta-pickpeak-name {
  font-family: var(--font-en); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--pp-perspective-blue);
}
.cta-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; margin-bottom: 0.8rem;
}
.cta-subtext {
  font-size: 0.9rem; opacity: 0.5; margin-bottom: 2.5rem; font-weight: 300;
}
.btn-primary {
  display: inline-block; background: var(--pp-site-blue);
  color: #fff; padding: 1rem 3rem; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 4px; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 36, 192, 0.35);
}
.cta-contact { margin-top: 1.5rem; }
.btn-secondary {
  color: var(--pp-perspective-blue); text-decoration: none;
  font-family: var(--font-en); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.05em; opacity: 0.6;
  transition: opacity 0.2s;
}
.btn-secondary:hover { opacity: 1; }
.powered-by {
  margin-top: 4rem; opacity: 0.25; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.powered-by-brand {
  font-weight: 600; letter-spacing: 0.05em;
  color: inherit; text-decoration: none;
}
.powered-by-brand:hover { opacity: 0.8; }

/* ============================
   MOBILE STICKY CTA
   ============================ */
.mobile-cta-bar {
  display: none;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  :root { --section-pad: 6vw; }

  .align-left, .align-right {
    padding-left: var(--section-pad);
    padding-right: var(--section-pad);
  }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 100%; }

  #scroll-container { height: 650vh; }

  .hero-heading .hero-zh { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .section-heading { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .marquee-text { font-size: 8vw; }

  .developer-stats { gap: 0.8rem; }
  .dev-stat { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 200;
    background: var(--pp-site-blue); padding: 0.9rem;
    justify-content: center; align-items: center;
    transform: translateY(100%);
    transition: transform 0.35s ease;
  }
  .mobile-cta-bar.visible { transform: translateY(0); }
  .mobile-cta-bar a {
    color: #fff; text-decoration: none; font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .stat-number { font-size: clamp(2rem, 10vw, 2.8rem); }
  .transport-card { padding: 0.8rem; gap: 0.8rem; }
}
