/* --- Variables & Reset --- */
:root {
    /* Colors */
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --text-white: #ffffff;
    --text-heading: #e2e8f0;
    --text-body: #9ca3af;
    --accent-primary: #00e5ff;
    --accent-secondary: #10b981;
    --accent-glow: rgba(0, 229, 255, 0.4);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #00b4cc);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- Header --- */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white);
}

.logo-img {
    height: 32px;
    width: auto;
}
.logo-img-sm {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Pain vs Solution --- */
.pain-solution {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f1629);
}

.split-layout {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.split-card {
    flex: 1;
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
}

.chaos {
    border-left: 2px solid #ef4444; /* Red for chaos/pain */
}

.flow {
    border-left: 2px solid var(--accent-secondary); /* Green for solution */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.01));
}

.split-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chaos h3 { color: #f87171; }
.flow h3 { color: var(--accent-secondary); }

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.divider-line {
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.divider-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

/* --- Services --- */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 24px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-white);
}

/* --- Tech Stack Marquee --- */
.tech-stack {
    padding: 60px 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content {
    display: inline-block;
}

.tech-item {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin: 0 30px;
    color: var(--text-gray);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Comparison Table --- */
.comparison {
    padding: 100px 0;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th, 
.comparison-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.casagentic-way {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.comparison-table td {
    font-size: 1.1rem;
}

.comparison-table td i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: #05080f;
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Hide nav on mobile for now, or implement a mobile drawer */
    }
    
    .hero-title { font-size: 2.5rem; }
    
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; text-align: center; }

    .split-layout {
        flex-direction: column;
    }

    .divider { 
        flex-direction: row; 
        width: 100%; 
        height: 20px; 
    }
    
    .divider-line { width: 40%; height: 2px; }

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