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

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --accent: #d4ff00;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 24px;
    color: var(--primary-light);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #2d1b4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* AI Chat Interface */
.ai-chat-container {
    max-width: 650px;
    margin: 0 auto 24px;
}

.ai-chat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.ai-chat-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.ai-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.ai-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 44px;
    padding: 10px 0;
}

.ai-input::placeholder {
    color: var(--gray);
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ai-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.suggestion-label {
    color: var(--gray);
    font-size: 13px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: var(--primary);
}

.hero-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    margin-top: 24px;
}

.hero-guarantee svg {
    color: var(--accent);
}

/* Features Cards Section */
.features-cards {
    padding: 60px 0;
    background: var(--bg-light);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.3s;
}

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

.card-purple {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.card-dark {
    background: var(--darker);
    color: var(--white);
}

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

.card-content p {
    font-size: 14px;
    opacity: 0.85;
    max-width: 280px;
    margin-bottom: 16px;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-label {
    font-size: 14px;
    opacity: 0.7;
}

.price-old {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.5;
}

.price-new {
    font-size: 24px;
    font-weight: 700;
}

.card-icon {
    position: absolute;
    right: 24px;
    bottom: 24px;
}

.percent-icon {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.9;
}

.card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.7;
}

/* Search Box in Card */
.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: var(--white);
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Templates Section */
.templates-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.template-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.template-preview {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-icon {
    font-size: 48px;
}

.gradient-1 { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.gradient-2 { background: linear-gradient(135deg, #5f27cd, #341f97); }
.gradient-3 { background: linear-gradient(135deg, #00d2d3, #54a0ff); }
.gradient-4 { background: linear-gradient(135deg, #ff9ff3, #f368e0); }
.gradient-5 { background: linear-gradient(135deg, #1dd1a1, #10ac84); }
.gradient-6 { background: linear-gradient(135deg, #ff9f43, #ee5a24); }

.template-info {
    padding: 20px;
}

.template-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.template-info p {
    font-size: 14px;
    color: var(--gray);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.trust-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 12px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

/* AI Modal */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.ai-modal.active {
    display: flex;
}

.ai-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--dark);
}

.ai-modal-header .ai-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.modal-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

.ai-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.7;
    color: var(--dark);
}

.ai-modal-body .loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
}

.ai-modal-body .loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Token Display */
.token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.token-display svg {
    color: var(--accent);
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    margin-top: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

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

.price-period {
    font-size: 14px;
    opacity: 0.7;
}

.pricing-tokens {
    margin: 20px 0;
    padding: 16px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    text-align: center;
}

.pricing-card.popular .pricing-tokens {
    background: rgba(255, 255, 255, 0.15);
}

.token-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.pricing-card.popular .token-amount {
    color: var(--accent);
}

.token-label {
    font-size: 13px;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.pricing-card.popular .pricing-features li::before {
    color: var(--accent);
}

.btn-pricing {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

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

.btn-pricing.btn-current {
    background: var(--gray-light);
    border-color: var(--gray-light);
    color: var(--white);
    cursor: default;
}

.btn-pricing.btn-current:hover {
    background: var(--gray-light);
}

.btn-pricing.btn-popular {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

.btn-pricing.btn-popular:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }

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

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        gap: 48px;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .ai-chat-box {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-avatar {
        display: none;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-header h2,
    .trust-section h2 {
        font-size: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .token-display {
        padding: 6px 10px;
        font-size: 12px;
    }
}
