/* style.css */
:root {
    --bg-pure: #000000;
    --bg-elevated: #050508;
    --text-main: #ffffff;
    --text-muted: #888899;
    
    --neon-blue: #0066ff;
    --neon-purple: #9d00ff;
    --neon-cyan: #00e5ff;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Background Effects */
.bg-noise {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-blobs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: floatBlob 25s infinite alternate ease-in-out;
    opacity: 0.4;
}

.blob-purple {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    top: -10%; left: -10%;
}

.blob-blue {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    bottom: -20%; right: -10%;
    animation-delay: -12s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 15%) scale(1.2); }
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reusable Glass Styles */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* 1. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

.hero-content {
    position: relative;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.glass-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
}

.float-1 { width: 120px; height: 120px; top: -30px; left: -50px; transform: rotate(15deg); }
.float-2 { width: 80px; height: 80px; bottom: 20px; right: -40px; border-radius: 50%; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    opacity: 0.5;
    animation: fadePulse 2s infinite;
}

.mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px; height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 2. Story Sections */
.story {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.story-block {
    display: flex;
    margin-bottom: 10rem;
    align-items: center;
}

.story-block.alternate {
    justify-content: flex-end;
    text-align: right;
}

.story-text {
    max-width: 600px;
}

.step {
    font-size: 1rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* 3. Animated Product Demo */
.demo-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.demo-container {
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(0,0,0,0.2);
}

.demo-header .dots {
    display: flex; gap: 6px;
}

.demo-header .dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
}

.demo-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.demo-stage {
    flex-grow: 1;
    position: relative;
    padding: 2rem;
}

.scene {
    position: absolute;
    top: 2rem; left: 2rem; right: 2rem; bottom: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

/* Scene 1: Input */
.fake-input-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.1);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--neon-blue);
}

@keyframes blink { 50% { opacity: 0; } }

/* Scene 2: Loading */
.scene-loading { gap: 1rem; justify-content: flex-start; }
.shimmer-line {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-highlight) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.width-80 { width: 80%; }
.width-60 { width: 60%; }
.width-90 { width: 90%; }

@keyframes shimmer { to { background-position: -200% 0; } }

/* Scene 3: Generated Prompt */
.scene-generated { justify-content: flex-start; gap: 1.5rem; }
.code-block {
    font-family: monospace;
    font-size: 0.95rem;
    color: #a8b2d1;
    background: rgba(0,0,0,0.4);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 2px solid var(--neon-purple);
    white-space: pre-wrap;
    overflow-y: hidden;
}

.code-line { opacity: 0; animation: fadeInCode 0.3s forwards; }
@keyframes fadeInCode { to { opacity: 1; } }

.glass-btn {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    font-family: inherit;
}
.glass-btn.clicked {
    background: rgba(157, 0, 255, 0.2);
    border-color: var(--neon-purple);
}

/* Scene 4: Platforms */
.scene-platforms { align-items: center; }
.scene-title { margin-bottom: 2rem; color: var(--text-muted); font-weight: 500; }
.platform-cards {
    display: flex; gap: 1.5rem;
}
.p-card {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.4s;
}
.p-card.active-platform {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
    transform: scale(1.05);
}

/* Scene 5: Action (Fake UI) */
.scene-action { justify-content: flex-start; padding-top: 1rem; }
.fake-chat-ui { display: flex; flex-direction: column; gap: 1.5rem; }
.chat-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 85%;
}
.user-msg {
    align-self: flex-end;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-family: monospace;
    font-size: 0.8rem;
    color: #a8b2d1;
}
.ai-msg {
    align-self: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.typing-indicator { display: flex; gap: 5px; padding: 5px; }
.typing-indicator span {
    width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%;
    animation: typeBounce 1s infinite alternate;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typeBounce { to { transform: translateY(-5px); opacity: 0.5; } }

/* 4. Features Section */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

.glass-card:hover::before { opacity: 1; }

.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px; margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
}

.glow-blue { box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.4); }
.glow-purple { box-shadow: inset 0 0 20px rgba(157, 0, 255, 0.4); }
.glow-cyan { box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.4); }
.glow-mixed { box-shadow: inset 0 0 20px rgba(157, 0, 255, 0.3), inset 0 0 10px rgba(0, 102, 255, 0.3); }

.glass-card h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 500; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; }

/* 5. Final CTA Section */
.cta {
    padding: 8rem 2rem 12rem;
    display: flex; justify-content: center;
    position: relative; z-index: 10;
}

.cta-content {
    max-width: 600px; width: 100%;
    padding: 4rem 3rem; text-align: center;
}

.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }

.cta-form {
    display: flex; flex-direction: column; gap: 1rem;
    position: relative;
}

.input-wrapper { position: relative; width: 100%; }
.glass-input {
    width: 100%; padding: 1.2rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px; color: #fff;
    font-family: inherit; font-size: 1rem;
    outline: none; transition: border-color 0.3s;
}
.glass-input:focus { border-color: var(--neon-purple); }

.liquid-btn {
    position: relative; width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px; color: #fff;
    font-family: inherit; font-size: 1.1rem; font-weight: 600;
    cursor: pointer; overflow: hidden;
    transition: all 0.3s;
}

.btn-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 1;
}

.liquid-btn span { position: relative; z-index: 2; }
.liquid-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
.liquid-btn:hover .btn-glow { transform: translateX(100%); }

.success-message {
    margin-top: 1rem; color: var(--neon-cyan);
    font-size: 0.95rem; opacity: 0; transition: opacity 0.3s;
}

/* Ripple Effect */
.ripple {
    position: absolute; border-radius: 50%;
    transform: scale(0); animation: rippleAnim 0.6s linear;
    background: rgba(255,255,255,0.3); pointer-events: none; z-index: 1;
}

@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Responsiveness */
@media (min-width: 768px) {
    .cta-form { flex-direction: row; }
    .liquid-btn { width: auto; flex-shrink: 0; padding: 1.2rem 2.5rem; }
}

@media (max-width: 600px) {
    .platform-cards { flex-direction: column; gap: 0.5rem; }
    .p-card { padding: 1rem; text-align: center; }
}