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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --accent: #00ff88;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #00ccff;
    --text: #ffffff;
    --text-muted: #888;
    --gradient: linear-gradient(135deg, #00ff88, #00ccff, #ff00ff);
}

html {
    scroll-behavior: smooth;
}

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

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

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: animateStars 50s linear infinite;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%23ffffff" cx="50" cy="50" r="1" opacity="0.5"/></svg>') repeat;
    background-size: 100px 100px;
}

.stars2 {
    animation-duration: 100s;
    background-size: 150px 150px;
    opacity: 0.5;
}

.stars3 {
    animation-duration: 150s;
    background-size: 200px 200px;
    opacity: 0.3;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

.tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Terminal in Hero */
.hero-terminal {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.terminal-header {
    background: #2d2d3a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
}

.prompt {
    color: var(--accent);
}

.cmd {
    color: #fff;
}

.output {
    color: var(--text-muted);
}

.success {
    color: var(--accent);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    background: var(--accent);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: #000;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.fire {
    animation: fire 0.5s infinite alternate;
}

@keyframes fire {
    from { filter: brightness(1); }
    to { filter: brightness(1.5); }
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.code-snippet {
    background: #0a0a0f;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Screencast Section */
.screencast-section, .meta-section {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.05), transparent);
}

.screencast-container {
    max-width: 1000px;
    margin: 0 auto;
}

.screencast-frame {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 255, 136, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.screencast-frame.smaller {
    max-width: 800px;
    margin: 0 auto;
}

.frame-header {
    background: #2d2d3a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-explanation {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.meta-explanation h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Conversation Highlight */
.conversation-highlight {
    max-width: 700px;
    margin: 3rem auto;
}

.conversation-highlight h3 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

.chat-bubble {
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-style: italic;
}

.chat-bubble.user {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    margin-right: 3rem;
}

.chat-bubble.ai {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.1));
    margin-left: 3rem;
    border: 1px solid var(--accent-tertiary);
}

/* How It Works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: 3rem auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
}

.step-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.step-content code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.05), transparent);
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-hint {
    margin-top: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.cta-hint code {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent);
}

.meta-note {
    font-style: italic;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .chat-bubble.user,
    .chat-bubble.ai {
        margin-left: 0;
        margin-right: 0;
    }
}
