/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 14px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(to bottom, var(--bg-light) 0%, white 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* Excel Mockup */
.hero-demo {
    max-width: 900px;
    margin: 0 auto;
}

.excel-mockup {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.excel-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.excel-tab {
    padding: 6px 16px;
    background: #e0e0e0;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.excel-tab.active {
    background: white;
    color: var(--text-primary);
}

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

.excel-table th,
.excel-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.excel-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    width: 40px;
}

.excel-table tbody tr:first-child {
    background: #f8f8f8;
    font-weight: 600;
}

.excel-table tr.highlight {
    background: #e6f3ff;
    animation: highlight 1s ease-in-out 1s;
}

@keyframes highlight {
    0%, 100% { background: #e6f3ff; }
    50% { background: #b3d9ff; }
}

/* Social Proof */
.social-proof {
    padding: 48px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.social-proof-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.company-logo {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 18px;
    opacity: 0.5;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-example {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.feature-example code {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
}

.example-result {
    color: var(--success);
    font-weight: 600;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.step {
    display: flex;
    gap: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
}

.integration-methods {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.integration-methods h3 {
    text-align: center;
    margin-bottom: 32px;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.method {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.method strong {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.method p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--bg-white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.pricing-note p {
    margin-bottom: 8px;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.demo-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.demo-tab {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.demo-tab:hover {
    background: rgba(102, 126, 234, 0.1);
}

.demo-tab.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.demo-content {
    padding: 40px;
}

.demo-panel {
    display: none;
}

.demo-panel.active {
    display: block;
}

.demo-input {
    margin-bottom: 32px;
}

.demo-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-input input,
.demo-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 16px;
}

.demo-input textarea {
    min-height: 100px;
    resize: vertical;
}

.demo-output {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    min-height: 200px;
}

.demo-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
}

.demo-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.demo-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.demo-result-data {
    display: grid;
    gap: 12px;
}

.demo-data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.demo-data-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-data-value {
    color: var(--text-primary);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
