:root {
    --ice-blue: #eaf4fc;
    --mist-blue: #d0e4f5;
    --deep-blue: #0a192f;
    --sky-blue: #4a90e2;
    --lemon-yellow: #f4d03f;
    --white: #ffffff;
    --text-main: #1a2b40;
    --text-muted: #556b82;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
  }

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

  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;
  }

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

  /* Header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
  }

  .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;
  }

  .desktop-nav {
    display: none;
    gap: 24px;
  }

  .desktop-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
  }

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

  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

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

  .btn-download:hover {
    background-color: #357abd;
    transform: translateY(-1px);
  }

  /* Main Container */
  main {
    padding-top: 64px;
  }

  section {
    padding: 64px 5%;
    position: relative;
  }

  /* Hero Section */
  .hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--ice-blue) 0%, var(--mist-blue) 100%);
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
  }

  .hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 16px;
    line-height: 1.3;
  }

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

  .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
  }

  .btn-primary {
    background-color: var(--sky-blue);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
  }

  .btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
  }

  .btn-secondary {
    background-color: transparent;
    color: var(--sky-blue);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--sky-blue);
    transition: all 0.3s ease;
  }

  .btn-secondary:hover {
    background-color: rgba(74, 144, 226, 0.1);
  }

  .hero-covers {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .hero-covers::-webkit-scrollbar {
    display: none;
  }

  .hero-cover-card {
    flex: 0 0 140px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
    background: var(--white);
  }

  .hero-cover-card:hover {
    transform: translateY(-5px);
  }

  .hero-cover-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
  }

  .hero-cover-card-text {
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mood Selector */
  .mood-selector {
    background: var(--white);
    text-align: center;
  }

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

  .section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
  }

  .mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
  }

  .mood-tag {
    padding: 10px 24px;
    background: var(--ice-blue);
    color: var(--sky-blue);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .mood-tag.active, .mood-tag:hover {
    background: var(--sky-blue);
    color: var(--white);
    border-color: var(--sky-blue);
  }

  .mood-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .mood-card {
    width: 160px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    background: var(--white);
    text-align: left;
  }

  .mood-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
  }

  .mood-card-info {
    padding: 12px;
  }

  .mood-card-info h3 {
    font-size: 0.95rem;
    color: var(--deep-blue);
    margin-bottom: 4px;
  }

  .mood-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  /* Fork Choice */
  .fork-choice {
    background: linear-gradient(180deg, var(--white) 0%, var(--ice-blue) 100%);
  }

  .fork-paths {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
  }

  .fork-path-btn {
    padding: 20px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

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

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

  .fork-path-btn:hover {
    background: var(--white);
    border-color: var(--sky-blue);
    box-shadow: var(--glass-shadow);
  }

  /* Emotion Meter */
  .emotion-meter {
    background: var(--deep-blue);
    color: var(--white);
    text-align: center;
  }

  .emotion-meter .section-title {
    color: var(--white);
  }

  .emotion-meter .section-desc {
    color: var(--mist-blue);
  }

  .slider-container {
    max-width: 600px;
    margin: 0 auto 40px;
  }

  .slider-container input[type="range"] {
    width: 100%;
    accent-color: var(--lemon-yellow);
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
  }

  .slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--mist-blue);
  }

  /* Time Picker */
  .time-picker {
    background: var(--white);
    text-align: center;
  }

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

  .time-btn {
    padding: 12px 24px;
    background: var(--ice-blue);
    color: var(--sky-blue);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .time-btn.active, .time-btn:hover {
    background: var(--sky-blue);
    color: var(--white);
  }

  /* Continuous Story */
  .continuous-story {
    background: var(--ice-blue);
  }

  .story-nodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }

  .story-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
  }

  .story-node img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }

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

  .story-node-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  /* Gallery */
  .gallery {
    background: var(--white);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    background: var(--ice-blue);
  }

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

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

  .gallery-item-info h3 {
    font-size: 0.95rem;
    color: var(--deep-blue);
    margin-bottom: 4px;
  }

  .gallery-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  /* App Section */
  .app-section {
    background: linear-gradient(135deg, var(--ice-blue) 0%, var(--mist-blue) 100%);
    text-align: center;
  }

  .app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0;
  }

  .app-feature-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    text-align: left;
  }

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

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

  /* FAQ */
  .faq {
    background: var(--white);
  }

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

  .faq-item {
    border-bottom: 1px solid var(--mist-blue);
    margin-bottom: 16px;
  }

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

  .faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--sky-blue);
    transition: transform 0.3s ease;
  }

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

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 16px;
  }

  /* Download Zone */
  .download-zone {
    background: var(--deep-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 5%;
  }

  .download-zone .section-title {
    color: var(--white);
  }

  .download-zone .section-desc {
    color: var(--mist-blue);
    margin-bottom: 32px;
  }

  .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }

  .download-buttons .btn-download-large {
    background-color: var(--lemon-yellow);
    color: var(--deep-blue);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s ease;
  }

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

  /* Footer */
  .site-footer {
    background: #05101c;
    color: var(--text-muted);
    padding: 40px 5% 20px;
    text-align: center;
    font-size: 0.85rem;
  }

  .footer-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: block;
  }

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

  .footer-links a {
    color: var(--mist-blue);
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: var(--white);
  }

  .footer-copyright {
    color: #5a7184;
    margin-bottom: 8px;
  }

  .footer-copyright a {
    color: #5a7184;
    text-decoration: underline;
  }

  /* Responsive */
  @media (min-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-cover-card { flex: 0 0 180px; }
    .mood-card { width: 200px; }
    .fork-paths { flex-direction: row; }
    .fork-path-btn { flex: 1; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .app-features { grid-template-columns: repeat(2, 1fr); }
    .download-buttons { flex-direction: row; }
  }

  @media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .hero h1 { font-size: 3.5rem; }
    .hero-covers { gap: 24px; }
    .hero-cover-card { flex: 0 0 220px; }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .app-features { grid-template-columns: repeat(4, 1fr); }
    .story-nodes { flex-direction: row; overflow-x: auto; padding-bottom: 20px; }
    .story-node { flex: 0 0 300px; flex-direction: column; text-align: center; }
    .story-node img { width: 100%; height: auto; aspect-ratio: 2/3; }
  }