:root {
    --bg-start: #f3e8ff;
    --bg-end: #e0e7ff;
    --primary-text: #1e1b4b;
    --secondary-text: #4338ca;
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-border: rgba(255, 255, 255, 0.8);
    --orb-1: #d8b4fe;
    --orb-2: #a5b4fc;
    --orb-3: #fda4af;
    --scroll-indicator: #6366f1;
    --feature-icon-bg: rgba(129, 140, 248, 0.2);
    --footer-bg: rgba(255, 255, 255, 0.2);
    --footer-border: rgba(0, 0, 0, 0.1);
    --text-muted: #475569;
    --mouse-x: 0;
    --mouse-y: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-start: #1e1b4b;
        --bg-end: #0c0a1d;
        --primary-text: #e0e7ff;
        --secondary-text: #a5b4fc;
        --card-bg: rgba(23, 22, 45, 0.4);
        --card-border: rgba(129, 140, 248, 0.2);
        --orb-1: #581c87;
        --orb-2: #312e81;
        --orb-3: #831843;
        --scroll-indicator: #a5b4fc;
        --feature-icon-bg: rgba(129, 140, 248, 0.1);
        --footer-bg: rgba(10, 9, 28, 0.2);
        --footer-border: rgba(255, 255, 255, 0.1);
        --text-muted: #94a3b8;
    }
}


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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-start);
    background-image: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: var(--primary-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    transition: transform 0.8s ease-out;
}

.orb1 {
    width: 400px;
    height: 400px;
    background-color: var(--orb-1);
    top: -10%;
    left: -10%;
    transform: translate(calc(var(--mouse-x) * -20px), calc(var(--mouse-y) * -30px));
}

.orb2 {
    width: 500px;
    height: 500px;
    background-color: var(--orb-2);
    bottom: -20%;
    right: -15%;
     transform: translate(calc(var(--mouse-x) * 40px), calc(var(--mouse-y) * 20px));
}

.orb3 {
    width: 350px;
    height: 350px;
    background-color: var(--orb-3);
    top: 50%;
    left: 40%;
    transform: translate(calc(var(--mouse-x) * -50px), calc(var(--mouse-y) * 50px));
}


#scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
}

.scroll-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
}

#aiko-sticky-container {
    position: fixed;
    top: 50%;
    left: 75%; 
    width: 350px;
    height: 350px;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                top 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#aiko-character {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes wave-hand {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(15deg); }
    80% { transform: rotate(-5deg); }
}

.goodbye-wave {
    animation: wave-hand 0.8s ease-in-out;
}


#aiko-svg {
    filter: drop-shadow(0 20px 25px rgba(99, 102, 241, 0.25));
}

#aiko-mouth {
    transition: d 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#aiko-blush {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
#aiko-blush.blushing {
    opacity: 0.7;
}

.hero-section {
    min-height: 100vh;
}

.hero-content {
    max-width: 550px;
    text-align: left;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s, transform 0.7s;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hero-section.is-visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 450px;
    margin-top: 1rem;
}

/* Content Sections */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.align-left .content-card {
    margin-right: auto;
}
.align-right .content-card {
    margin-left: auto;
}
.align-center .content-card {
    margin: 0 auto;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: 2rem;
    padding: 3rem;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s 0.2s, transform 0.7s 0.2s;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.content-card.wide-card {
    max-width: 650px;
}

.scroll-section.is-visible .content-card {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--secondary-text), #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
h2 { font-size: 2.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--secondary-text); }
p { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); }

