:root {
    --primary-color: #7C3AED;
    --primary-dark: #6D28D9;
    --secondary-color: #4F46E5;
    --text-color: #1F2937;
    --light-text: #6B7280;
    --background: #ffffff;
    --light-background: #F9FAFB;
    --border-color: #E5E7EB;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

/* Button Styles */
.cta-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

.cta-button.secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: var(--light-background);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

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

.stat .label {
    font-size: 0.875rem;
    color: var(--light-text);
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--light-background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 0;
    background: var(--light-background);
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.use-case-card {
    padding: 0;
    overflow: visible;
}

.use-case-card h3 {
    margin-top: 0;
}

.use-case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.use-case-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
}

.animated-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--light-background);
    border-radius: 10px;
    overflow: hidden;
}

.use-case-card:hover .animated-icon {
    transform: scale(1.05);
}

/* Workflow Section */
.workflow {
    padding: 6rem 0;
    background: var(--background);
}

.workflow h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--light-background);
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.pricing-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.popular-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

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

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

.pricing-card li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card li i {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.footer h3, .footer h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin: 0.75rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    font-size: 1.25rem;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

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

    .mobile-menu {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Animated Editor */
.animated-editor {
    background: #1E1E1E;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.editor-header {
    background: #2D2D2D;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.editor-content {
    padding: 20px;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E1E1E;
}

.typing-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    text-align: center;
    overflow: hidden;
}

.typing-text {
    color: #fff;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 24px;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    position: relative;
    display: inline-block;
    width: 3px;
    height: 32px;
    background: var(--primary-color);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* Blog Animation */
.blog-animation {
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-lines span {
    display: block;
    height: 12px;
    background: var(--primary-color);
    margin: 10px 0;
    border-radius: 6px;
    opacity: 0.7;
    animation: writeLine 3s infinite;
}

.blog-lines span:nth-child(1) { width: 80%; }
.blog-lines span:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.blog-lines span:nth-child(3) { width: 70%; animation-delay: 1s; }

@keyframes writeLine {
    0% { transform: translateX(-100%); opacity: 0; }
    20% { transform: translateX(0); opacity: 0.7; }
    80% { transform: translateX(0); opacity: 0.7; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Social Media Animation */
.social-animation {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.social-circle i {
    color: white;
    font-size: 24px;
}

.social-waves span {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: ripple 2s infinite;
    opacity: 0;
}

.social-waves span:nth-child(1) { width: 80px; height: 80px; animation-delay: 0s; }
.social-waves span:nth-child(2) { width: 100px; height: 100px; animation-delay: 0.2s; }
.social-waves span:nth-child(3) { width: 120px; height: 120px; animation-delay: 0.4s; }

@keyframes ripple {
    0% { transform: scale(1); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Marketing Animation */
.marketing-animation {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding-bottom: 20px;
}

.chart-bars span {
    display: inline-block;
    width: 30px;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s infinite;
    transform-origin: bottom;
}

.chart-bars span:nth-child(1) { height: 60px; animation-delay: 0s; }
.chart-bars span:nth-child(2) { height: 90px; animation-delay: 0.2s; }
.chart-bars span:nth-child(3) { height: 120px; animation-delay: 0.4s; }
.chart-bars span:nth-child(4) { height: 150px; animation-delay: 0.6s; }

@keyframes growBar {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; }
}
