:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #10b981; /* Emerald */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-tertiary: #a855f7; /* Purple */
    --accent-glow: rgba(16, 185, 129, 0.5);
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: #334155;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-primary);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-primary);
}

.navbar nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.navbar nav a:not(.btn-primary) {
    color: var(--text-secondary);
    font-weight: 500;
}

.navbar nav a:not(.btn-primary):hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background mesh gradient simulation */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-slogan {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-style: italic;
    background: rgba(59, 130, 246, 0.1); /* Blue tint */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.highlight-slogan i {
    width: 20px;
    height: 20px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-image {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.browser-mockup {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.browser-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }

#app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    /* If image is missing */
    min-height: 200px;
    object-fit: cover;
}

/* Fallback if no image */
.overlay-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    pointer-events: none;
    display: none; /* Hide by default, script will show if image fails */
}

img[src=""] + .overlay-placeholder, img:not([src]) + .overlay-placeholder {
    display: block;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #0b1120; /* Slightly darker */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-card.highlight {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.85em;
}

/* Visual Identity Section */
.visual-identity {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list li i {
    color: var(--accent-primary);
    width: 20px;
}

.terminal-window {
    background: #000;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.line {
    margin-bottom: 0.5rem;
    display: block;
}

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

.success {
    color: var(--text-secondary);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-color);
}

.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.pricing-card.community {
    border-top: 4px solid var(--accent-primary);
}

.pricing-card.pro {
    border-top: 4px solid var(--accent-secondary);
    opacity: 0.8;
}

.pricing-card.ultra {
    border-top: 4px solid var(--accent-tertiary);
    opacity: 0.8;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.full-width {
    width: 100%;
    justify-content: center;
}


/* Roadmap Section */
.roadmap {
    padding: 100px 0;
    background-color: #0b1120;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item.active::after {
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

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

.date {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Responsive Roadmap */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 23px !important; /* Force left position for mobile */
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
}

/* AI Showcase */
.ai-showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.error {
    color: #ef4444;
}

.ai-insight {
    margin-top: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    animation: slideDown 0.5s ease-out;
}

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

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ai-header i {
    width: 16px;
    height: 16px;
}

.ai-insight p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ai-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.ai-suggestion .cmd {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.btn-run {
    background: var(--accent-secondary);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-run:hover {
    background: #2563eb;
}

/* API Guide Section */
.api-guide {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
    border-top: 1px solid var(--border-color);
}

.api-guide-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.api-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.api-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.api-benefits li i {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.api-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-secondary);
}

.step-number {
    background: var(--bg-color);
    color: var(--accent-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .api-guide-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-card:hover {
        transform: translateY(-5px);
    }
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand i {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar nav {
        display: none; /* Simple mobile hide for now */
    }
}

/* Identity Banner */
.identity-banner {
    padding: 2rem 0 4rem;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
}

.identity-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.identity-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.identity-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    line-height: 1.3;
}

.identity-content h2 i {
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .identity-content h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
