:root {
    --berry-pink: #E91E63;
    --berry-purple: #9C27B0;
    --berry-coral: #FF6B6B;
    --berry-cream: #FFF9F9;
    --berry-dark: #2D1B2E;
    --berry-light: #FCE4EC;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-pink: rgba(233, 30, 99, 0.15);
}

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

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: var(--berry-cream);
    color: var(--berry-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 39, 176, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--berry-pink) 0%, var(--berry-purple) 100%);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: headerBg 20s linear infinite;
}

@keyframes headerBg {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60px); }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-berry {
    font-size: 4rem;
    animation: berryBounce 2s ease-in-out infinite;
}

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

.logo-text h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.subtitle-note {
    opacity: 0.8;
    font-size: 0.9em;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.progress-step:hover {
    background: var(--berry-light);
}

.progress-step.active {
    background: var(--berry-pink);
    color: white;
}

.progress-step.completed {
    border-color: var(--berry-pink);
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--berry-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-indicator {
    background: white;
    color: var(--berry-pink);
}

.progress-step.completed .step-indicator {
    background: var(--berry-pink);
    color: white;
}

.step-label {
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

/* Cards Column */
.cards-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tutorial Card */
.tutorial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-pink);
    border: 1px solid rgba(233, 30, 99, 0.1);
    animation: cardSlide 0.5s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-pink);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.card-header:hover {
    background: rgba(233, 30, 99, 0.05);
}

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

.card-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--berry-dark);
}

.card-chevron {
    font-size: 1.5rem;
    color: var(--berry-pink);
    transition: transform 0.3s ease;
}

.tutorial-card.open .card-chevron {
    transform: rotate(180deg);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.tutorial-card.open .card-content {
    max-height: 800px;
    padding: 0 1.5rem 1.5rem;
}

.card-intro {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--berry-light);
    border-radius: 12px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .app-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

.showcase-item {
    background: linear-gradient(135deg, var(--berry-light) 0%, white 100%);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.showcase-item:hover,
.showcase-item.active {
    border-color: var(--berry-pink);
    transform: scale(1.02);
}

.showcase-item.active {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(233, 30, 99, 0); }
}

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

.showcase-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--berry-dark);
}

/* Tweet Composer */
.tweet-composer {
    background: #15202b;
    border-radius: 16px;
    padding: 1rem;
    position: relative;
}

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

.mention {
    color: #1DA1F2;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.platform-badge {
    color: white;
    font-size: 1.25rem;
}

.composer-input {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
}

.composer-input::placeholder {
    color: #8899a6;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #38444d;
}

.berry-meter {
    flex: 1;
    max-width: 150px;
    height: 8px;
    background: #38444d;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.berry-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--berry-pink), var(--berry-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.meter-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: #8899a6;
    white-space: nowrap;
}

.quality-badge {
    background: linear-gradient(90deg, var(--berry-pink), var(--berry-coral));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.composer-tips {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--berry-dark);
}

/* Examples */
.examples-section {
    margin-top: 1.5rem;
}

.examples-section h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.example {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.example.good {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
}

.example.vague {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
}

.example-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    font-style: normal;
}

.example.good .example-badge { color: #4CAF50; }
.example.vague .example-badge { color: #F44336; }

/* Build Timeline */
.build-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--berry-light);
    border-radius: 12px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.timeline-stage.active {
    opacity: 1;
}

.timeline-stage.current {
    background: linear-gradient(90deg, var(--berry-pink), var(--berry-purple));
    color: white;
    animation: stagePulse 0.5s ease;
}

@keyframes stagePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.stage-emoji {
    font-size: 1.5rem;
}

.stage-label {
    font-weight: 500;
}

.demo-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--berry-pink) 0%, var(--berry-purple) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.demo-button:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 20px var(--shadow-pink);
}

.demo-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.demo-button:active:not(:disabled) {
    transform: scale(0.98);
}

/* Live Demo */
.live-demo {
    text-align: center;
}

.subdomain-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    background: var(--berry-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1rem;
}

.subdomain-prefix {
    color: #888;
}

.subdomain-name {
    color: var(--berry-coral);
    font-weight: 600;
}

.subdomain-suffix {
    color: var(--berry-pink);
}

.live-demo p {
    color: #666;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.copy {
    background: var(--berry-light);
    color: var(--berry-dark);
}

.share-btn:hover {
    transform: scale(1.05);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tips-section,
.badges-section,
.secret-tips {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow-pink);
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.tips-section h3,
.badges-section h3,
.secret-tips h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--berry-dark);
}

.floating-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--berry-light);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    animation: tipSlide 0.4s ease-out both;
}

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

.shake-button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--berry-coral) 0%, var(--berry-pink) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.shake-button:hover {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.random-tip {
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: 2px dashed var(--berry-pink);
}

.secret-tips {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    animation: secretReveal 0.5s ease;
}

@keyframes secretReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.secret-tips h3 {
    color: #FFD93D;
}

.secret-tip {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--berry-pink) 0%, var(--berry-purple) 100%);
    color: white;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    margin-top: 3rem;
}

.gallery-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.gallery-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-pink);
    border: 1px solid rgba(233, 30, 99, 0.1);
    animation: gallerySlide 0.5s ease-out both;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

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

.gallery-preview {
    background: linear-gradient(135deg, var(--berry-light) 0%, white 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-icon {
    font-size: 3rem;
}

.time-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--berry-pink);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-info {
    padding: 1rem;
}

.gallery-info h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-info p {
    color: #666;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-pink);
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--berry-dark);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(233, 30, 99, 0.05);
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    animation: berryBounce 0.5s ease;
}

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

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--berry-dark) 0%, #1a1a2e 100%);
    border-radius: 24px;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--berry-pink) 0%, var(--berry-coral) 100%);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5);
}

/* Footer */
.footer {
    background: var(--berry-dark);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--berry-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-made {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.confetti-particle {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
    }
    
    .logo-berry {
        font-size: 3rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .progress-tracker {
        padding: 1rem;
        gap: 0.25rem;
    }
    
    .progress-step {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .step-indicator {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }
    
    .progress-step {
        padding: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
}