/* Worever — Editorial Boutique & 3D Magazine Page-Flip Animation System */
:root {
  --bg-warm: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4EFEB;
  --ink-primary: #1C1917;
  --ink-secondary: #57534E;
  --ink-muted: #8C827A;
  --line-subtle: #E8E2D8;
  --gold-accent: #C9A46A;
  --gold-hover: #B88E52;
  --font-serif: "Playfair Display", Georgia, "Songti SC", "Noto Serif TC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 40px -10px rgba(28, 25, 23, 0.08);
  --shadow-float: 0 24px 60px -15px rgba(28, 25, 23, 0.12);
  --max-w: 1140px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-warm);
  color: var(--ink-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
  padding: 16px 24px;
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-svg {
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink-primary);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink-primary);
  color: #FFF;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-pill:hover {
  background: #2D2A26;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-pill-gold {
  background: #FFF;
  color: var(--ink-primary);
  border: 1px solid var(--gold-accent);
}

.btn-pill-gold:hover {
  background: #FDFBF7;
  border-color: var(--gold-hover);
  color: #111;
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-section {
  padding: 48px 24px 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-accent);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
}

.story-stage-container {
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-float);
  margin: 0 auto 80px;
  max-width: 980px;
}

.stage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.stage-steps-progress {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}

.progress-segment {
  height: 4px;
  background: var(--line-subtle);
  border-radius: 2px;
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--ink-primary);
  transition: width 0.1s linear;
}

.progress-segment.active .progress-fill {
  background: var(--gold-accent);
}

.progress-segment.completed .progress-fill {
  width: 100%;
  background: var(--ink-primary);
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.phone-viewport {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 0 1px #222;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #FAF7F2;
  position: relative;
}

.story-screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.02);
}

.story-screen-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.story-screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 16px;
}

.story-act-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

.story-heading {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink-primary);
}

.story-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.story-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-bullets li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.story-bullets li::before {
  content: "✨";
  font-size: 12px;
  margin-top: 1px;
}

/* 3D Magazine Page-Flip Room Switcher Section */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.room-stage-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pageflip-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  perspective: 1400px;
}

.pageflip-book {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(28, 25, 23, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  background: #000;
  padding: 8px;
}

.pageflip-page {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  overflow: hidden;
  background: #FAF7F2;
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.5s ease;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.15);
  backface-visibility: hidden;
}

.pageflip-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pageflip-page.flipped {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}

.pageflip-page.current {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 5;
}

.pageflip-page.next {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 1;
}

.room-selector-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.room-theme-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.room-theme-item:hover {
  background: var(--bg-surface);
  border-color: var(--gold-accent);
  transform: translateX(4px);
}

.room-theme-item.active {
  background: var(--ink-primary);
  color: #FFF;
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-soft);
}

.room-theme-info h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 4px;
}

.room-theme-item.active .room-theme-info h4 {
  color: #FFF;
}

.room-theme-info p {
  font-size: 12px;
  color: var(--ink-muted);
}

.room-theme-item.active .room-theme-info p {
  color: #D6D3D1;
}

.room-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(201, 164, 106, 0.15);
  color: var(--gold-accent);
}

.room-theme-item.active .room-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.pillar-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.manifesto-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.manifesto-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-primary);
}

.manifesto-item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line-subtle);
  background: var(--bg-subtle);
  padding: 48px 24px 32px;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.social-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--ink-primary);
}

.footer-bottom {
  border-top: 1px solid var(--line-subtle);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.legal-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-header {
  margin-bottom: 36px;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 32px 0 12px;
  color: var(--ink-primary);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--ink-primary);
}

.legal-content p, .legal-content ul, .legal-content ol {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .story-grid, .room-stage-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .story-copy-panel {
    padding-right: 0;
  }
  .story-bullets {
    text-align: left;
  }
  .nav-links {
    display: none;
  }
}
