:root {
    --bg-main: #020617; 
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --primary: #3B82F6; 
    --primary-hover: #2563EB; 
    --text-main: #F8FAFC; 
    --text-muted: #94A3B8; 
    --border: #1E293B; 
    --border-highlight: rgba(56, 189, 248, 0.5); 
    --grid-color: rgba(30, 41, 59, 0.5); 
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animations Layer */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.page-view {
    display: none;
    animation: fadeInPage 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.page-view.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; filter: blur(4px); transform: translateY(10px); }
    to { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }

.grid.stagger-group .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.grid.stagger-group .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.grid.stagger-group .scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.grid.stagger-group .scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.grid.stagger-group .scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.grid.stagger-group .scroll-animate:nth-child(6) { transition-delay: 0.6s; }
.grid.stagger-group .scroll-animate:nth-child(7) { transition-delay: 0.7s; }
.grid.stagger-group .scroll-animate:nth-child(8) { transition-delay: 0.8s; }

/* Background Gradients */
.glow-cyan, .glow-blue {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
}

.glow-cyan {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: #06B6D4;
}

.glow-blue {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: #3B82F6;
}

/* Background Grid Setup */
.retro-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}

/* Typography Base */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.01em;
}

p { color: var(--text-muted); }

.gradient-text-heading {
    background: linear-gradient(180deg, #FFFFFF 0%, #5EEAD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, #38BDF8, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 40px;
    width: 65px;
}

/* Gradient Animated Logo Text */
.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #FFFFFF, #38BDF8, #2563EB, #FFFFFF);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine 4s linear infinite;
    display: inline-block;
}

@keyframes shine {
    0% { background-position: 100% 0; }
    100% { background-position: -200% 0; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover { color: var(--text-main); }
.nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08); 
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #0F172A;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.dropdown-menu a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05); 
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), #60A5FA);
    color: white;
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-hover), #3B82F6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); 
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
    transform: translateY(-1px);
}
.nav-cta { padding: 0.5rem 1.25rem; }

/* Main Layout */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Shared Header Tag / Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
}
.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 768px;
    margin: 0 auto 3rem;
    color: #CBD5E1; 
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; 
}

/* Grid Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cards-grid-small { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(to bottom right, var(--border-highlight), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    border-color: transparent; 
}
.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    height: 3.5rem;
    width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1); 
    color: #38BDF8; 
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-small { padding: 1.5rem; }
.card-small h3 { margin-bottom: 0.5rem; }

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.card p { font-size: 0.95rem; }

.section-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    flex-wrap: wrap; 
}

/* Details Sections */
.agent-details { padding: 4rem 0; text-align: center; border-top: 1px solid var(--border); }
.detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
}
.stat-card { text-align: center; }
.stat-card h3 { font-size: 2.5rem; color: #38BDF8; margin-bottom: 0.5rem; }
.stat-card p { font-weight: 500; color: var(--text-main); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card { padding: 2.5rem; }
.stars { color: #FBBF24; font-size: 1.25rem; letter-spacing: 2px; margin-bottom: 1rem; }
.quote { font-size: 1.05rem; font-style: italic; margin-bottom: 2rem; color: #E2E8F0; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.author { display: flex; flex-direction: column; }
.name { font-weight: 600; color: var(--text-main); }
.title { font-size: 0.85rem; color: var(--text-muted); }

/* Support/Contact Box */
.support-cta {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem;
    margin: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Contact Us Grid */
.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    text-align: left;
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.form-group input, .form-group textarea {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.submit-btn { width: fit-content; margin-top: 1rem; }

.contact-sidebar { display: flex; flex-direction: column; gap: 2rem; margin-top:1.5rem;}
.contact-info-card { display: flex; gap: 1.5rem; align-items: center; }
.contact-info-card .contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-card p { font-size: 0.95rem; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #020617; /* match background */
    padding: 5rem 2rem 2rem;
    font-family: inherit;
}

.footer-main-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 370px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.logo-titles {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
    color: white;
}

.footer-logo-subtext {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.1em;
}

.brand-desc {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: #94A3B8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-links-grid {
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end; /* Align right */
}

@media (max-width: 900px) {
    .footer-links-grid {
        justify-content: flex-start;
        gap: 3rem;
    }
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-column h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.link-column a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.link-column a:hover {
    color: white;
}

.footer-contact-row {
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.footer-contact-row h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* AI Agents Dedicated Pages Layouts */
.agent-page-layout {
    padding-top: 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.agent-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

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

.split-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.split-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.stats-grid-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

.stats-grid-hero .stat-card {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-grid-hero .stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.3);
}

.stats-grid-hero .stat-card h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-grid-hero .stat-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Responsive Constraints */
@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(12px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active .nav-cta { display: inline-flex; margin-top: 1rem; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 0;
        display: none;
        text-align: center;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .hero { padding-top: 8rem; min-height: auto; }
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
    .footer-links { gap: 2rem; justify-content: space-between; }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .split-left { align-items: center; }
    .agent-hero h1 { text-align: center !important; }
    .subtitle { text-align: center !important; }
    .hero-ctas { justify-content: center !important; }
}
@media (max-width: 600px) {
    .support-cta { padding: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
