/* Global Styles & Variables */
:root {
    --bg-color: #0d0d12;
    --text-color: #e0e0e0;
    --primary-color: #00ffcc;
    /* Neon Cyan */
    --secondary-color: #bd00ff;
    /* Neon Purple */
    --accent-color: #ff0055;
    /* Neon Pink */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.2);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

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

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(189, 0, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    will-change: transform;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.highlight {
    color: var(--primary-color);
}

/* Button & Badge */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #00ccff);
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    margin-left: 1rem;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links .btn-primary {
    padding: 0.5rem 1.5rem;
    margin-left: 2rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-text {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 500px;
}

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-shine);
}

/* Hero Visual Animation */
.hero-visual .card {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    color: #888;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.interaction-line {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    box-shadow: 0 0 10px rgba(85, 85, 85, 0.5);
}

.dot.user {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.dot.ai {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.line {
    flex: 1;
    height: 2px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: flow 2s infinite;
}

.line.dashed {
    background: transparent;
    border-bottom: 2px dashed #444;
}

.line.dashed::after {
    display: none;
    /* AI connection broken initially */
}

@keyframes flow {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.ai-line .line.dashed {
    border-color: var(--secondary-color);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Feature & Benefit Cards */
.feature-card {
    background: rgba(255, 0, 0, 0.05);
    /* Very subtle red tint */
    border: 1px solid rgba(255, 0, 85, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.feature-card h3 {
    color: var(--accent-color);
    margin: 1rem 0;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-card .icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.1);
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    margin-top: 4rem;
}

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

.footer-links a {
    margin-left: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 18, 0.95);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .grid-2,
    .grid-3,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-glow {
        filter: blur(40px);
        /* Lighter blur for reduced motion */
    }
}