@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Brand Colors */
    --brand-primary: #35769A;
    --brand-primary-hover: #13577c;
    --brand-primary-dark: #1A3A4C;
    --brand-primary-light: #91d6fc;
    
    /* Background Colors */
    --background-color: #F7ECE1;
    
    /* Story Element Colors */
    --character-primary: #ef4444;
    --character-light: #fedcdc;
    --setting-primary: #10b981;
    --setting-light: #dbfde5;
    --tone-primary: #f59e0b;
    --tone-light: #fbf2cd;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Typography */
    --font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-family);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preferences  */
@view-transition {
    navigation: auto;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--gray-700);
    background-color: var(--background-color);
    line-height: var(--leading-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family) !important;
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--gray-900);
}

p, span, div, a, button, input, select, textarea, label {
    font-family: var(--font-family) !important;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

/* Header */
.header {
    background: var(--white);
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: border-color var(--transition-normal);
}

.header.scrolled {
    border-bottom-color: var(--gray-300);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.025em;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.1));
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    font-family: var(--font-family) !important;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.nav-link.nav-waitlist {
    color: var(--gray-500);
    font-weight: 600;
    background: none;
    padding: var(--space-2) var(--space-3);
}

.nav-link.nav-waitlist:hover {
    color: var(--brand-primary);
    background: none;
}

.nav-link.primary-btn {
    font-family: var(--font-family) !important;
    background: var(--brand-primary);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.header.show-header-cta .nav-link.primary-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link.primary-btn:hover {
    background: var(--brand-primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    flex-direction: column;
    gap: 3px;
    border-radius: var(--radius-md);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-color) 100%);
    padding: 40px 0 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    direction: rtl;
}

.hero-text {
    text-align: center;
}

.hero-text a.primary-btn {
    width: 100%;
    max-width: 330px;
}

.hero-image {
    direction: ltr;
}

.hero-title {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-700);
    margin-bottom: var(--space-12);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    text-align: center;
}

.mascot-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.1));
    z-index: 2;
    position: relative;
}

.idea-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.idea-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.1));
    animation: float 3s ease-in-out infinite;
}

.bubble-1 {
    top: -4%;
    left: 40%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.bubble-2 {
    top: 7%;
    left: 20%;
    animation-delay: 0.5s;
}

.bubble-3 {
    top: 3%;
    right: 25%;
    animation-delay: 1s;
}

.bubble-4 {
    top: 30%;
    left: 10%;
    animation-delay: 1.5s;
}

.bubble-5 {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Marketing Section Reveal Animations */
.section {
    height: 50vh;
    display: flex;
    align-items: center;
    background: var(--background-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background: var(--background-color);
}

/* Stagger the animations for different elements within sections */
.section-text {
    max-width: 480px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.section.revealed .section-text {
    opacity: 1;
    transform: translateX(0);
}

.section-image {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.section.revealed .section-image {
    opacity: 1;
    transform: translateX(0);
}

/* Reverse sections have opposite slide directions */
.section.reverse .section-text {
    transform: translateX(20px);
}

.section.reverse .section-image {
    transform: translateX(-20px);
}

.section.reverse.revealed .section-text {
    transform: translateX(0);
}

.section.reverse.revealed .section-image {
    transform: translateX(0);
}

.section-text h2 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

.section-text p {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    text-align: justify;
    hyphens: auto;
}

.devices-svg, .backpack-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.05));
}

.phone-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.05));
}

.books-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.05));
}

/* Buttons */
.btn {
    font-family: var(--font-family) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-12);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--font-size-base);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

.primary-btn {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
    border-bottom: 4px solid var(--brand-primary-hover);
}

.primary-btn:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.secondary-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

.outline-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
    transition: all var(--transition-normal);
}

.outline-btn:hover {
    background: var(--white);
    color: var(--brand-primary-dark);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Widget Section - Removed, keeping only modal version */
.widget-container {
    background-image: 
        url('/assets/img/worn-dots.png'), 
        linear-gradient(to bottom, var(--brand-primary-light), #75cfff);
    min-height: 100vh;
    padding-block: var(--space-12);
}

/* Shorty Chat Interface */
.shorty-chat {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    justify-content: center;
}

.shorty-avatar {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.2));
    flex-shrink: 0;
    animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.chat-bubble {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-8);
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid var(--brand-primary-light);
    transition: transform var(--transition-fast);
}

