/* ===========================
   Variables & Base Styles
   =========================== */
:root {
    --color-bg-dark: #0a1628;
    --color-bg-medium: #1a2a3a;
    --color-bg-light: #243447;
    --color-accent: #F7931E;
    --color-accent-light: #FFB347;
    --color-accent-glow: rgba(247, 147, 30, 0.5);
    --color-text: #ffffff;
    --color-text-muted: #a0aec0;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --shadow-glow: 0 0 40px var(--color-accent-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 100%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(247, 147, 30, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.logo-wrapper:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--color-accent));
}

.logo-wrapper:hover .logo-glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 40px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--color-accent-glow);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 50%;
    color: var(--color-bg-dark);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.feature-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-bg-dark);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.feature-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--color-accent-glow);
}

.phone-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--color-accent-light);
}

/* ===========================
   Audio Modal
   =========================== */
.audio-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.audio-modal.active {
    opacity: 1;
    visibility: visible;
}

.audio-modal-content {
    background: var(--color-bg-medium);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.audio-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.audio-modal-close:hover {
    color: var(--color-text);
}

.audio-modal h3 {
    margin-bottom: 24px;
}

.audio-player {
    margin-bottom: 24px;
}

.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 16px;
}

.waveform-bar {
    width: 4px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { animation-delay: 0.4s; }
.waveform-bar:nth-child(8) { animation-delay: 0.3s; }
.waveform-bar:nth-child(9) { animation-delay: 0.2s; }
.waveform-bar:nth-child(10) { animation-delay: 0.1s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

.audio-placeholder {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.audio-cta {
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.audio-call-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-bg-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.audio-call-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--color-accent-glow);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-item.active {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

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

.footer-text a:hover {
    color: var(--color-accent-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* ===========================
   Chatbot Widget
   =========================== */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: var(--color-bg-medium);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chatbot-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-avatar img {
    width: 30px;
    height: auto;
}

.chatbot-header h4 {
    color: var(--color-bg-dark);
    font-size: 0.9375rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    color: var(--color-bg-dark);
    opacity: 0.8;
}

.chatbot-close {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-bg-dark);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-message.bot {
    align-self: flex-start;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-bottom-left-radius: 4px;
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-bg-dark);
    border-bottom-right-radius: 4px;
}

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

.chatbot-message.typing span {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

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

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chatbot-input-area {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 12px;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 50px;
    color: var(--color-text);
    font-size: 0.9375rem;
    outline: none;
    transition: var(--transition);
}

#chatbot-input:focus {
    border-color: var(--color-accent);
}

#chatbot-input::placeholder {
    color: var(--color-text-muted);
}

#chatbot-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border: none;
    border-radius: 50%;
    color: var(--color-bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chatbot-send:hover {
    transform: scale(1.1);
}

/* Floating Action Button */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border: none;
    border-radius: 50%;
    color: var(--color-bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--color-accent-glow);
}

.chatbot-fab.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 60px 0 40px;
    }

    .logo {
        width: 150px;
    }

    .logo-glow {
        width: 200px;
        height: 200px;
    }

    .features {
        padding: 20px 0 60px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .chatbot-widget {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-fab {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-button {
        width: 100%;
        justify-content: center;
    }

    .faq-question {
        padding: 16px;
        font-size: 0.9375rem;
    }

    .faq-answer p {
        padding: 0 16px 16px;
    }
}
