:root {
  --ice-blue: #f0f7ff;
  --mist-blue: #e0f0ff;
  --deep-blue: #0a2540;
  --ocean-blue: #1f6fb2;
  --glass-white: rgba(255, 255, 255, 0.7);
  --lemon-yellow: #fce24a;
  --text-main: #1a2b4c;
  --text-light: #5a7395;
  --shadow-soft: 0 8px 30px rgba(10, 37, 64, 0.08);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--ice-blue);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 230, 255, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, var(--ice-blue) 0%, var(--mist-blue) 100%);
  background-attachment: fixed;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(240, 247, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--deep-blue);
}

.brand img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ocean-blue);
}

.btn-download {
  background: var(--deep-blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-download:hover {
  background: var(--ocean-blue);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--deep-blue);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 120px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--deep-blue);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--deep-blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background: var(--ocean-blue);
  box-shadow: 0 4px 15px rgba(31, 111, 178, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--deep-blue);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(10, 37, 64, 0.1);
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: #fff;
}

.hero-doors {
  flex: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.door-card {
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  width: 150px;
  transition: transform 0.3s;
  border: 1px solid rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
}

.door-card:nth-child(1) { transform: translateY(20px); }
.door-card:nth-child(2) { transform: translateY(-10px); }
.door-card:nth-child(3) { transform: translateY(30px); }

.door-card:hover {
  transform: translateY(0) scale(1.02);
}

.door-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
}

.door-card .title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  color: var(--deep-blue);
}

.door-card .clue {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

/* Sections Global */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}

/* Choice Station */
.choice-station {
  background: rgba(255,255,255,0.4);
  border-radius: 32px;
  padding: 60px 20px;
}

.choice-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.choice-btn {
  padding: 12px 24px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--mist-blue);
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.choice-btn.active {
  background: var(--ocean-blue);
  color: #fff;
  border-color: var(--ocean-blue);
}

.recommend-display {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-white);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.recommend-display img {
  width: 120px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
}

.recommend-info h3 {
  font-size: 1.3rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.recommend-info p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Story Fork */
.fork-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.fork-path {
  flex: 1;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: var(--ice-blue);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.fork-path:hover {
  border-color: var(--ocean-blue);
  transform: translateY(-5px);
}

.fork-path h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--deep-blue);
}

.fork-path p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.fork-center {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lemon-yellow);
  margin: 0 20px;
  position: relative;
}

.fork-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -40px;
  width: 40px;
  height: 2px;
  background: var(--text-light);
}

.fork-center::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -40px;
  width: 40px;
  height: 2px;
  background: var(--text-light);
}

.fork-result {
  margin-top: 32px;
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  display: none;
}

.fork-result.show {
  display: block;
}

/* Emotion Bar */
.emotion-section {
  background: linear-gradient(180deg, var(--ice-blue), var(--deep-blue));
  border-radius: 32px;
  padding: 80px 20px;
  color: #fff;
}

.emotion-section .section-title,
.emotion-section .section-subtitle {
  color: #fff;
}

.emotion-slider-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.emotion-slider {
  width: 100%;
  margin: 20px 0;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.2);
  height: 8px;
  border-radius: 4px;
  outline: none;
}

.emotion-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lemon-yellow);
  cursor: pointer;
}

.emotion-result {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 20px;
}

.emotion-result img {
  width: 100px;
  aspect-ratio: 2/3;
  border-radius: 8px;
}

.emotion-result h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* POV Section */
.pov-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pov-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 20px;
}

.pov-card img {
  width: 100px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
}

.pov-content {
  flex: 1;
}

.pov-content h3 {
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 10px;
}

.pov-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pov-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pov-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--mist-blue);
  border: none;
  font-size: 0.85rem;
  color: var(--deep-blue);
  cursor: pointer;
}

.pov-reveal {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ocean-blue);
  display: none;
}

.pov-reveal.show {
  display: block;
}

/* Chain Section */
.chain-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.chain-item {
  min-width: 200px;
  scroll-snap-align: start;
  position: relative;
}

.chain-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  color: var(--text-light);
  font-size: 1.2rem;
}

.chain-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 16px;
}

.chain-item h3 {
  font-size: 1rem;
  margin-top: 12px;
  color: var(--deep-blue);
  text-align: center;
}

/* Echo Section */
.echo-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.echo-tag {
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--mist-blue);
  cursor: pointer;
  transition: all 0.2s;
}

.echo-tag:hover {
  background: var(--lemon-yellow);
}

/* Discovery Grid */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.discovery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}

.discovery-item:hover {
  transform: translateY(-4px);
}

.discovery-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.discovery-item .info {
  padding: 12px;
}

.discovery-item h4 {
  font-size: 0.9rem;
  color: var(--deep-blue);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discovery-item p {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* APP Experience */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--glass-white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #fff;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  display: none;
}

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

/* Download Area */
.download-area {
  background: var(--deep-blue);
  border-radius: 32px;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 80px;
}

.download-area h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.download-area p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.download-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download-large {
  background: #fff;
  color: var(--deep-blue);
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-download-large:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.6);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero p {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-doors {
    margin-top: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    justify-content: flex-start;
    width: 100%;
  }
  .door-card {
    min-width: 140px;
    transform: none !important;
  }
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .fork-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .fork-center {
    transform: rotate(90deg);
    margin: 20px 0;
  }
  .fork-center::before {
    top: -40px; left: 50%; width: 2px; height: 40px;
  }
  .fork-center::after {
    top: 40px; left: 50%; width: 2px; height: 40px;
  }
  .recommend-display {
    flex-direction: column;
    text-align: center;
  }
  .emotion-result {
    flex-direction: column;
    text-align: center;
  }
  .pov-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pov-actions {
    justify-content: center;
  }
}