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

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-card-hover: #252525;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b6b6b;
    
    --purple-primary: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    
    --border-color: #2a2a2a;
    --border-light: #333333;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

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

/* Buttons */
.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

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

.btn-outline:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

/* Code Block */
.hero-code {
    max-width: 600px;
    margin: 0 auto;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-title {
    color: var(--text-secondary);
    font-size: 14px;
}

.code-lang {
    color: var(--purple-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

pre {
    padding: 20px;
    overflow-x: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.comment {
    color: var(--text-tertiary);
}

.output {
    color: var(--purple-light);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

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

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--purple-primary);
    transform: translateY(-4px);
}

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.step-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.step-code code {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* Use Cases */
.use-cases {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.use-case {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.use-case h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--purple-light);
}

.use-case p {
    color: var(--text-secondary);
}

/* Pricing */
.pricing {
    padding: 120px 0;
}

.pricing-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--purple-primary);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 48px;
    text-align: center;
}

.pricing-notice p {
    color: var(--text-primary);
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--purple-primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

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

.currency {
    font-size: 24px;
    color: var(--text-secondary);
}

.amount {
    font-size: 48px;
    font-weight: 700;
}

.period {
    font-size: 18px;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

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

.pricing-features li em {
    color: var(--purple-light);
    font-style: normal;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

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

/* Comparison Section */
.comparison {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.comparison-wrapper {
    margin-top: 48px;
}

.comparison-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comparison-table thead {
    background: var(--bg-tertiary);
}

.comparison-table th {
    padding: 24px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.comparison-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.simpleTunnel-row {
    background: rgba(139, 92, 246, 0.05);
}

.simpleTunnel-row.featured {
    background: rgba(139, 92, 246, 0.1);
    position: relative;
}

.simpleTunnel-row.featured::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.price-cell {
    font-weight: 600;
    color: var(--purple-light);
}

.yes {
    color: #10b981;
    font-weight: 600;
    font-size: 20px;
}

.no {
    color: #ef4444;
    font-weight: 600;
    font-size: 20px;
}

.extra {
    color: #f59e0b;
    font-weight: 600;
}

.separator td {
    padding: 8px;
    background: var(--bg-secondary);
    border: none;
}

.comparison-summary {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.summary-card {
    background: var(--bg-card);
    border: 2px solid var(--purple-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
}

.summary-card h4 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--purple-light);
}

.summary-card ul {
    list-style: none;
}

.summary-card li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive table */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .comparison-table th {
        font-size: 12px;
    }
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

.email-input:focus {
    outline: none;
    border-color: var(--purple-primary);
}

.cta-note {
    font-size: 14px;
    color: var(--text-tertiary);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .feature-matrix-section {
        margin-top: 60px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

/* Feature Comparison Matrix */
.feature-matrix-section {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.matrix-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-matrix {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 20px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th.feature-name {
    width: 40%;
    font-size: 16px;
}

.comparison-table th.tier-header {
    text-align: center;
    width: 20%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.comparison-table th.tier-header.free {
    color: var(--text-secondary);
}

.comparison-table th.tier-header.pro {
    color: var(--purple-light);
}

.comparison-table th.tier-header.business {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.comparison-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.comparison-table tr.category-row {
    background: var(--bg-tertiary);
}

.comparison-table tr.category-row:hover {
    background: var(--bg-tertiary);
}

.comparison-table tr.category-row td {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--purple-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td.feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table td.check {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    font-size: 18px;
}

.comparison-table td.cross {
    text-align: center;
    color: #ef4444;
    font-weight: 600;
    font-size: 18px;
}

.comparison-table td.warning {
    text-align: center;
    color: #f59e0b;
    font-weight: 500;
}

.comparison-table td.good {
    text-align: center;
    color: #10b981;
    font-weight: 500;
}

.comparison-table td:not(.feature-name) {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-table td.check,
.comparison-table td.cross {
    position: relative;
}

.comparison-table td.check::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.comparison-table td.cross::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Clickable Features */
.clickable-feature {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable-feature:hover {
    color: var(--purple-light) !important;
    background: rgba(139, 92, 246, 0.1);
}

.info-icon {
    opacity: 0.6;
    margin-left: 8px;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.clickable-feature:hover .info-icon {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 4px;
}

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

.modal-body {
    padding: 32px;
}

.modal-body h3 {
    color: var(--purple-light);
    margin-bottom: 16px;
    font-size: 18px;
}

.modal-body h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 24px;
    font-size: 16px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-body code {
    background: var(--bg-primary);
    color: var(--purple-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.modal-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.modal-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.tier-badge.free {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-secondary);
}

.tier-badge.pro {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
}

.tier-badge.business {
    background: var(--gradient-primary);
    color: white;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px;
    }
}