:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --bg-light: #FFF5F5;
    --bg-dark: #1a1a2e;
    --text-light: #2D3436;
    --text-dark: #F5F5F5;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 50%, #FFF0F0 100%);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.app.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--text-dark);
}

/* Floating strawberries */
.floating-berries {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-berry {
    position: absolute;
    opacity: 0.15;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Progress indicator */
.progress-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 4px;
    z-index: 100;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.dark .header {
    background: rgba(26, 26, 46, 0.9);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-berry {
    font-size: 2rem;
    animation: spin 10s linear infinite;
    cursor: pointer;
    user-select: none;
}

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

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.skip-btn, .theme-toggle {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skip-btn {
    background: var(--primary);
    color: white;
}

.skip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.theme-toggle {
    background: transparent;
    font-size: 1.2rem;
}

/* Hero */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.berry-bounce {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-disclaimer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 8px 20px;
    background: rgba(255, 107, 107, 0.1);
    display: inline-block;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Thesis section */
.thesis-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 3rem;
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.thesis-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.dark .thesis-card {
    background: rgba(255, 255, 255, 0.05);
}

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

.thesis-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
    border-color: var(--primary);
}

.thesis-card.expanded {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    opacity: 0.7;
    line-height: 1.5;
}

.card-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
}

.card-visual {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 12px;
}

.expand-hint {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.5;
    font-family: 'JetBrains Mono', monospace;
}

/* Card visuals */
.visual-tweet-to-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mini-tweet, .mini-app {
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark .mini-tweet, .dark .mini-app {
    background: rgba(255,255,255,0.1);
}

.arrow {
    font-size: 1.5rem;
    color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pipeline-visual {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pipeline-step {
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    to { opacity: 1; }
}

.network-visual {
    height: 120px;
    position: relative;
}

.node-graph {
    position: relative;
    width: 100%;
    height: 100%;
}

.graph-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    animation: nodeGrow 0.5s ease forwards;
    transform: scale(0);
}

@keyframes nodeGrow {
    to { transform: scale(1); }
}

.comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.comparison-item {
    text-align: center;
    padding: 1rem;
}

.comparison-item .time {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-item.bad .time {
    color: #e74c3c;
    text-decoration: line-through;
    opacity: 0.6;
}

.comparison-item.good .time {
    color: var(--secondary);
}

.comparison-item .label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.vs {
    font-weight: 700;
    color: var(--primary);
}

/* Demo section */
.demo-wrapper {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.demo-section {
    max-width: 600px;
    margin: 0 auto;
}

.demo-tweet-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.dark .demo-tweet-box {
    background: rgba(255,255,255,0.05);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tweet-handle {
    font-weight: 600;
}

.tweet-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.tweet-input:focus {
    outline: none;
    border-color: var(--primary);
}

.dark .tweet-input {
    background: rgba(255,255,255,0.05);
    color: white;
}

.generate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.demo-hint {
    margin-top: 1.5rem;
    text-align: center;
}

.demo-hint > p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.demo-examples {
    margin-top: 1rem;
}

.example-label {
    font-size: 0.85rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 0.75rem;
}

.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-chip {
    padding: 6px 14px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-chip:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--primary);
}

.dark .example-chip {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.dark .example-chip:hover {
    background: rgba(255,255,255,0.1);
}

/* Ask section */
.ask-wrapper {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.ask-section {
    max-width: 600px;
    margin: 0 auto;
}

.ask-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.term-sheet {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.dark .term-sheet {
    background: rgba(255,255,255,0.05);
}

.term-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.term-item:last-child {
    border-bottom: none;
}

.term-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.check-mark {
    font-size: 1.2rem;
}

/* CTA section */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.cta-primary {
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary), #FF8E8E);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.cta-secondary {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--secondary);
    color: white;
}

.share-btn {
    padding: 10px 20px;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    border-radius: 20px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1DA1F2;
    font-weight: 500;
}

.share-btn:hover {
    background: rgba(29, 161, 242, 0.2);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0,0,0,0.02);
    position: relative;
    z-index: 1;
}

.dark .footer {
    background: rgba(0,0,0,0.2);
}

.footer-main {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-sub {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #FF8E8E);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 500;
    z-index: 1000;
    animation: toastIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .stats-row {
        gap: 1.5rem;
    }
    
    .thesis-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        right: 10px;
        height: 60px;
    }
    
    .cta-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .pipeline-visual {
        justify-content: center;
    }
    
    .comparison-visual {
        flex-direction: column;
    }
}