:root {
    --ice-blue: #eaf2fb;
    --fog-blue: #d0e1f4;
    --pure-white: #ffffff;
    --deep-sea: #0c2949;
    --lemon: #f4d35e;
    --text-main: #16324f;
    --text-light: #4f7295;
    --glass: rgba(255, 255, 255, 0.65);
    --radius: 16px;
  }

  * { 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;
    /* subtle cloud/space background */
    background-image: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.8) 0%, transparent 40%),
                      radial-gradient(circle at 80% 60%, rgba(255,255,255,0.6) 0%, transparent 50%);
    background-attachment: fixed;
  }

  h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }

  /* Header */
  .site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(234, 242, 251, 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: all 0.3s ease;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    height: 64px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--deep-sea);
  }
  .brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }
  .header-nav { display: flex; gap: 24px; }
  .header-nav a {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
  }
  .header-nav a:hover { color: var(--text-light); }
  .btn-download {
    background: var(--deep-sea);
    color: var(--pure-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.2s;
  }
  .btn-download:hover { transform: translateY(-2px); background: #1a3d66; }
  .menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--deep-sea); }

  /* Hero */
  .hero {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 80vh;
  }
  .hero-content h1 {
    font-size: 3.2rem;
    color: var(--deep-sea);
    margin-bottom: 20px;
    letter-spacing: -1px;
  }
  .hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 480px;
  }
  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--lemon);
    color: var(--deep-sea);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(244,211,94,0.4);
    display: inline-block;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,211,94,0.6); }
  .btn-secondary {
    background: var(--pure-white);
    color: var(--deep-sea);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid rgba(12,41,73,0.1);
    transition: background 0.2s;
    display: inline-block;
  }
  .btn-secondary:hover { background: var(--fog-blue); }

  /* Floating Doors */
  .hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .door {
    width: 140px;
    height: 240px;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(12,41,73,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
  }
  .door:nth-child(1) { transform: translateY(30px) rotate(-5deg); }
  .door:nth-child(2) { transform: translateY(-20px); z-index: 2; width: 160px; height: 280px; }
  .door:nth-child(3) { transform: translateY(40px) rotate(5deg); }
  .door img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
  .door::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(12,41,73,0.8), transparent);
  }
  .door-label {
    position: absolute;
    bottom: 15px; left: 10px; right: 10px;
    color: #fff;
    font-size: 0.85rem;
    z-index: 1;
    font-weight: 600;
    text-align: center;
  }
  .door:hover { transform: translateY(-10px) scale(1.05); z-index: 10; }

  /* Sections */
  section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
  .section-title {
    font-size: 2rem;
    color: var(--deep-sea);
    margin-bottom: 12px;
    text-align: center;
  }
  .section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
  }

  /* Choice Board */
  .choice-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
  }
  .choice-btn {
    background: var(--pure-white);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(12,41,73,0.05);
  }
  .choice-btn.active {
    border-color: var(--deep-sea);
    background: var(--fog-blue);
    color: var(--deep-sea);
  }
  .choice-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .drama-card {
    width: 200px;
    background: var(--pure-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
  }
  .drama-card:hover { transform: translateY(-5px); }
  .drama-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
  }
  .drama-info { padding: 15px; }
  .drama-info h3 { font-size: 1.1rem; color: var(--deep-sea); margin-bottom: 6px; }
  .drama-info p { font-size: 0.85rem; color: var(--text-light); }

  /* Fork / Branching */
  .fork-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: relative;
    padding-top: 40px;
  }
  .fork-node {
    background: var(--glass);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--pure-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    width: 45%;
    z-index: 2;
  }
  .fork-node.active { background: var(--pure-white); border-color: var(--lemon); box-shadow: 0 8px 25px rgba(244,211,94,0.2); }
  .fork-node h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .fork-result {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    background: var(--pure-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 150px;
  }
  .fork-result img { width: 80px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
  .fork-result-text { flex: 1; }
  .fork-result-text h4 { font-size: 1.2rem; color: var(--deep-sea); margin-bottom: 8px; }

  /* Emotion Slider */
  .emotion-section {
    background: linear-gradient(to bottom, var(--ice-blue), var(--deep-sea));
    color: var(--pure-white);
    padding: 80px 20px;
    border-radius: 40px;
    margin: 40px auto;
    max-width: 1000px;
    text-align: center;
  }
  .emotion-section h2 { color: var(--pure-white); margin-bottom: 20px; }
  .emotion-slider {
    width: 80%;
    max-width: 600px;
    margin: 30px auto;
    accent-color: var(--lemon);
  }
  .emotion-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .emotion-display img {
    width: 140px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .emotion-tag {
    background: var(--lemon);
    color: var(--deep-sea);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
  }

  /* First Person */
  .first-person {
    background: var(--pure-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(12,41,73,0.05);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
  }
  .fp-img { width: 160px; flex-shrink: 0; border-radius: 12px; aspect-ratio: 2/3; object-fit: cover; }
  .fp-content h3 { font-size: 1.3rem; margin-bottom: 12px; }
  .fp-content p { color: var(--text-light); margin-bottom: 20px; }
  .fp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .fp-btn {
    background: var(--ice-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--deep-sea);
    transition: background 0.2s;
  }
  .fp-btn:hover { background: var(--fog-blue); }
  .fp-result { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--ice-blue); color: var(--deep-sea); font-weight: 500; }
  .fp-result.show { display: block; }

  /* Time Grid */
  .time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
  .time-card {
    background: var(--pure-white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s;
  }
  .time-card:hover { transform: translateY(-5px); }
  .time-card img { width: 100px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; margin-bottom: 15px; }
  .time-card h4 { font-size: 1rem; color: var(--deep-sea); margin-bottom: 6px; }

  /* Continuous Route */
  .route-container { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; border-left: 2px dashed var(--fog-blue); }
  .route-step { position: relative; margin-bottom: 40px; display: flex; gap: 20px; align-items: center; }
  .route-step::before {
    content: ''; position: absolute; left: -49px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; border-radius: 50%; background: var(--lemon); border: 3px solid var(--pure-white);
  }
  .route-step img { width: 100px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; }
  .route-text h4 { font-size: 1.2rem; color: var(--deep-sea); margin-bottom: 5px; }
  .route-text p { font-size: 0.9rem; color: var(--text-light); }

  /* Echo notes */
  .echo-wall { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
  .echo-note {
    background: var(--pure-white);
    padding: 16px 20px;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    font-size: 0.95rem;
    max-width: 280px;
    position: relative;
  }
  .echo-note:nth-child(even) { background: var(--fog-blue); }
  .echo-note span { display: block; font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

  /* Explore Grid */
  .explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .explore-item {
    background: var(--pure-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
  }
  .explore-item:hover { transform: translateY(-8px); }
  .explore-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
  .explore-info { padding: 15px; }
  .explore-info h3 { font-size: 1.05rem; color: var(--deep-sea); margin-bottom: 4px; }
  .explore-info p { font-size: 0.8rem; color: var(--text-light); }

  /* APP Features */
  .app-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
  .app-feat {
    background: var(--pure-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  }
  .app-feat h3 { font-size: 1.2rem; color: var(--deep-sea); margin-bottom: 12px; }
  .app-feat p { color: var(--text-light); font-size: 0.95rem; }

  /* FAQ */
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item {
    background: var(--pure-white);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  }
  .faq-q {
    padding: 20px;
    font-weight: 600;
    color: var(--deep-sea);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .faq-q::after { content: '+'; font-size: 1.2rem; color: var(--text-light); transition: transform 0.3s; }
  .faq-item.open .faq-q::after { transform: rotate(45deg); }
  .faq-a {
    padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s;
    color: var(--text-light); font-size: 0.95rem;
  }
  .faq-item.open .faq-a { padding: 0 20px 20px; max-height: 200px; }

  /* Download Section */
  .download-section {
    background: var(--deep-sea);
    color: var(--pure-white);
    padding: 80px 20px;
    border-radius: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 1000px;
  }
  .download-section h2 { color: var(--pure-white); margin-bottom: 16px; }
  .download-section p { color: var(--fog-blue); margin-bottom: 30px; }
  .download-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
  .btn-dl {
    background: var(--pure-white);
    color: var(--deep-sea);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
  }
  .btn-dl:hover { transform: scale(1.05); }

  /* Footer */
  footer {
    background: var(--deep-sea);
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; color: var(--fog-blue); }
  .footer-links a:hover { color: var(--pure-white); }
  .footer-bottom { margin-top: 10px; opacity: 0.7; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .footer-bottom a { color: var(--fog-blue); }

  /* Responsive */
  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-visual { height: 400px; margin-top: 20px; }
    .explore-grid { grid-template-columns: repeat(3, 1fr); }
    .app-features { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .header-nav { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-visual { flex-direction: row; overflow-x: auto; height: auto; padding-bottom: 20px; justify-content: flex-start; gap: 15px; }
    .door { flex-shrink: 0; width: 120px; height: 200px; }
    .door:nth-child(2) { width: 140px; height: 230px; }
    .door:nth-child(1), .door:nth-child(3) { transform: none; }
    .fork-container { flex-direction: column; gap: 20px; }
    .fork-node { width: 100%; }
    .first-person { flex-direction: column; text-align: center; padding: 30px 20px; }
    .fp-actions { justify-content: center; }
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .app-features { grid-template-columns: 1fr; }
    .download-btns { flex-direction: column; align-items: center; }
    .btn-dl { width: 80%; }
  }

  @media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .explore-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .explore-info { padding: 10px; }
    .explore-info h3 { font-size: 0.95rem; }
    .explore-info p { font-size: 0.75rem; }
  }