/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
:root {
    --primary-color: #6D28D9;
    --primary-light: #8B5CF6;
    --primary-dark: #5B21B6;
    --secondary-color: #3B82F6;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --dark-bg: #111827;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --text-color: #F3F4F6;
    --bg-light: #1F2937;
    --white: #111827;
    --dark-bg: #F9FAFB;
    
    /* Update link colors in dark mode */
    color-scheme: dark;
}

/* Global link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Navigation links */
.nav a {
    color: var(--text-color);
}

.nav a:hover {
    color: var(--primary-color);
}

/* Dark mode specific link styles */
[data-theme="dark"] a:not(.btn) {
    color: var(--primary-light);
}

[data-theme="dark"] a:not(.btn):hover {
    color: var(--primary-color);
}

/* Loading Bar */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    width: 0%;
    transition: width 0.3s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sticky Header */
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

[data-theme="dark"] .header.sticky {
    background: rgba(17, 24, 39, 0.95);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav.active {
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav a {
        margin: 0.75rem 0;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav a.btn-outline {
        margin-top: 1rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
        border: 2px solid var(--primary-color);
        border-radius: var(--border-radius);
    }
    
    .nav a.btn-outline:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #EDE9FE 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(237, 233, 254, 0.8) 100%);
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(55, 48, 163, 0.8) 100%);
}

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

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.hero-image {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image img:hover {
    transform: scale(1.02);
}

@media (min-width: 1024px) {
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: left;
        margin: 0;
        padding-right: 2rem;
    }
    
    .hero-image {
        margin-top: 0;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.countdown-item {
    text-align: center;
}

.countdown-item span:first-child {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    min-width: 80px;
    box-shadow: var(--box-shadow);
}

.countdown-item span:last-child {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Pricing Table */
.pricing-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.pricing-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Tabulator */
.tabulator-container {
    margin-top: 3rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.tabulator {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
    min-width: 600px; /* Ensures table doesn't get too narrow */
    width: 100%;
}

.tabulator table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tabulator th,
.tabulator td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid #E5E7EB;
    word-break: break-word;
    font-size: 0.9rem;
}

.tabulator th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-light);
    position: sticky;
    top: 0;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .tabulator th,
    .tabulator td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .tabulator-container {
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .tabulator {
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}

/* For very small devices, make the table scroll horizontally */
@media (max-width: 480px) {
    .tabulator th,
    .tabulator td {
        min-width: 100px;
        max-width: 150px;
    }
}

/* Integration Section */
.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.integration-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin: 2rem 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
        min-width: 60px;
    }
    
    .integration-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: #1F2937;
    color: #E5E7EB;
    padding: 4rem 0 2rem;
}

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

.footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1 1 100%;
    text-align: center;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-logo p {
    margin-top: 0.5rem;
    color: #9CA3AF;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex: 1 1 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-column {
    flex: 1 1 45%;
    min-width: 0;
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: #F3F4F6;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #6D28D9;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #9CA3AF;
}

/* Fix for duplicate styles */
.footer a:hover {
    color: #6D28D9;
}

.logo-img {
    height: 36px;
    width: auto;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 0 0;
        margin-top: 4rem;
    }
    
    .footer-content {
        gap: 3rem;
        margin-bottom: 3rem;
    }
    
    .footer-logo {
        flex: 1 1 300px;
        text-align: left;
    }
    
    .footer-logo-img {
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .footer-logo p {
        margin-top: 1rem;
        font-size: 1rem;
    }
    
    .footer-links {
        flex: 2 1 600px;
        gap: 2rem;
        margin-top: 0;
    }
    
    .footer-column {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .footer-column h4 {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }
    
    .footer-column a {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 2rem 1rem;
        font-size: 0.875rem;
    }
}

.logo-img {
    height: 36px;
    width: auto;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.developer-credit {
    color: #6D28D9;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
}
