/* ==========================================================================
   GPTalk - Style System (Dark Stitch Neon Inspired)
   Palette: Dark Space (#0A0D14), Electric Blue (#0066FF), Neon Cyan (#00D2FF)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #0A0D14;
    --bg-darker: #06080D;
    --bg-card: rgba(18, 24, 38, 0.65);
    --bg-card-hover: rgba(24, 32, 50, 0.85);

    --primary-blue: #0066FF;
    --neon-cyan: #00D2FF;
    --neon-purple: #8A2BE2;
    --neon-emerald: #10B981;

    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --border-glass: rgba(0, 210, 255, 0.15);
    --border-glass-strong: rgba(0, 210, 255, 0.35);

    /* Shadows & Glows */
    --glow-cyan: 0 0 25px rgba(0, 210, 255, 0.35);
    --glow-blue: 0 0 30px rgba(0, 102, 255, 0.4);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Fonts & Radius */
    --font-primary: 'Roboto', 'Inter', sans-serif;
    --radius-full: 9999px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.3);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Ambient Neon Glow Background Elements (Stitch Aesthetics) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-blue) 0%, rgba(0, 102, 255, 0) 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(0, 210, 255, 0) 70%);
    top: 30%;
    right: -150px;
}

.glow-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--neon-purple) 0%, rgba(138, 43, 226, 0) 70%);
    bottom: 10%;
    left: 20%;
}

/* Utility Containers & Typography */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-darker {
    background-color: rgba(6, 8, 13, 0.7);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 20%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-strong);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0044CC 100%);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0073FF 0%, var(--primary-blue) 100%);
    box-shadow: var(--glow-blue);
    transform: scale(1.02);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-cyan);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--border-glass-strong);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    color: #FFFFFF;
}

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    box-sizing: border-box;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.mobile-close {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 130px;
    padding-bottom: 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--neon-cyan);
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--neon-cyan);
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Interactive Voice Visualizer Card */
.demo-card {
    padding: 24px;
    border-color: rgba(0, 210, 255, 0.3);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: var(--glow-cyan);
}

.agent-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.status-online {
    font-size: 12px;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online i {
    font-size: 8px;
}

/* Voice Wave Animation */
.voice-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 50px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 10px;
}

.wave-bar {
    width: 5px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--primary-blue));
    border-radius: 10px;
    animation: wave 1.2s infinite ease-in-out alternate;
}

.bar-1 { height: 15px; animation-delay: 0.1s; }
.bar-2 { height: 35px; animation-delay: 0.3s; }
.bar-3 { height: 20px; animation-delay: 0.5s; }
.bar-4 { height: 42px; animation-delay: 0.2s; }
.bar-5 { height: 28px; animation-delay: 0.4s; }
.bar-6 { height: 38px; animation-delay: 0.6s; }
.bar-7 { height: 18px; animation-delay: 0.15s; }
.bar-8 { height: 30px; animation-delay: 0.35s; }

@keyframes wave {
    0% { transform: scaleY(0.4); opacity: 0.5; }
    100% { transform: scaleY(1.3); opacity: 1; box-shadow: 0 0 10px var(--neon-cyan); }
}

.demo-chat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.user-msg {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
}

.agent-msg {
    background: rgba(0, 102, 255, 0.12);
    border-left: 3px solid var(--primary-blue);
}

.msg-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    display: block;
    margin-bottom: 4px;
}

.demo-footer .demo-input-fake {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-muted);
}

.mic-active {
    color: var(--neon-cyan);
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

.send-icon {
    margin-left: auto;
    color: var(--primary-blue);
    cursor: pointer;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Section Titles */
.section-header {
    margin-bottom: 64px;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.section-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.channel-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.channel-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.glow-cyan { background: rgba(0, 210, 255, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0, 210, 255, 0.3); }
.glow-blue { background: rgba(0, 102, 255, 0.15); color: var(--primary-blue); border: 1px solid rgba(0, 102, 255, 0.3); }
.glow-purple { background: rgba(138, 43, 226, 0.15); color: var(--neon-purple); border: 1px solid rgba(138, 43, 226, 0.3); }
.glow-emerald { background: rgba(16, 185, 129, 0.15); color: var(--neon-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }

.channel-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.channel-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
}

.app-logo-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-glass-strong);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.app-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 210, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.app-card-body {
    padding: 24px;
    flex-grow: 1;
}

.app-card-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.agent-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.app-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.app-card-footer {
    padding: 0 24px 24px 24px;
}

.btn-app {
    width: 100%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    position: relative;
}

.service-number {
    font-size: 36px;
    font-weight: 900;
    color: rgba(0, 210, 255, 0.25);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-box {
    padding: 80px 40px;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, rgba(18, 24, 38, 0.8) 100%);
    border-color: var(--border-glass-strong);
}

.cta-title {
    font-size: 36px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand .footer-about {
    font-size: 14px;
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 340px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--neon-cyan);
    color: var(--bg-darker);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-links, .footer-contact {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-contact li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--neon-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

/* Floating WhatsApp Button */
.wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition-normal);
}

.wsp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.wsp-tooltip {
    position: absolute;
    right: 72px;
    background: rgba(10, 13, 20, 0.9);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.wsp-float:hover .wsp-tooltip {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 36px auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .brand-logo {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .logo-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        box-sizing: border-box !important;
    }

    .header-actions {
        position: static;
        transform: none;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(34, 34, 34, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: var(--transition-normal);
        z-index: 2000;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 32px;
    }

    .main-nav .nav-link {
        font-size: 26px;
        font-weight: 500;
        padding: 10px 0;
    }

    .mobile-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
        background: none;
        border: none;
        color: #fff;
        font-size: 32px;
        cursor: pointer;
        z-index: 1000;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-section {
        padding-top: 350px;
    }

    .hero-title {
        font-size: 38px;
    }

    .section-title {
        font-size: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
