/* 2025 Modern Design Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern Typography & Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f0f0f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    opacity: 0.03;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

.contact-btn-top {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .top-nav {
        top: 0.5rem;
        right: 1rem;
    }
    
    .contact-btn-top {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Container with Modern Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 6rem; /* Add space for fixed nav */
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0 0.5rem;
        padding-top: 5rem; /* Space for fixed nav on mobile */
        margin: 0;
    }
}

/* Hero Header with Conversation Visual */
.hero-header {
    text-align: center;
    padding: 4rem 0 6rem;
    position: relative;
}

.conversation-visual {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.phone-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(103, 126, 234, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.conversation-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.bubble {
    padding: 1rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bubbleIn 0.6s ease-out;
}

.bubble.customer {
    background: rgba(103, 126, 234, 0.1);
    color: #667eea;
    align-self: flex-end;
    animation-delay: 0.2s;
}

.bubble.ai {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
    align-self: flex-start;
    animation-delay: 0.8s;
}

@keyframes bubbleIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Typography */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #f0f0f0;
    font-weight: 500;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-explanation {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.hero-explanation p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
}

/* Primary CTA Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.3);
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(103, 126, 234, 0.4);
}

.btn-primary.large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.hero-cta, .final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-subtext {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 0;
}

/* Main Content - removed background panel */
.main-content {
    padding: 0;
    margin-bottom: 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-header {
        background: none !important;
        border: none !important;
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid with Stagger Animation */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .feature-card {
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 1rem 0;
        min-height: auto;
        color: #ffffff;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .feature-card:last-child {
        border-bottom: none;
    }
    
    .feature-card h3 {
        color: #ffffff !important;
    }
    
    .feature-card p {
        color: #e0e0e0 !important;
    }
    
    .feature-card::before {
        display: none;
    }
    
    .feature-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.feature-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

.feature-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
}

/* Capabilities Section */
.capabilities-section {
    margin-bottom: 6rem;
}

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

.capability-card {
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .capability-card {
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .capability-card:last-child {
        border-bottom: none;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .glass-card {
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        text-align: center;
    }
    
    .glass-card h3 {
        color: #ffffff !important;
    }
    
    .glass-card p {
        color: #e0e0e0 !important;
    }
    
    .glass-card:hover {
        background: none;
        transform: none;
        box-shadow: none;
    }
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.capability-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.capability-card p {
    color: #555;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cta-section {
        background: none;
        border: none;
        border-radius: 0;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%);
    border-radius: 2rem;
    margin: 4rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .demo-section {
        background: none;
        border: none;
        border-radius: 0;
        padding: 2rem 0;
        margin: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

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

.phone-demo-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.phone-icon.large {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(74, 144, 226, 0.3));
}

.call-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.ring-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: ringPulse 2s infinite ease-out;
}

.ring-pulse.delay-1 {
    animation-delay: 0.5s;
}

.ring-pulse.delay-2 {
    animation-delay: 1s;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.demo-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.demo-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.demo-subtext {
    color: #bbbbbb;
    font-size: 0.95rem;
    margin: 0;
}

.phone-demo-content {
    margin: 3rem 0;
    text-align: center;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin: 0 0 2rem 0;
    text-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    letter-spacing: 2px;
}

.demo-simple {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.demo-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-description strong {
    color: #4a90e2;
    font-weight: 600;
}

.demo-notice-inline {
    color: #ffc107;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* Animation Classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-in[data-delay="100"] { animation-delay: 0.1s; }
.animate-in[data-delay="200"] { animation-delay: 0.2s; }
.animate-in[data-delay="300"] { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #bbbbbb;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

/* Contact Popup Enhanced */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-popup.active {
    display: flex;
}

.contact-popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    width: 95%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close-popup:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.contact-popup h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    font-family: inherit;
}

.popup-field:focus {
    border-color: #667eea;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
}

.contact-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(103, 126, 234, 0.3);
}

.contact-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero-header {
        padding: 2rem 0 4rem;
    }
    
    .conversation-flow {
        max-width: 300px;
    }
    
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .contact-popup-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        padding: 2rem;
    }
    
    .phone-icon {
        font-size: 3rem;
    }
    
    .bubble {
        font-size: 0.8rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}