:root {
    --primary: #6C5CE7;
    --primary-hover: #5A4AD1;
    --secondary: #00CEC9;
    --accent: #FD79A8;
    --text: #2D3436;
    --text-light: #636E72;
    --bg: #F0F3F9;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --clay-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.8),
        inset -3px -3px 7px rgba(0, 0, 0, 0.05),
        8px 8px 20px rgba(0, 0, 0, 0.05);
    
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Noto Serif SC', serif;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ═══════ UTILS ═══════ */
.clay-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--clay-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    margin: 2rem auto;
    max-width: 1240px;
}

.section-badge {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.btn-danger {
    background: #ff7675;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.3);
}

.btn-danger:hover {
    background: #d63031;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 118, 117, 0.4);
}

.btn-outline {
    background: white;
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--clay-shadow);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.btn-primary:disabled, .btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

/* ═══════ NAV ═══════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(240, 243, 249, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--clay-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.nav-github {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.nav-github:hover {
    color: var(--text);
}

/* ═══════ HERO ═══════ */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 300px;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg), var(--clay-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.5s ease;
    width: 240px;
    text-align: left;
}

.card-paper {
    top: 20px;
    left: 50px;
    transform: rotate(-5deg) translateZ(0);
    z-index: 1;
}

.card-arrow {
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateZ(20px);
    z-index: 2;
    width: auto;
    background: var(--text);
    color: white;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.card-novel {
    top: 40px;
    right: 50px;
    transform: rotate(5deg) translateZ(0);
    z-index: 1;
}

.float-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.float-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.float-card-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

.float-card-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--text-light);
    border-radius: 3px;
}

.bar-fill-novel {
    background: var(--secondary);
}

.arrow-icon {
    margin-right: 0.5rem;
}

.arrow-text {
    font-weight: 600;
    font-size: 0.875rem;
}

/* ═══════ HOW IT WORKS ═══════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

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

/* ═══════ GENRES ═══════ */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.genre-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--clay-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.genre-card.active {
    background: var(--primary);
    color: white;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2), inset -2px -2px 5px rgba(255,255,255,0.1);
}

.genre-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.genre-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.genre-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ═══════ TESTIMONIALS ═══════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
}

.avatar-1 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.avatar-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.avatar-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

.testimonial-author strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

.testimonial-author small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ═══════ DEMO ═══════ */
.demo-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.demo-cover {
    position: sticky;
    top: 100px;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.demo-cover-inner {
    padding: 2rem;
    background: linear-gradient(to bottom, #fdfdfd, #f4f4f4);
}

.demo-book-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.demo-book-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.demo-book-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.demo-book-divider {
    height: 2px;
    width: 40px;
    background: var(--primary);
    margin: 1rem auto;
}

.demo-book-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.demo-book-author {
    font-size: 0.75rem;
    color: var(--text-light);
}

.demo-toc {
    border-top: 1px solid #eee;
    padding: 1.5rem;
    background: #fafafa;
    text-align: left;
}

.demo-toc h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.demo-toc-item {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-toc-item:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.demo-toc-item.active {
    background: var(--primary);
    color: white;
}

.demo-toc-num {
    font-size: 0.75rem;
    opacity: 0.7;
    width: 1.5em;
}

.demo-reader {
    min-height: 600px;
    background: #FFFEFA; /* Paper color */
    position: relative;
    display: flex;
    flex-direction: column;
}

.demo-reader-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.demo-reader-nav-bottom {
    border-top: 1px solid #eee;
    border-bottom: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

.demo-chapter-indicator {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-light);
}

.demo-reader-content {
    flex: 1;
    overflow-y: auto;
    max-height: 800px;
    padding-right: 1rem;
}

.demo-chapter-heading {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.demo-chapter-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.demo-separator {
    text-align: center;
    color: var(--text-light);
    margin: 2rem 0;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ═══════ CONVERTER ═══════ */
.converter-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.converter-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.input-row {
    position: relative;
    margin-bottom: 2rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.input-row input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 1rem;
    font-family: var(--font);
    transition: all 0.3s;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
}

.input-row input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.genre-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.genre-chip {
    padding: 0.5rem;
    background: #F0F3F9;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.genre-chip:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.genre-chip.active {
    background: var(--primary);
    color: white;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
}

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.option-group input, .option-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: white;
    font-family: var(--font);
    font-size: 0.95rem;
}

/* Progress Area */
.converter-progress {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #eee;
}

.progress-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.progress-header p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    font-weight: 700;
    color: var(--primary);
    width: 40px;
    text-align: right;
}

.chunk-indicators {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.chunk-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: all 0.3s;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 600;
}

.chunk-dot.active {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.chunk-dot.done {
    background: var(--primary);
    color: white;
}

/* Novel Output */
.novel-output {
    min-height: 400px;
}

.novel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.novel-header h2 {
    text-align: left;
    margin: 0;
    font-size: 1.5rem;
}

.novel-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.novel-content {
    font-family: var(--font-serif);
    line-height: 1.8;
}

.chapter {
    margin-bottom: 3rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2rem;
}

.chapter:last-child {
    border-bottom: none;
}

.chapter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--primary);
    text-align: center;
}

/* ═══════ CTA ═══════ */
.cta-section {
    text-align: center;
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(0, 206, 201, 0.05) 100%);
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.cta-notes {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ═══════ FOOTER ═══════ */
.footer {
    background: white;
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid #eee;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-light);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #f5f5f5;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ═══════ MODAL ═══════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.setting-group input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    font-family: var(--font);
}

.settings-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    background: #F0F3F9;
    padding: 1rem;
    border-radius: 8px;
}

/* ── Annotated Paragraphs (Inline Toggle) ─────────────── */
.novel-block {
  margin-bottom: 24px;
  position: relative;
}

.novel-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2D3436;
  text-indent: 2em;
  text-align: justify;
}

/* Toggle Button (Inline) */
.note-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: all 0.2s;
  vertical-align: middle;
  transform: translateY(-2px);
}

.note-toggle:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px) scale(1.1);
}

.note-toggle.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

/* The Note (Hidden by default) */
.novel-note {
  display: none; /* Hidden initially */
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4A5568;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3px solid var(--primary);
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
  margin-left: 2em; /* Indent slightly to differentiate */
  margin-right: 2em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  animation: slideDown 0.3s ease-out;
}

.novel-note.visible {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.novel-note::before {
  content: "💡 知识点";
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 6px;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .hero h1 {
      font-size: 2.5rem;
  }
  
  .hero-stats {
      flex-direction: column;
      gap: 1.5rem;
  }
  
  .hero-visual {
      display: none;
  }

  .nav-links {
      display: none;
  }
  
  .demo-wrapper {
      grid-template-columns: 1fr;
  }
  
  .demo-cover {
      position: static;
      margin-bottom: 2rem;
  }
  
  .footer-inner {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }
  
  .footer-links {
      justify-content: center;
  }
  
  .footer-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  
  .novel-note {
    margin-left: 0;
    margin-right: 0;
  }
}