.chat-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid var(--white);
}

.chat-bubble::after {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #ffffff;
}

.chat-bubble p {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-lg);
    color: var(--gray-800);
    font-weight: 600;
    line-height: var(--leading-relaxed);
    margin: 0;
}

h2.widget-title {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-12);
    letter-spacing: -0.025em;
    color: var(--white);
}

.story-generator {

}

.story-status {
    font-family: var(--font-family) !important;
    padding: var(--space-4) var(--space-8);
    background: var(--brand-primary-light);
    border-bottom: 1px solid var(--brand-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--brand-primary);
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.story-status:empty {
    display: none;
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    gap: var(--space-8);
}

.story-inputs {
    padding-block: var(--space-8);
}

.input-group {
    margin-bottom: var(--space-6);
}

.input-label {
    font-family: var(--font-family) !important;
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    letter-spacing: -0.01em;
}

.story-input, .story-select {
    font-family: var(--font-family) !important;
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-700);
}

.story-input:focus, .story-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.story-input:disabled, .story-select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--gray-200);
}

.story-input::placeholder {
    color: var(--gray-600);
    font-weight: 500;
}

/* Color-coded input groups */
.character-group {
    background: var(--character-light);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--character-primary);
    border-bottom: 4px solid var(--character-primary);
}

.character-group .story-input {
    border-color: var(--character-primary);
}

.character-group .story-input:focus {
    box-shadow: 0 0 0 3px var(--character-light);
}

.setting-group {
    background: var(--setting-light);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--setting-primary);
    border-bottom: 4px solid var(--setting-primary);
}

.setting-group .story-input {
    border-color: var(--setting-primary);
}

.setting-group .story-input:focus {
    box-shadow: 0 0 0 3px var(--setting-light);
}

.situation-group {
    background: var(--tone-light);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--tone-primary);
    border-bottom: 4px solid var(--tone-primary);
}

.situation-group .story-input {
    border-color: var(--tone-primary);
}

.situation-group .story-input:focus {
    box-shadow: 0 0 0 3px var(--tone-light);
}

.tone-group {
    background: var(--tone-light);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--tone-primary);
}

.tone-group .story-input {
    border-color: var(--tone-primary);
}

.tone-group .story-input:focus {
    box-shadow: 0 0 0 3px var(--tone-light);
}

.optional-section, .advanced-section {
    margin-bottom: var(--space-6);
}

