/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --emerald-500: #10b981;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --yellow-500: #eab308;
    --teal-500: #14b8a6;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom right, var(--slate-950), #2e1065, var(--slate-900));
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animated Background Particles */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    filter: blur(2px);
    animation: float infinite ease-in-out;
}

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

/* Navigation */
.navbar {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--purple-400);
}

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

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--purple-400), var(--pink-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-location {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 9999px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: rgba(147, 51, 234, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #d8b4fe;
    margin-bottom: 1.5rem;
}

.badge i {
    width: 1rem;
    height: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, white, #e9d5ff, #fbcfe8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--purple-400);
}

.feature-item span {
    color: #d1d5db;
}

.location-footer {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-footer i {
    width: 1rem;
    height: 1rem;
    color: var(--purple-400);
}

/* Chat Container */
.chat-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.3), rgba(219, 39, 119, 0.3));
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chat-header h3 i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--purple-400);
}

.chat-header p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.chat-messages {
    height: 24rem;
    overflow-y: auto;
    padding: 1.5rem;
}

.chat-empty {
    text-align: center;
    color: #6b7280;
    padding: 3rem 0;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

.quick-start {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--purple-600), var(--pink-600));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    width: 1.25rem;
    height: 1.25rem;
}

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

.message.user .message-content {
    background: var(--purple-600);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message.assistant .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-bottom-left-radius: 0.25rem;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 1rem;
}

.typing-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--purple-400);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0ms; }
.typing-dot:nth-child(2) { animation-delay: 150ms; }
.typing-dot:nth-child(3) { animation-delay: 300ms; }

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

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: var(--purple-500);
}

.chat-input::placeholder {
    color: #6b7280;
}

.btn-send {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-send:hover {
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.5);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Workflow Section */
.workflow-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.workflow-container {
    background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.3), rgba(157, 23, 77, 0.3));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
}

.workflow-container h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.workflow-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 3rem;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
    opacity: 0.4;
    transform: scale(0.9);
}

.workflow-step.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.workflow-step.animating i {
    animation: pulse 1s infinite;
}

.workflow-step i {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    margin-bottom: 0.75rem;
}

.workflow-step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.workflow-step-title {
    color: white;
    font-weight: 600;
}

.workflow-arrow {
    transition: all 0.5s;
    opacity: 0.2;
}

.workflow-arrow.active {
    opacity: 1;
}

.workflow-arrow i {
    width: 2rem;
    height: 2rem;
    color: var(--purple-400);
}

.workflow-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.metric-card i {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

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

/* Examples Section */
.examples-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.examples-section h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

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

.use-case-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s;
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.use-case-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1);
}

.use-case-icon i {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.use-case-card.green .use-case-icon { background: linear-gradient(to bottom right, var(--green-500), var(--emerald-500)); }
.use-case-card.blue .use-case-icon { background: linear-gradient(to bottom right, var(--blue-500), var(--cyan-500)); }
.use-case-card.orange .use-case-icon { background: linear-gradient(to bottom right, var(--orange-500), var(--red-500)); }
.use-case-card.purple .use-case-icon { background: linear-gradient(to bottom right, var(--purple-500), var(--pink-500)); }
.use-case-card.yellow .use-case-icon { background: linear-gradient(to bottom right, var(--yellow-500), var(--orange-500)); }
.use-case-card.teal .use-case-icon { background: linear-gradient(to bottom right, var(--teal-500), var(--green-500)); }

.use-case-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Before/After Section */
.before-after-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.before-after-section h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.example-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.example-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.example-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.example-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.example-item .icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.example-item.before .icon { color: #ef4444; }
.example-item.after .icon { color: #22c55e; }

.example-item p {
    font-size: 0.875rem;
    color: #d1d5db;
}

.example-item.after p {
    color: white;
    font-weight: 500;
}

.example-gain {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--purple-400);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-gain i {
    width: 1rem;
    height: 1rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.cta-box {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(219, 39, 119, 0.2));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1.25rem 3rem;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.5);
}

.btn-primary i {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-secondary {
    padding: 1.25rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo i {
    width: 2rem;
    height: 2rem;
    color: var(--purple-400);
}

.footer-brand {
    font-weight: bold;
    font-size: 1.125rem;
}

.footer-company {
    font-size: 0.75rem;
    color: #6b7280;
}

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

@media (min-width: 768px) {
    .footer-info {
        text-align: left;
    }
}

.footer-info p {
    color: #9ca3af;
}

.footer-location {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .footer-location {
        justify-content: flex-start;
    }
}

.footer-location i {
    width: 0.75rem;
    height: 0.75rem;
}

.btn-contact-footer {
    padding: 0.5rem 1.5rem;
    background: rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 9999px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact-footer:hover {
    background: rgba(147, 51, 234, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple-500);
}

.form-group textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--purple-600), var(--pink-600));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.5);
}

.btn-close {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close:hover {
    color: white;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.5);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.7);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
