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

/* iOS Safe Area Support */
:root {
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);

    --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;
    /* iOS smooth scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
}

/* Localized Content Toggler (Pure CSS) */
html:not([lang="en"]) .lang-en {
    display: none !important;
}

html:not([lang="pt"]) .lang-pt {
    display: none !important;
}

html:not([lang="es"]) .lang-es {
    display: none !important;
}

/* Prevent text selection on interactive elements */
button,
.widget-btn,
.voice-action-btn,
.voice-circle {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

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;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.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%);
}

#solutions {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background-image: url('solutions-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

#solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--dark-navy) 0%, rgba(10, 25, 47, 0.85) 50%, var(--dark-navy) 100%);
    z-index: 1;
}

#solutions .container {
    position: relative;
    z-index: 2;
}

#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 Section - WebGL Shader Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 !important;
    margin-top: 0;
    overflow: hidden;
    background: var(--dark-navy);
    /* Seamless Gradient Fade */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* WebGL shader canvas — fills entire hero behind text */
.hero-shader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-shader.loaded {
    opacity: 1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--pure-white);
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

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

/* Hero decorative waves */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2320E3E3' fill-opacity='0.1' d='M0,224L60,213.3C120,203,240,181,360,181.3C480,181,600,203,720,224C840,245,960,267,1080,250.7C1200,235,1320,181,1380,154.7L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(32, 227, 227, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 180, 216, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 119, 182, 0.15) 0%, transparent 60%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: heroMorph 12s ease-in-out infinite;
}

.hero-glow::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background:
        radial-gradient(circle at 40% 40%, rgba(32, 227, 227, 0.3) 0%, transparent 40%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: heroMorph 8s ease-in-out infinite reverse;
}

.hero-glow::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(32, 227, 227, 0.2);
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    animation: heroMorph 10s ease-in-out infinite;
}

@keyframes heroMorph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-50%, -50%) rotate(5deg) scale(1.05);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Solutions Section - New Design */
.solutions-section {
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
}

/* Decorative waves background */
.solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2320E3E3' fill-opacity='0.08' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,133.3C960,107,1056,85,1152,90.7C1248,96,1344,128,1392,144L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.solutions-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 110%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300B4D8' fill-opacity='0.06' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,101.3C960,117,1056,171,1152,176C1248,181,1344,139,1392,117.3L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.solutions-section .container {
    position: relative;
    z-index: 1;
}

.solutions-section .section-header h2 {
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.solution-card {
    background: rgba(15, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(32, 227, 227, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.solution-card:hover {
    border-color: rgba(32, 227, 227, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(32, 227, 227, 0.2), inset 0 0 10px rgba(32, 227, 227, 0.1);
}

.solution-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(32, 227, 227, 0.05);
    border: 1px solid rgba(32, 227, 227, 0.2);
}

.solution-icon i {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px rgba(32, 227, 227, 0.5));
}

.solution-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--pure-white);
    font-weight: 700;
}

.solution-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Removed old services-grid-new styles */

.service-icon-new {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(32, 227, 227, 0.1);
    border: 1px solid rgba(32, 227, 227, 0.2);
}

.service-icon-new i {
    font-size: 1.25rem;
    color: var(--neon-cyan);
}

.service-card-new h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--pure-white);
}

.service-card-new p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Legacy Services - Keep for compatibility */
.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 - New Design */
footer {
    padding: 3rem 0;
    background: rgba(10, 25, 47, 0.95);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 180px;
    width: auto !important;
    max-width: none !important;
    mix-blend-mode: screen;
    margin: -50px 0 -50px -25px;
}

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

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

.footer-contact-item i {
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(32, 227, 227, 0.1);
}

/* Legacy footer styles */
.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-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--pure-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.btn-demo {
    background: transparent;
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-demo:hover {
    background: var(--pure-white);
    color: var(--dark-navy);
}

.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: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-visual {
        display: none;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-new {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

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

    .nav-right {
        gap: 1rem;
    }

    .btn-demo {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

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

    .hero {
        margin-top: 70px;
        min-height: auto;
    }

    .hero-wrapper {
        min-height: auto;
        padding: 3rem 0;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

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

    .solution-card {
        padding: 2rem 1.5rem;
    }

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

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

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

    .footer-social {
        justify-content: center;
    }
}

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

.digno-widget {
    position: fixed;
    bottom: calc(24px + var(--safe-area-inset-bottom));
    right: calc(24px + var(--safe-area-inset-right));
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

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

.widget-cta-bubble {
    background: var(--btn-gradient);
    color: var(--dark-navy);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(32, 227, 227, 0.3);
    position: relative;
    animation: bounceBubble 2s infinite ease-in-out;
    white-space: nowrap;
}

.widget-cta-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--neon-cyan);
}

@keyframes bounceBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.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 {
    display: none !important;
    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: calc(16px + var(--safe-area-inset-bottom));
        right: calc(16px + var(--safe-area-inset-right));
    }

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

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

/* iOS-specific input handling to prevent zoom */
@supports (-webkit-touch-callout: none) {

    input,
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }
}

/* Android-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .voice-circle {
        /* Improve touch feedback on Android */
        -webkit-tap-highlight-color: transparent;
    }
}

/* ================================================
   TRUST BAR
   ================================================ */
.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.trust-label {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    opacity: 0.55;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.trust-logo-item:hover {
    opacity: 1;
}

.trust-logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: -1px;
}

.trust-logo-dot {
    color: var(--neon-cyan);
}

.trust-logo-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ================================================
   TUTORIALS SECTION
   ================================================ */
.tutorials-section {
    padding: 5rem 0 !important;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.tutorial-card {
    background: rgba(15, 30, 50, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.tutorial-card:hover {
    border-color: rgba(32, 227, 227, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(32, 227, 227, 0.1);
}

.tutorial-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d1f35;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.tutorial-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tutorial-thumb i {
    font-size: 2.5rem;
    color: #ff3333;
    opacity: 0.75;
}

.tutorial-thumb span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-info {
    padding: 1.25rem;
}

.tutorial-info h4 {
    font-size: 0.95rem;
    color: var(--pure-white);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.btn-watch {
    font-size: 0.82rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-watch:hover {
    color: var(--pure-white);
}

.skool-cta {
    margin-top: 0.5rem;
}

.skool-cta-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
}

.skool-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--dark-navy);
}

.skool-text {
    flex: 1;
}

.skool-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.skool-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.skool-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.85rem 1.75rem;
}

/* ================================================
   BLOG SECTION
   ================================================ */
.blog-section {
    padding: 5rem 0 !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.blog-grid .blog-card:nth-child(4) {
    grid-column: 1 / 2;
}

.blog-grid .blog-card:nth-child(5) {
    grid-column: 2 / 3;
}

.blog-card {
    background: rgba(15, 30, 50, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(32, 227, 227, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(32, 227, 227, 0.1);
}

.blog-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(32, 227, 227, 0.18);
    color: var(--neon-cyan);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(32, 227, 227, 0.3);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.blog-meta i {
    margin-right: 0.3rem;
    color: var(--neon-cyan);
    opacity: 0.7;
}

.blog-card-body h3 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    color: var(--pure-white);
    flex: 1;
}

.blog-card-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.author-photo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
    flex-shrink: 0;
}

.blog-author strong {
    display: block;
    font-size: 0.82rem;
    color: var(--pure-white);
    line-height: 1.2;
}

.blog-author span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid .blog-card:nth-child(4),
    .blog-grid .blog-card:nth-child(5) {
        grid-column: auto;
    }

    .skool-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }

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

    .trust-logos {
        gap: 2rem;
    }
}