:root {
    /* Dark Mode Colors - Default Theme */
    --bg-primary: #000000;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #6762FE;
    --accent-secondary: #7c77ff;
    --accent-tertiary: #5250d9;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(103, 98, 254, 0.2);
    --gradient-primary: linear-gradient(135deg, #6762FE 0%, #5250d9 50%, #7c77ff 100%);
    --gradient-secondary: linear-gradient(135deg, #6762FE 0%, #7c77ff 50%, #8b87ff 100%);
    --gradient-accent: linear-gradient(135deg, #6762FE 0%, #5250d9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 45px;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(103, 98, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 98, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(103, 98, 254, 0.12) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(103, 98, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 98, 254, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(103, 98, 254, 0.18) 0%, transparent 50%);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suggestions Section - Separate section */
.suggestions-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 40px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 
        0 20px 60px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.suggestions-section {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 
        0 20px 60px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.suggestions-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.suggestions-section .suggestion-group {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.suggestions-section .suggestion-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.suggestions-section .suggestion-group h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-section .suggestion-group h4 i {
    color: var(--accent-primary);
    font-size: 20px;
}

.suggestion-items-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestions-section .suggestion-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.suggestions-section .suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.suggestions-section .suggestion-item:hover::before {
    left: 0;
}

.suggestions-section .suggestion-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--shadow-hover);
    background: var(--bg-secondary);
}

.suggestions-section .suggestion-item span {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.suggestions-section .suggestion-item .drag-icon {
    display: none;
}

.suggestion-group {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.suggestion-group:hover::before {
    left: 100%;
}

.suggestion-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.suggestion-group h3 {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.suggestion-group h3 i {
    font-size: 18px;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
}

.suggestion-item:hover::before {
    width: 100%;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.suggestion-item:active {
    cursor: grabbing;
    transform: translateX(8px) scale(0.98);
}

.suggestion-item span {
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.suggestion-item .drag-icon {
    opacity: 0.7;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.suggestion-item:hover .drag-icon {
    opacity: 1;
}


.header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-icon {
    height: 40px;
    width: 40px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(103, 98, 254, 0.4));
    flex-shrink: 0;
}

.logo-name {
    height: 34px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    margin-left: 0px;
    margin-top: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 6px 20px rgba(103, 98, 254, 0.6));
    transform: scale(1.05);
}

.logo:hover .logo-name {
    transform: scale(1.02);
}


/* Hero Badge */
.hero-badge {
    display: block;
    padding: 8px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 120px auto 32px auto;
    letter-spacing: 0.3px;
    text-align: center;
    width: fit-content;
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Title */
.hero-title {
    font-size: 48px;
    font-weight: 900;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    color: #ffffff;
    margin: 0 auto 24px auto;
    line-height: 60.6px;
    letter-spacing: 1.8px;
    max-width: 900px;
    text-align: center;
    padding: 3px 0px;
    display: flex;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 auto 48px auto;
    line-height: 1.6;
    max-width: 700px;
    font-weight: 400;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Form Section */
.form-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 32px auto;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-section::before {
    display: none;
}

.form-section:hover::before {
    display: none;
}

/* Single Input Container */
.single-input-container {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(103, 98, 254, 0.4);
    border-radius: 8px;
    padding: 16px 20px;
    gap: 16px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 0 0 0 rgba(103, 98, 254, 0),
        inset 0 0 20px rgba(103, 98, 254, 0.1);
}

.single-input-container:focus-within {
    border-color: rgba(124, 119, 255, 0.8);
    box-shadow: 
        0 0 20px rgba(103, 98, 254, 0.4),
        inset 0 0 30px rgba(103, 98, 254, 0.15);
}

.input-sparkle-icon {
    color: #7c77ff;
    font-size: 20px;
    flex-shrink: 0;
}

.story-prompt-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    padding: 0 8px;
    margin: 0;
    box-shadow: none;
    outline: none;
    min-width: 0;
    width: 100%;
    line-height: 1.5;
}

.story-prompt-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.story-prompt-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
    transform: none;
    background: transparent;
}

.input-settings-icon {
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.input-settings-icon:hover {
    color: var(--text-primary);
}

.generate-btn-inline {
    background: #000000;
    color: white;
    border: none;
    padding: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: visible;
    width: 140px;
    height: 44px;
}

.generate-btn-inline::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.generate-btn-inline:hover {
    transform: translateY(-2px);
}

.generate-btn-inline:active {
    transform: translateY(0);
}

.generate-btn-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.generate-btn-inline i {
    font-size: 12px;
    flex-shrink: 0;
}

.generate-btn-inline .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.generate-btn-inline .btn-text {
    display: inline-block;
}

.generate-btn-inline .btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.generate-btn-inline .btn-loader i {
    font-size: 14px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Word Count Display */
.word-count-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(103, 98, 254, 0.15);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.word-count-display i {
    font-size: 12px;
    color: #7c77ff;
}

.word-count-display #word-count-text {
    font-weight: 600;
    color: #7c77ff;
}

.word-count-display .word-count-label {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Premium Fields Container */
.premium-fields-container {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(103, 98, 254, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease-out;
}

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

.premium-field-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.premium-field-label i {
    font-size: 14px;
    color: #7c77ff;
}

.premium-field-select {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(103, 98, 254, 0.4);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.premium-field-select:hover {
    border-color: rgba(124, 119, 255, 0.6);
    background: rgba(30, 41, 59, 0.9);
}

.premium-field-select:focus {
    border-color: rgba(124, 119, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(103, 98, 254, 0.2);
}

.premium-field-select option {
    background: rgba(30, 41, 59, 0.95);
    color: var(--text-primary);
    padding: 8px;
}

/* Suggestion Chips */
.suggestion-chips {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.suggestion-chip {
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
.how-it-works-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.how-it-works-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.how-it-works-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 48px;
    font-weight: 400;
    text-align: center;
}

.story-examples-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.story-example-card {
    background: rgba(26, 31, 49, 0.8);
    border: none;
    border-radius: 12px;
    padding: 32px 20px 24px 20px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: visible;
    min-width: 0;
    isolation: isolate;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.story-prompt-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #E0E0E0 0%, #D0D0D0 100%);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    height: 44px;
    z-index: 10;
}

.story-prompt-label i {
    color: #333333;
    font-size: 14px;
    flex-shrink: 0;
}

.story-prompt-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.story-example-content {
    color: #B0B0B0;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 400;
    margin-top: 8px;
}

.example-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #6762FE;
    border-color: #6762FE;
    width: 12px;
    height: 12px;
}

.cta-button {
    background: #0A0A1F;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #FF00FF 0%, #9D00FF 50%, #4A00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

@media (max-width: 968px) {
    .story-examples-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .how-it-works-title {
        font-size: 36px;
    }
    
    .how-it-works-subtitle {
        font-size: 16px;
    }
}

/* Telling Stories Section */
.telling-stories-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.telling-stories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.telling-stories-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.telling-stories-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.telling-stories-description {
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

.generate-ai-story-btn {
    background: #000000;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
    align-self: flex-start;
    margin-top: 8px;
}

.generate-ai-story-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.generate-ai-story-btn:hover {
    transform: translateY(-2px);
}

.telling-stories-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.telling-stories-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.telling-stories-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}


.telling-stories-overlay {
    position: absolute;
    bottom: -20px;
    right: -40px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    z-index: 3;
}

.telling-stories-overlay-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
}

.telling-stories-input-wrapper {
    position: relative;
    width: 100%;
}

.telling-stories-input-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #FF00FF 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.telling-stories-overlay-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #FFFFFF;
    box-sizing: border-box;
    position: relative;
    outline: none;
    background-clip: padding-box;
}

.telling-stories-overlay-input::placeholder {
    color: #999999;
}

@media (max-width: 968px) {
    .telling-stories-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .telling-stories-title {
        font-size: 36px;
    }
    
    .telling-stories-description {
        font-size: 16px;
    }
    
    .telling-stories-overlay {
        right: 0;
        bottom: -10px;
    }
}

/* Explore Prompts Section */
.explore-prompts-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.explore-prompts-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.2;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.explore-prompts-description {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto 60px auto;
    max-width: 800px;
    line-height: 1.7;
    opacity: 0.9;
}

.prompts-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.prompts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.prompts-row-1 {
    animation: slideLeftToRight 30s linear infinite;
}

.prompts-row-2 {
    animation: slideRightToLeft 35s linear infinite;
}

.prompts-row-3 {
    animation: slideLeftToRight 40s linear infinite;
}

.prompt-card {
    background: rgba(30, 30, 59, 0.8);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.prompt-card:hover {
    transform: translateY(-2px);
    background: rgba(30, 30, 59, 1);
}

.prompt-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.prompt-arrow {
    color: #FFFFFF;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes slideLeftToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

@keyframes slideRightToLeft {
    from {
        transform: translateX(calc(-50% - 10px));
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 968px) {
    .explore-prompts-title {
        font-size: 36px;
    }
    
    .explore-prompts-description {
        font-size: 16px;
    }
    
    .prompt-card {
        padding: 12px 16px;
    }
    
    .prompt-text {
        font-size: 12px;
    }
}

/* Pricing Section */
.pricing-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.pricing-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.2;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.pricing-description {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto 60px auto;
    max-width: 800px;
    line-height: 1.7;
    opacity: 0.9;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(26, 31, 49, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(103, 98, 254, 0.3);
    border-color: var(--accent-primary);
}

.pricing-card-featured {
    border: none;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 8px 30px rgba(103, 98, 254, 0.4);
    position: relative;
    overflow: visible;
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(103, 98, 254, 0.4);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-plan-name {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0;
}

.pricing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px 0;
}

.pricing-logo-icon {
    height: 40px;
    width: 40px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(103, 98, 254, 0.4));
    flex-shrink: 0;
}

.pricing-logo-name {
    height: 34px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    margin-top: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

.pricing-feature i {
    color: var(--accent-primary);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-feature span {
    flex: 1;
}

.pricing-btn {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.pricing-btn-free {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 2px solid var(--border-color);
}

.pricing-btn-free:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 98, 254, 0.3);
}

.pricing-btn-premium {
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.pricing-btn-premium::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.pricing-btn-premium:hover {
    transform: translateY(-2px);
}

.pricing-btn:active {
    transform: translateY(0);
}

@media (max-width: 968px) {
    .pricing-title {
        font-size: 36px;
    }
    
    .pricing-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 500px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .pricing-plan-name {
        font-size: 24px;
    }
    
    .pricing-logo-icon {
        height: 32px;
        width: 32px;
    }
    
    .pricing-logo-name {
        height: 28px;
        margin-top: 8px;
    }
    
    .price-amount {
        font-size: 40px;
    }
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.2;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.faq-description {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto 60px auto;
    max-width: 800px;
    line-height: 1.7;
    opacity: 0.9;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(26, 31, 49, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(103, 98, 254, 0.2);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(103, 98, 254, 0.3);
}

.faq-question {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(103, 98, 254, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    font-size: 16px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 28px 24px 28px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    padding-top: 8px;
}

@media (max-width: 968px) {
    .faq-title {
        font-size: 36px;
    }
    
    .faq-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .faq-question {
        padding: 20px 24px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 24px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 24px 20px 24px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.form-section:hover::before {
    transform: scaleX(1);
}

.form-group {
    margin-bottom: 28px;
    position: relative;
    display: none;
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    transition: color 0.3s ease;
}

label i {
    color: var(--accent-primary);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.form-group:focus-within label i {
    transform: scale(1.2) rotate(5deg);
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--shadow-color);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-weight: 400;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-secondary) inset;
    box-shadow: 0 0 0px 1000px var(--bg-secondary) inset;
    transition: background-color 5000s ease-in-out 0s;
    border-color: var(--accent-primary);
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 4px 12px var(--shadow-hover);
    transform: translateY(-2px);
    background: var(--bg-secondary);
}

input:focus:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary);
}

.generate-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.generate-btn:hover::before {
    width: 300px;
    height: 300px;
}

.generate-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
    background: var(--gradient-secondary);
}

.generate-btn:active {
    transform: translateY(-2px);
}

.generate-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.generate-btn:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* Story Outlines Section */
#story-outlines-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.story-outlines-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.story-outlines-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 48px;
    font-weight: 400;
    text-align: center;
}

@media (max-width: 968px) {
    .story-outlines-title {
        font-size: 36px;
    }
    
    .story-outlines-subtitle {
        font-size: 16px;
    }
}

.story-outlines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.story-outline {
    background: rgba(26, 31, 49, 0.8);
    border: none;
    border-radius: 12px;
    padding: 32px 20px 24px 20px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: visible;
    min-width: 0;
    isolation: isolate;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.story-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.outline-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #E0E0E0 0%, #D0D0D0 100%);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    height: 44px;
    z-index: 10;
}

.outline-number {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.outline-header i {
    color: #333333;
    font-size: 14px;
    flex-shrink: 0;
}

.outline-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-outline .outline-text {
    flex-grow: 1;
    color: #B0B0B0;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 20px;
}

.outline-actions {
    margin-top: auto;
}

.story-outline .select-outline-btn {
    width: 100%;
    background: #000000;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.story-outline .select-outline-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.story-outline .select-outline-btn:hover {
    transform: translateY(-2px);
}

.story-outline .select-outline-btn:active {
    transform: translateY(0);
}

.story-outline .select-outline-btn i {
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.story-outline .select-outline-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 968px) {
    .story-outlines {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.project-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-info h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-description p {
    margin-bottom: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

.project-description ul {
    list-style-type: none;
    margin-bottom: 16px;
}

.project-description ul li {
    margin-bottom: 12px;
    opacity: 0.9;
}

.project-description ul li strong {
    display: block;
    margin-bottom: 6px;
    opacity: 1;
}

.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
}

.loading-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-section p {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Final Story Section */
#final-story-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.final-story-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.final-story-subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 48px;
    font-weight: 400;
    text-align: center;
}

#final-story-content {
    text-align: left;
    max-width: 100%;
}

.story-section {
    background: rgba(26, 31, 49, 0.8);
    border: none;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.story-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.story-section p {
    color: #B0B0B0;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.edit-story-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible;
    margin-bottom: 32px;
}

.edit-story-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.edit-story-btn:hover {
    transform: translateY(-2px);
}

.edit-story-btn:active {
    transform: translateY(0);
}

.edit-story-btn i {
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 968px) {
    .final-story-title {
        font-size: 28px;
    }
    
    .final-story-subtitle {
        font-size: 14px;
    }
    
    .story-section {
        padding: 24px 20px;
    }
    
    .story-section h3 {
        font-size: 20px;
    }
    
    .story-section p {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .suggestions-section {
        padding: 30px;
    }

    .suggestions-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .suggestions-section {
        padding: 24px 20px;
    }

    .suggestions-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
        margin: 100px auto 24px auto;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .single-input-container {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }

    .story-prompt-input {
        width: 100%;
        order: 2;
    }

    .input-sparkle-icon {
        order: 1;
    }

    .input-settings-icon {
        order: 3;
    }

    .generate-btn-inline {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .suggestion-chips {
        gap: 12px;
    }

    .suggestion-chip {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(26, 31, 49, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(103, 98, 254, 0.3);
    border: 2px solid rgba(103, 98, 254, 0.4);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    background: transparent;
    color: white;
    padding: 24px 30px;
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    text-align: center;
}

.close-modal {
    color: white;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.close-modal:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
    color: #FF00FF;
}

#story-edit-textarea {
    width: 100%;
    padding: 30px;
    border: none;
    background: #000000;
    color: #ffffff;
    resize: vertical;
    min-height: 500px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    border-top: 2px solid rgba(103, 98, 254, 0.3);
    border-bottom: 2px solid rgba(103, 98, 254, 0.3);
    flex: 1;
    overflow-y: auto;
}

#story-edit-textarea:focus {
    outline: none;
    border-top-color: rgba(103, 98, 254, 0.6);
    border-bottom-color: rgba(103, 98, 254, 0.6);
    box-shadow: inset 0 0 20px rgba(103, 98, 254, 0.1);
}

#story-edit-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#story-edit-textarea::-webkit-scrollbar {
    width: 8px;
}

#story-edit-textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#story-edit-textarea::-webkit-scrollbar-thumb {
    background: rgba(103, 98, 254, 0.5);
    border-radius: 4px;
}

#story-edit-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(103, 98, 254, 0.7);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(103, 98, 254, 0.3);
    gap: 16px;
}

.modal-actions .btn {
    flex: 1;
    background: #000000;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.modal-actions .btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9D00FF 0%, #4A00FF 50%, #FF00FF 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 1;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
}

.modal-actions .btn:active {
    transform: translateY(0);
}

.modal-actions .btn i {
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.modal-actions .btn:hover i {
    transform: translateX(4px);
}

/* Footer */
.footer {
    width: 100%;
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    height: 32px;
    width: 32px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(103, 98, 254, 0.4));
}

.footer-logo-name {
    height: 28px;
    width: auto;
    display: block;
    margin-top: 8px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(103, 98, 254, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 98, 254, 0.4);
}

.social-link i {
    font-size: 16px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
    text-align: right;
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-icon {
        height: 28px;
        width: 28px;
    }
    
    .footer-logo-name {
        height: 24px;
        margin-top: 6px;
    }
    
    .footer-social {
        order: 2;
    }
    
    .footer-copyright {
        font-size: 13px;
        text-align: center;
        order: 3;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(103, 98, 254, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(103, 98, 254, 0.2) inset;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.toast-success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-info::before {
    background: var(--gradient-primary);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.toast-info .toast-icon {
    background: rgba(103, 98, 254, 0.2);
    color: #7c77ff;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: toastProgress linear forwards;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}
