/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: #f5f7fa;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --primary: #3b82f6;
    --primary-foreground: #f8fafc;
    --secondary: #e2e8f0;
    --secondary-foreground: #1e293b;
    --muted: #e2e8f0;
    --muted-foreground: #64748b;
    --accent: #f59e0b;
    --accent-foreground: #451a03;
    --border: #e2e8f0;
    --input: #e2e8f0;
    
    /* Spacing */
    --radius: 0.5rem;
    
    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-headline: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .btn-hide-mobile {
        display: inline-flex;
    }
}

.mobile-menu-toggle {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--card);
    z-index: 60;
    transition: right 0.3s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: rgba(245, 158, 11, 0.9);
}

.btn-outline {
    border-color: var(--border);
    background-color: transparent;
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--secondary);
}

.btn-icon {
    padding: 0.5rem;
    background-color: transparent;
    border: none;
}

.btn-icon:hover {
    background-color: var(--secondary);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icons */
.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-right {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

.icon-right-sm {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

.icon-check {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.icon-primary {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), rgba(245, 247, 250, 0.8), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 48rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #e5e7eb;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 400px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-accent,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Sections */
.section {
    width: 100%;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

.bg-card {
    background-color: var(--card);
}

.bg-background {
    background-color: var(--background);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.badge {
    display: inline-block;
    background-color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    max-width: 900px;
    color: var(--muted-foreground);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .section-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 1280px) {
    .section-description {
        font-size: 1.25rem;
    }
}

/* Grid Layouts */
.grid-2col {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.space-y {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-muted {
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .text-muted {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .text-muted {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .text-muted {
        font-size: 1.25rem;
    }
}

.text-muted-lg {
    max-width: 600px;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .text-muted-lg {
        font-size: 1.25rem;
    }
}

/* Cards */
.card-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.image-full {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-icon {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.value-icon .icon {
    color: var(--primary);
}

.value-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
}

.value-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    background-color: var(--card);
}

.product-card:hover {
    transform: translateY(-0.5rem);
}

.product-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: auto;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Solutions Section - Tabs */
.tabs-container {
    max-width: 1024px;
    margin: 3rem auto 0;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.tab-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

.tab-trigger:hover {
    background-color: var(--card);
}

.tab-trigger.active {
    background-color: var(--card);
    color: var(--foreground);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    margin-top: 1.5rem;
}

.tab-content.active {
    display: block;
}

.solution-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.features-title {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-title {
    font-weight: 600;
    color: var(--foreground);
}

.contact-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--foreground);
}

.contact-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.contact-form-container {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--foreground);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #ef4444;
}

.btn-text {
    display: inline;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline-flex;
}

.spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s;
    pointer-events: none;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.error {
    border-color: #ef4444;
    background-color: #fee2e2;
}

.toast.success {
    border-color: #10b981;
    background-color: #d1fae5;
}

/* Footer */
.footer {
    background-color: var(--muted);
}

.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 4;
    }
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: transparent;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-section:nth-child(2) {
        grid-column: span 2;
    }
    
    .footer-section:nth-child(3) {
        grid-column: span 3;
    }
    
    .footer-section:nth-child(4) {
        grid-column: span 3;
    }
}

.footer-heading {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-contact a {
    color: var(--muted-foreground);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--foreground);
}

.mt-2 {
    margin-top: 0.5rem;
}

.footer-newsletter-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    min-width: 0;
    background-color: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.chat-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-toggle:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.chat-window {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 2rem);
    height: 500px;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.chat-title {
    font-size: 1rem;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background-color: var(--primary);
    color: white;
}

.chat-bubble {
    background-color: var(--secondary);
    padding: 0.75rem;
    border-radius: var(--radius);
    max-width: 80%;
    font-size: 0.875rem;
}

.chat-message.user .chat-bubble {
    background-color: var(--primary);
    color: white;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background-color: #2563eb;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading animation for chat */
.chat-loading {
    display: flex;
    gap: 0.25rem;
}

.chat-loading span {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--muted-foreground);
    border-radius: 9999px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
