/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f0f23;
    --light-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-ai {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-highlight {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* AI Brain Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-brain {
    width: 400px;
    height: 400px;
    position: relative;
}

.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.neuron {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.neuron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: pulse 2s ease-in-out infinite;
}

.neuron:nth-child(1) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.neuron:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.neuron:nth-child(3) { top: 100%; left: 50%; transform: translate(-50%, -100%); }
.neuron:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
.neuron:nth-child(5) { top: 50%; left: 100%; transform: translate(-100%, -50%); }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Capabilities */
.capabilities {
    background: var(--light-bg);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.capability-card:hover::before {
    opacity: 0.1;
}

.capability-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.capability-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.capability-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.showcase-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

/* Demo header badge */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.demo-header h3 {
    margin: 0;
}

.demo-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-1);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(99,102,241,0.35);
}

.demo-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Reasoning demo */
.reasoning-demo {
    background: #1e1e2e;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
}

.reasoning-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reasoning-input input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 0.875rem;
    color: var(--text-primary);
    outline: none;
}

.reasoning-input input::placeholder {
    color: #7c7c94;
}

.reasoning-steps {
    list-style: decimal;
    margin-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.reasoning-steps li {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 0.75rem 0.75rem 0.875rem;
    border-radius: 0.375rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reasoning-steps li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Multi‑modal preview */
.multimodal-preview {
    display: grid;
    gap: 0.75rem;
}

.preview-stage {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.5rem;
    min-height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.preview-content {
    padding: 1rem 1.25rem;
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.preview-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.preview-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.preview-text {
    color: var(--text-secondary);
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.showcase-item h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.code-demo {
    background: #1e1e2e;
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-header {
    background: #2a2a3e;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-lang {
    color: var(--primary-color);
    font-weight: 600;
}

.generate-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: scale(1.05);
}

.code-block {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.chart-container {
    height: 250px;
    margin-bottom: 1rem;
}

.art-canvas {
    height: 300px;
    background: #1e1e2e;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.generative-art {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Contact Form */
.contact {
    background: var(--light-bg);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 120px;
}

.phone-group {
    grid-column: span 2;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* CAPTCHA */
.captcha-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#captchaCanvas {
    background: white;
    border-radius: 0.5rem;
}

.refresh-captcha {
    background: var(--gradient-1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.refresh-captcha:hover {
    transform: rotate(180deg);
}

#captchaInput {
    max-width: 200px;
}

/* Submit Button */
.btn-submit {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.send-icon {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .ai-brain {
        width: 300px;
        height: 300px;
    }
    
    .nav-links {
        display: none;
    }
    
    .phone-group {
        grid-column: span 1;
    }
}