@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-teal: #00B4D8;
    --deep-cyan: #0077B6;
    --light-aqua: #4DD9E5;
    --neon-cyan: #20E3E3;
    --brand-gradient: linear-gradient(135deg, #20E3E3 0%, #0077B6 100%);
    --btn-gradient: linear-gradient(135deg, #20E3E3 0%, #00B4D8 100%);
    --accent-glow: rgba(32, 227, 227, 0.5);
    --dark-navy: #0A192F;
    --pure-white: #FFFFFF;
    --text-muted: #A0AEC0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Button variants */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--btn-gradient);
    color: var(--pure-white);
    font-weight: 700;
    box-shadow: 0 4px 20px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-secondary:hover {
    background: rgba(32, 227, 227, 0.1);
    transform: translateY(-3px);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

.logo img {
    height: 240px;
    width: auto !important;
    max-width: none !important;
    margin-top: -75px;
    margin-bottom: -85px;
    margin-left: -35px;
    margin-right: -25px;
    display: block;
    mix-blend-mode: screen;
    transition: var(--transition-smooth);
    position: relative;
    top: 0;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Background texture similar to slides */
section,
section.container {
    padding: 4rem 0 !important;
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 180, 216, 0.03) 0%, transparent 50%);
}

#services {
    padding-top: 2rem !important;
}

/* Reduced margins between sections for tighter flow */
.section-header {
    margin-bottom: 2.5rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px !important;
    padding-bottom: 3rem !important;
    margin-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
    color: var(--pure-white);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2.5rem;
    text-align: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Use Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.case-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.case-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(32, 227, 227, 0.15);
    color: var(--neon-cyan);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-card h3 {
    margin-bottom: 1rem;
}

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

/* Chat Block */
.chat-container {
    max-width: 900px;
    margin: 2rem auto;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark-navy);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
}

.message.bot {
    align-self: flex-start;
    background: var(--glass-bg);
}

.message.user {
    align-self: flex-end;
    background: var(--deep-cyan);
}

.chat-input {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: white;
    outline: none;
}

/* Why Section refinements */
.why-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.why-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--neon-cyan);
}

.why-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    text-align: center;
}

.contact-card h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-card p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0 !important;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(10, 25, 47, 0.95) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal), var(--deep-cyan), var(--primary-teal));
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 220px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.step-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(32, 227, 227, 0.15) 0%, rgba(0, 119, 182, 0.2) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 3rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(32, 227, 227, 0.08) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    color: var(--neon-cyan);
}

.cta-banner p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    background: var(--btn-gradient);
    color: var(--dark-navy);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Testimonial badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-badge i {
    color: var(--neon-cyan);
    font-size: 1.25rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-claim {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--neon-cyan);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .steps-container::before {
        display: none;
    }

    .step-item {
        flex: 0 0 45%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .step-item {
        flex: 0 0 100%;
    }

    .trust-badges {
        gap: 1.5rem;
    }

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

/* =====================================================
   FLOATING WIDGET - CHAT & VOICE
   ===================================================== */

.digno-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.widget-toggles {
    display: flex;
    gap: 12px;
}

.widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chat-btn {
    background: var(--btn-gradient);
    color: var(--dark-navy);
}

.voice-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
}

.widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(32, 227, 227, 0.4);
}

.voice-btn:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.widget-btn.active {
    transform: scale(0.95);
}

/* Chat & Voice Windows */
.chat-window,
.voice-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: var(--dark-navy);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-window.hidden,
.voice-window.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.chat-window-header,
.voice-window-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-navy);
}

.chat-agent-avatar.pulse {
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(32, 227, 227, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(32, 227, 227, 0); }
}

.chat-status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Chat Messages */
.chat-window-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    max-height: 350px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--deep-cyan);
    border-bottom-right-radius: 4px;
}

.chat-message p {
    margin: 0;
}

.chat-message p + p {
    margin-top: 8px;
}

.chat-message.typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.chat-message.typing span {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Chat Input */
.chat-window-input {
    padding: 16px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-window-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 12px 20px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.chat-window-input input:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--btn-gradient);
    color: var(--dark-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Voice Window */
.voice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.voice-visualizer {
    margin-bottom: 20px;
}

.voice-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 3px solid rgba(139, 92, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #8B5CF6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-circle.listening {
    animation: voicePulse 1.5s ease-in-out infinite;
    border-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
}

.voice-circle.speaking {
    animation: voiceSpeak 0.5s ease-in-out infinite;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
}

@keyframes voiceSpeak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.voice-transcript {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 60px;
    max-height: 100px;
    overflow-y: auto;
    padding: 0 10px;
    width: 100%;
}

.voice-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.voice-action-btn {
    margin: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: all 0.3s ease;
}

.voice-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.voice-action-btn.active {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.voice-action-btn.active:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .digno-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window,
    .voice-window {
        width: calc(100vw - 32px);
        max-height: 70vh;
        bottom: 70px;
        right: -8px;
    }

    .widget-btn {
        width: 50px;
        height: 50px;
    }
}