/* UI Mockups */
.ui-mockup {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.05);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
}
.chat-mockup { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-bubble { padding: 0.5rem 1rem; border-radius: 1.25rem; font-size: 0.9rem; max-width: 80%; }
.chat-bubble.user { background: #6366f1; color: white; border-bottom-right-radius: 0.25rem; align-self: flex-end; }
.chat-bubble.aiko { background: #eef2ff; color: #4338ca; border-bottom-left-radius: 0.25rem; align-self: flex-start; }
@media (prefers-color-scheme: dark) {
    .chat-bubble.aiko { background: #312e81; color: #c7d2fe; }
}

/* Learning Section Enhanced Mockups */
.learning-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.learning-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--primary-text); opacity: 0.9; }

.learning-journey-mockup {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
}
.journey-path {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--secondary-text) 0, var(--secondary-text) 8px, transparent 8px, transparent 16px);
    transform: translateY(-50%);
    z-index: 1;
}
.journey-node {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.node-icon { font-size: 1.5rem; }
.node-status {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.journey-node.completed { border-color: #22c55e; }
.journey-node.current {
    border-color: #6366f1;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.aiko-on-map {
    position: absolute;
    top: -25px;
    width: 24px;
    height: 24px;
    background: var(--secondary-text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aiko-on-map svg { width: 16px; height: 16px; fill: currentColor; }
.journey-node.locked {
    opacity: 0.5;
    filter: grayscale(80%);
}

.quiz-mockup { text-align: center; }
.quiz-question { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.quiz-options { display: flex; justify-content: center; gap: 1rem; }
.quiz-option {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.quiz-option:hover { transform: translateY(-2px); }
.quiz-option.correct {
    background: #dcfce7;
    border: 2px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}


/* Skin Showcase Mockup */
.skin-showcase { display: flex; justify-content: space-around; align-items: center; }
.skin-icon { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--card-border); background-position: center; background-size: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.skin-icon.default { background-color: #c4b5fd; }
.skin-icon.classic { background-color: #d1d5db; }
.skin-icon.wood { background-color: #a16207; }
.skin-icon.mecha { background-color: #4b5563; }
.skin-icon.ai-plus { background-color: rgba(0,0,0,0.1); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--secondary-text); }


/* Missions Mockup */
.missions-mockup { display: flex; flex-direction: column; gap: 0.75rem; }
.mission-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.9rem; background: rgba(0,0,0,0.03); }
.mission-item.completed { text-decoration: line-through; opacity: 0.6; }
.reward { font-weight: bold; color: #f59e0b; }

/* Status Grid */
.status-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.status-grid p { font-size: 0.95rem; color: var(--text-muted); }

/* Shop Grid */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.shop-card { background: rgba(255, 255, 255, 0.5); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--card-border); }
@media (prefers-color-scheme: dark) {
    .shop-card { background: rgba(0, 0, 0, 0.2); }
}
.shop-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.shop-card p { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.testimonial-card { background: rgba(255, 255, 255, 0.5); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--card-border); }
@media (prefers-color-scheme: dark) {
    .testimonial-card { background: rgba(0, 0, 0, 0.2); }
}
.testimonial-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--card-border); }
.testimonial-header strong { font-weight: 600; color: var(--primary-text); }
.testimonial-header span { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-card p { font-style: italic; color: var(--text-muted); }


/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.download-button {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background-color: #111;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.download-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}
.download-button svg {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    fill: currentColor;
}
.download-button div {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.download-button span {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.8;
}
.download-button strong {
    font-size: 1.1rem;
    line-height: 1.2;
}


/* CTA Button */
.cta-button { position: relative; overflow: hidden; margin-top: 2rem; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; background-color: var(--secondary-text); color: white; border: none; border-radius: 0.75rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(67, 56, 202, 0.3); }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(67, 56, 202, 0.4); }
.cta-button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: rgba(255,255,255,0.5); border-radius: 50%; transform: translate(-50%,-50%) scale(0); transition: transform 0.5s, opacity 1s; }
.cta-button:active::after { transform: translate(-50%,-50%) scale(100); opacity: 0; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); opacity: 0; animation: fade-in 1s 1s forwards; }
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.mouse { width: 24px; height: 40px; border: 2px solid var(--scroll-indicator); border-radius: 12px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background-color: var(--scroll-indicator); border-radius: 2px; animation: scroll-wheel 2s infinite; }
@keyframes scroll-wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* Footer */
footer {
    position: relative;
    padding: 4rem 2rem 2rem;
    background-color: var(--footer-bg);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.footer-column h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary-text); }
.footer-column p { font-size: 0.9rem; line-height: 1.6; }
.footer-column ul { list-style: none; }
.footer-column ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; padding: 0.25rem 0; display: inline-block; transition: color 0.2s; }
.footer-column ul li a:hover { color: var(--secondary-text); }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { color: #64748b; transition: color 0.2s; }
.social-icons a:hover { color: var(--secondary-text); }
.social-icons svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-copyright { text-align: center; font-size: 0.9rem; color: var(--text-muted); }

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-text);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}
#scrollToTopBtn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    background-color: #4f46e5;
}
#scrollToTopBtn svg {
    width: 100%;
    height: 100%;
}


/* Desktop-specific styles */
@media (min-width: 901px) {
    #scroll-container {
        scroll-snap-type: y mandatory;
    }
    .scroll-section {
        height: 100vh;
    }
}


/* Mobile Responsiveness */
@media (max-width: 900px) {
    .scroll-section {
        height: auto;
        min-height: 80vh;
        flex-direction: column;
        justify-content: center;
        padding: 4rem 1.5rem; 
    }
     .hero-section {
        min-height: 100vh;
        justify-content: center;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-content p {
        margin: 1rem auto;
        font-size: 1rem;
        max-width: 100%;
    }
    
    #aiko-sticky-container {
        position: relative;
        order: -1; 
        width: 250px;
        height: 250px;
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%);
        margin-bottom: 1rem;
    }

    #aiko-character {
        animation: aiko-mobile-float 6s ease-in-out infinite;
    }

    @keyframes aiko-mobile-float {
        0%, 100% { transform: translateY(0) scale(1) rotate(0); }
        25% { transform: translateY(-10px) scale(1.05) rotate(5deg); }
        50% { transform: translateY(0) scale(1) rotate(0); }
        75% { transform: translateY(-10px) scale(1.05) rotate(-5deg); }
    }

    .content-wrapper {
        width: 100%;
        margin: 0;
        order: 2;
        justify-content: center; /* Center content cards on mobile */
    }
    .align-left .content-card, .align-right .content-card {
        margin: 0;
    }

    .content-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    p { font-size: 1rem; }
    h1, .hero-content h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .feature-text p, .status-grid p, .shop-card p, .footer-column p, .footer-column ul li a, .footer-copyright, .testimonial-card p { font-size: 0.9rem; }
    
    .scroll-indicator { display: none; }
    footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-container { 
        grid-template-columns: 1fr; 
        text-align: left;
    }
    .social-icons { justify-content: flex-start; }

    .download-buttons {
        flex-direction: column;
    }
    .testimonials-grid { grid-template-columns: 1fr; }

    .learning-journey-mockup {
        height: auto;
        padding: 1rem;
    }
    
    .quiz-question { font-size: 1.2rem; }
    .quiz-option { font-size: 1.2rem; }

}

@media (max-width: 480px) {
    .scroll-section { padding: 3rem 1rem; }
    .content-card { padding: 1.5rem; }
    h1, .hero-content h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .shop-grid { grid-template-columns: 1fr; }
    .features-list li { flex-direction: column; align-items: flex-start; text-align: left; }
    #scrollToTopBtn { right: 15px; bottom: 15px; width: 45px; height: 45px; }
}