.optional-summary, .advanced-summary {
    font-family: var(--font-family) !important;
    padding: var(--space-5);
    background: #cde3fb;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    border: 2px solid var(--brand-primary);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.optional-summary:hover, .advanced-summary:hover {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

.optional-inputs, .advanced-inputs {
    padding: var(--space-6);
    background: #cde3fb;
    border-radius: var(--radius-xl);
    margin-top: var(--space-3);
    border: 2px solid var(--brand-primary);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.story-output {
    margin-block: var(--space-8);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.story-content {
    font-family: var(--font-family) !important;
    min-height: 400px;
    line-height: 1.8;
    background: var(--white);
    color: var(--gray-700);
    font-size: var(--font-size-base);
    text-align: justify;
    hyphens: auto;
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    padding: 20px;
    border-bottom: 4px solid;
    font-weight: 500;
    height: 100%;
    max-height: 665px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    border-bottom: 4px solid var(--brand-primary);
}

.story-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.story-content h2 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
}

.story-content p {
    font-family: var(--font-family) !important;
    margin-bottom: var(--space-4);
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.story-placeholder {
    font-family: var(--font-family) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: var(--gray-500);
}

.story-placeholder h4 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

.story-placeholder p {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base);
    color: var(--gray-500);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--brand-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

.loading-overlay p {
    font-family: var(--font-family) !important;
    color: var(--gray-600);
    font-weight: 500;
}

/* Story element highlighting */
.story-character {
    font-family: var(--font-family) !important;
    color: var(--character-primary);
    font-weight: 600;
    /* background-color: var(--character-light); */
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

/* .story-character:hover {
    background-color: var(--character-primary);
    color: var(--white);
    transform: scale(1.05);
} */

.story-setting {
    font-family: var(--font-family) !important;
    color: var(--setting-primary);
    font-weight: 600;
}

.story-situation {
    font-family: var(--font-family) !important;
    color: var(--tone-primary);
    font-weight: 600;
}

.story-tone {
    font-family: var(--font-family) !important;
    color: var(--tone-primary);
    font-weight: 600;
}

/* Waitlist Section */
.waitlist-section {
    height: 50vh;
    display: flex;
    align-items: center;
    background: var(--background-color);
    text-align: center;
    margin-bottom: 120px;
}

.waitlist-section h2 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

.waitlist-subtitle {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.form-input, .form-select {
    font-family: var(--font-family) !important;
    padding: var(--space-5);
    border: 2px solid var(--gray-300);
    border-bottom: 4px solid var(--gray-400);
    border-radius: 12px;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    border-bottom-color: var(--brand-primary-hover);
    box-shadow: 0 4px 8px rgba(53, 118, 154, 0.15);
}

.form-input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

.hidden {
    display: none;
}

.waitlist-success {
    text-align: center;
    padding: var(--space-12);
    background: var(--white);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--brand-primary);
}

.waitlist-success h3 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.waitlist-success p {
    font-family: var(--font-family) !important;
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* Footer */
.footer {
    background: var(--brand-primary);
    color: var(--white)#ffffff;
    padding: 100px 0 var(--space-8);
    position: relative;
}

.footer:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    height: 85px;
    background: var(--brand-primary);
    mask-image: url(/assets/img/mask-2.png);
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--white);
}

.footer-brand p {
    font-family: var(--font-family) !important;
    color: var(--brand-primary-light);
    line-height: var(--leading-relaxed);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-family: var(--font-family) !important;
    color: var(--brand-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
}

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

.footer-contact p {
    font-family: var(--font-family) !important;
    color: var(--brand-primary-light);
    font-size: var(--font-size-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--brand-primary-light);
    color: var(--brand-primary-light);
}

.footer-bottom p {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .generator-content {
        grid-template-columns: 1fr;
    }
    
    .story-inputs {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .hero-content, .section-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-12);
    }
    
    .section.reverse .section-content {
        direction: ltr;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-text h2, .widget-title, .waitlist-section h2 {
        font-size: var(--font-size-3xl);
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }
    
    .button-group {
        flex-direction: column;
        padding: var(--space-6);
    }
    
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .section, .waitlist-section {
        padding: var(--space-16) 0;
    }
    
    .shorty-chat {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .shorty-avatar {
        width: 60px;
        height: 60px;
    }
    
    .chat-bubble {
        max-width: 100%;
        margin: 0 var(--space-4);
    }
    
    .chat-bubble::before,
    .chat-bubble::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .story-inputs, .story-output {
        padding: var(--space-6);
    }
    
    .button-group {
        padding: var(--space-4);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-text h2, .widget-title, .waitlist-section h2 {
        font-size: var(--font-size-2xl);
    }
}

.scroll-down-btn {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: var(--gray-400);
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.scroll-down-btn:hover {
    color: var(--gray-700);
    transform: translateX(-50%) translateY(-2px);
}

#perfect-for-schools .section-content, #fun-characters .section-content {
    grid-template-columns: 1fr 2fr;
}

/* Thank You Page */
.thank-you-section {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-color) 100%);
    padding: var(--space-20) 0;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-image {
    margin-bottom: var(--space-12);
}

.thank-you-mascot {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.1));
}

.thank-you-text h2 {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

.thank-you-text p {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.thank-you-text .btn {
    margin-top: var(--space-8);
}

.character-bubbles {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
}

.character-bubble {
    position: absolute;
    width: 70px;
    height: 70px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.1));
    animation: float 4s ease-in-out infinite;
}

.character-bubbles .bubble-1 {
    top: 5%;
    left: 40%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.character-bubbles .bubble-2 {
    top: 15%;
    left: 15%;
    animation-delay: 0.7s;
}

.character-bubbles .bubble-3 {
    top: 20%;
    right: 10%;
    animation-delay: 1.4s;
}

.character-bubbles .bubble-4 {
    top: 45%;
    left: 5%;
    animation-delay: 2.1s;
}

.character-bubbles .bubble-5 {
    top: 50%;
    right: 5%;
    animation-delay: 2.8s;
}

.character-bubbles .bubble-6 {
    top: 70%;
    left: 40%;
    transform: translateX(-50%);
    animation-delay: 3.5s;
}

.section-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.section.reverse .section-content {
    direction: rtl;
}

.section.reverse .section-text,
.section.reverse .section-image {
    direction: ltr;
}