/* --- Variables & Reset --- */
:root {
    --primary: #4f46e5;
    /* Shifted to an AI-focused Indigo */
    --primary-hover: #4338ca;
    --secondary: #f4f5f7;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-dark: #0f172a;
    /* Deeper slate for a consulting firm feel */
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --chat-icon: #8b5cf6;
    --video-icon: #f59e0b;
    --voice-icon: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 0px;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    animation: pulse 0.6s ease-in-out;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--secondary);
    border-color: #cbd5e1;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* --- Navigation --- */
.navbar {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    flex-shrink: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.04);
}

.logo i {
    margin-right: 8px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease, filter 0.3s ease;
}

.logo:hover i {
    transform: rotate(360deg);
    color: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #4f46e5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shine 3s linear infinite;
    display: inline-block;
}

@keyframes logo-shine {
    to {
        background-position: 200% center;
    }
}

.text-primary {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.login-link:hover {
    color: var(--primary);
}

.login-link:active {
    transform: scale(0.95);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: var(--primary);
}

.mobile-only {
    display: none !important;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.05);
    animation: badge-glow 4s ease-in-out infinite alternate;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    animation: badge-shimmer 5s infinite ease-in-out;
}

.badge-icon {
    display: inline-block;
    animation: robot-float 2.5s ease-in-out infinite;
}

@keyframes badge-glow {
    0% {
        box-shadow: 0 0 10px rgba(79, 70, 229, 0.05), inset 0 0 0px rgba(79, 70, 229, 0);
        border-color: rgba(79, 70, 229, 0.15);
    }

    100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.2), inset 0 0 4px rgba(79, 70, 229, 0.15);
        border-color: rgba(79, 70, 229, 0.45);
    }
}

@keyframes badge-shimmer {
    0% {
        left: -150%;
    }

    30%,
    100% {
        left: 150%;
    }
}

@keyframes robot-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(8deg);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.hero-metrics div {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-metrics strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Mockup (Terminal/Log Style for AI) */
.mockup-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border);
    overflow: hidden;
}

.mockup-header {
    background: var(--secondary);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-body {
    padding: 24px;
    background: #fdfdfd;
}

.system-log p {
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(8px);
    animation: log-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.system-log p:nth-child(1) {
    animation-delay: 0.4s;
}

.system-log p:nth-child(2) {
    animation-delay: 1.4s;
}

.system-log p:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes log-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-call-mock {
    margin-top: 24px;
    background: var(--bg-dark);
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: status-glow 1.5s infinite alternate;
}

@keyframes status-glow {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
        box-shadow: 0 0 4px #10b981;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 12px #10b981;
    }
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.waveform .bar {
    width: 3px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    animation: wave-bar 1.2s ease-in-out infinite;
    transform-origin: bottom;
}

.waveform .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.waveform .bar:nth-child(2) {
    animation-delay: 0.4s;
}

.waveform .bar:nth-child(3) {
    animation-delay: 0.7s;
}

.waveform .bar:nth-child(4) {
    animation-delay: 0.2s;
}

.waveform .bar:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes wave-bar {

    0%,
    100% {
        transform: scaleY(0.2);
    }

    50% {
        transform: scaleY(1);
    }
}

/* --- Trusted By --- */
.trusted-by {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trusted-by p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    font-size: 2.5rem;
    color: #cbd5e1;
}

/* --- Services Section --- */
.products,
.use-cases {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 24px;
}

.chat-icon {
    background: var(--chat-icon);
}

.video-icon {
    background: var(--video-icon);
}

.voice-icon {
    background: var(--voice-icon);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary);
}

/* --- Technology/Platforms --- */
.platforms {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.platforms h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.platforms p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.platform-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.platform {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.platform:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Industries/Use Cases --- */
.use-cases {
    background: #f8fafc;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case-box {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.use-case-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.use-case-box h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.use-case-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Developer Section --- */
.developer-section {
    padding: 100px 0;
    background: white;
}

.developer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dev-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dev-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dev-code {
    background: #1e293b;
    /* Slate 800 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #0f172a;
    /* Slate 900 */
    padding: 12px 20px;
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.9rem;
}

.dev-code pre {
    padding: 24px;
    overflow-x: auto;
}

.dev-code code {
    font-family: 'Courier New', Courier, monospace;
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Python Syntax Colors */
.keyword {
    color: #c678dd;
}

/* Purple for Python keywords */
.string {
    color: #98c379;
}

/* Green for strings */
.comment {
    color: #5c6370;
    font-style: italic;
}

/* Grey for comments */
.function {
    color: #61afef;
}

/* Blue for functions */

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #06b6d4;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: white;
}

.footer-contact li {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #06b6d4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--bg-dark);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(8px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero {
        padding: 80px 0 60px 0;
    }

    .products,
    .use-cases,
    .developer-section,
    .platforms {
        padding: 60px 0;
    }

    .hero-grid,
    .developer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dev-code {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .dev-code pre {
        max-width: 100%;
        overflow-x: auto;
    }

    .mockup-window {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 40px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        pointer-events: none;
        border-top: 1px solid var(--border);
        overflow-y: auto;
        align-items: center;
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-main);
        width: 100%;
        display: block;
        padding: 8px 0;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-links .mobile-only {
        width: 100%;
        max-width: 280px;
        margin: 10px auto 0 auto;
    }

    .nav-links .mobile-only .login-link {
        display: block;
        margin-bottom: 16px;
        color: var(--text-main);
    }

    .nav-links .mobile-only .btn {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .section-header h2,
    .platforms h2,
    .dev-text h2 {
        font-size: 2rem;
    }

    .logo-grid {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .logo-grid i {
        font-size: 2.2rem;
    }

    .use-case-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}