/* GameMaker AI - Landing Page Styles */
/* Modern, animated, visually stunning design */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --indigo-500: #6366f1;
    --orange-500: #f97316;
    --green-500: #22c55e;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--purple-500);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--cyan-500);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--blue-500);
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--indigo-500);
    bottom: 10%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: var(--purple-600);
    top: 60%;
    left: 20%;
    animation-delay: -8s;
}

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

.glow-orb {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 8px;
    height: 8px;
    background: var(--cyan-500);
    box-shadow: 0 0 20px var(--cyan-500), 0 0 40px var(--cyan-500);
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.orb-2 {
    width: 6px;
    height: 6px;
    background: var(--purple-500);
    box-shadow: 0 0 15px var(--purple-500), 0 0 30px var(--purple-500);
    top: 60%;
    right: 25%;
    animation-delay: -1s;
}

.orb-3 {
    width: 10px;
    height: 10px;
    background: var(--blue-500);
    box-shadow: 0 0 25px var(--blue-500), 0 0 50px var(--blue-500);
    bottom: 30%;
    left: 60%;
    animation-delay: -2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-ai {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--purple-500);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.btn-primary.large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.comic-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
}

.preview-panel {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    animation: panelFloat 6s ease-in-out infinite;
}

.preview-panel:nth-child(1) { animation-delay: 0s; }
.preview-panel:nth-child(2) { animation-delay: -1.5s; }
.preview-panel:nth-child(3) { animation-delay: -3s; }
.preview-panel:nth-child(4) { animation-delay: -4.5s; }

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

.panel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #252540);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
}

.panel-character {
    width: 50px;
    height: 70px;
    background: linear-gradient(180deg, var(--purple-500), var(--indigo-500));
    border-radius: 8px 8px 4px 4px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.panel-character.alt {
    background: linear-gradient(180deg, var(--cyan-500), var(--blue-500));
    left: auto;
    right: 20px;
}

.panel-scene {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a3e, #0a0a2e);
    position: relative;
}

.panel-scene::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.2));
}

.panel-action {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.3), transparent 70%);
}

.speech-bubble {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    color: #1a1a2e;
    max-width: 100px;
}

.speech-bubble.right {
    left: auto;
    right: 15px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    border: 6px solid transparent;
    border-top-color: white;
    border-bottom: 0;
}

.speech-bubble.right::after {
    left: auto;
    right: 15px;
}

.agent-indicators {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.agent-dot {
    position: relative;
    width: 12px;
    height: 12px;
    background: var(--cyan-500);
    border-radius: 50%;
    animation: agentPulse 2s ease-in-out infinite;
}

.agent-dot::before {
    content: attr(data-agent);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.dot-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--cyan-500);
    opacity: 0;
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s, transform 0.6s;
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
    border-color: rgba(168, 85, 247, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--purple-500);
}

.feature-icon.cyan { color: var(--cyan-500); }
.feature-icon.purple { color: var(--purple-500); }
.feature-icon.blue { color: var(--blue-500); }
.feature-icon.orange { color: var(--orange-500); }
.feature-icon.green { color: var(--green-500); }

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.tag {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--purple-500);
}

/* Workflow Section */
.workflow {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-steps {
    position: relative;
}

.workflow-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-500), var(--cyan-500));
    opacity: 0.3;
}

.workflow-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
}

.workflow-step.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s, transform 0.6s;
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-visual {
    width: 200px;
    flex-shrink: 0;
}

.prompt-preview {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    color: var(--cyan-500);
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.agents-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-chip {
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--purple-500);
}

.editor-preview {
    display: flex;
    gap: 8px;
}

.mini-panel {
    flex: 1;
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

.export-preview {
    display: flex;
    gap: 8px;
}

.export-type {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Agent Showcase */
.showcase {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.agent-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.3s, border-color 0.3s;
}

.agent-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s, transform 0.6s;
}

.agent-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-5px) scale(1);
}

.agent-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.agent-avatar.story { background: linear-gradient(135deg, #a855f7, #6366f1); }
.agent-avatar.character { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.agent-avatar.scene { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.agent-avatar.compositor { background: linear-gradient(135deg, #f97316, #eab308); }
.agent-avatar.animation { background: linear-gradient(135deg, #ec4899, #a855f7); }
.agent-avatar.voice { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.agent-avatar.comic { background: linear-gradient(135deg, #eab308, #f97316); }
.agent-avatar.verifier { background: linear-gradient(135deg, #14b8a6, #22c55e); }

.agent-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.agent-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 24px;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .feature-card.featured {
        grid-column: span 1;
    }

    .workflow-step {
        flex-direction: column;
    }

    .step-visual {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .comic-preview {
        padding: 12px;
        gap: 8px;
    }
}
