/* Base Variables & Theme */
:root {
    /* Colors - Enterprise Dark Theme */
    --bg-dark: #030712;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --border-color: #1e293b;
    --border-highlight: #334155;
    
    /* Brand Colors */
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-secondary: #0ea5e9;
    --brand-accent: #8b5cf6;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-accent: #e2e8f0;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Effects */
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(79, 70, 229, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15), transparent 30%),
        radial-gradient(circle at 60% 30%, rgba(14, 165, 233, 0.1), transparent 25%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(8px);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12rem 2rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: full;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-secondary);
    margin-bottom: 2rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--brand-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-abstract-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
    animation: float 10s ease-in-out infinite;
}

.neural-nodes circle {
    animation: pulse-node 4s infinite alternate;
}

.neural-nodes circle:nth-child(2) { animation-delay: 1s; }
.neural-nodes circle:nth-child(3) { animation-delay: 2s; }
.neural-nodes circle:nth-child(4) { animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes pulse-node {
    0% { r: 3; opacity: 0.5; filter: brightness(1); }
    100% { r: 6; opacity: 1; filter: brightness(1.5); }
}

/* Sections General */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

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

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.solution-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-subtle), 0 10px 30px -10px rgba(0,0,0,0.5);
}

.solution-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Security Section */
.security-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-secondary);
    border-radius: 8px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

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

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.about-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--brand-primary);
}

.about-cta {
    background: rgba(3, 7, 18, 0.5);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    background: var(--bg-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 4rem 1.5rem;
    }

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

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    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;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.hidden {
    display: none !important;
}

.modal-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    margin-bottom: 1.5rem;
}

.modal-success h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

.mt-4 { margin-top: 2rem; }

/* Subpage Hero */
.hero-subpage {
    padding: 10rem 2rem 6rem;
    min-height: 60vh;
    justify-content: center;
}

/* Feature Deep-Dive (Alternating Layout) */
.feature-deep-dive {
    padding: 4rem 2rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.deep-dive-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    justify-content: space-between;
}

.deep-dive-row.reverse {
    flex-direction: row-reverse;
}

.deep-dive-text {
    flex: 1;
    max-width: 500px;
}

.deep-dive-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.deep-dive-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-accent);
    font-weight: 500;
}

.feature-bullets li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
}

.deep-dive-visual {
    flex: 1;
    position: relative;
}

.deep-dive-visual::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    z-index: -1;
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.deep-dive-row:hover .deep-dive-visual::before {
    transform: rotate(0deg) scale(1.02);
}

.deep-dive-row.reverse .deep-dive-visual::before {
    transform: rotate(2deg);
}

.deep-dive-row.reverse:hover .deep-dive-visual::before {
    transform: rotate(0deg) scale(1.02);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), var(--shadow-glow);
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Call to Action Banner */
.cta-banner {
    max-width: 1000px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

.cta-banner-content {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(3, 7, 18, 0.5) 100%);
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.5;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

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

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

@media (max-width: 900px) {
    .deep-dive-row, .deep-dive-row.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .deep-dive-text {
        max-width: 100%;
    }

    .feature-bullets {
        align-items: center;
        text-align: left;
    }
}
