/* Base Styles */
:root {
    --primary-color: #00C4B3;
    --primary-dark: #00A896;
    --secondary-color: #FF6F61;
    --secondary-dark: #E05A50;
    --accent-color: #FFD166;
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    
    --font-primary: 'Chillax', sans-serif;
    --font-secondary: 'Archivo', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.text-highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--dark-color);
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
}

.logo-highlight {
    color: var(--primary-color);
}

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

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    padding: 0;
}

.menu-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 196, 179, 0.1) 0%, rgba(0, 196, 179, 0) 70%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.1) 0%, rgba(255, 111, 97, 0) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: fit-content;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.hero-image {
    flex: 1;
    position: relative;
}

.script-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 500px;
    margin-left: auto;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.script-card:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.script-tabs {
    display: flex;
    background-color: var(--dark-color);
}

.tab {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

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

.script-body {
    padding: 25px;
    min-height: 350px;
    background-color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.script-line {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }
.delay-5 { animation-delay: 2.5s; }
.delay-6 { animation-delay: 3s; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    animation: bounce 1.5s infinite ease-in-out;
}

.scroll-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card:hover .feature-icon {
    transform: rotate(15deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.feature-ornament {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 196, 179, 0.1), rgba(255, 111, 97, 0.1));
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover .feature-ornament {
    transform: scale(1.5);
}

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

.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
}

.step-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--light-gray);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    margin-left: 30px;
    padding-top: 15px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

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

.step-icon {
    position: absolute;
    right: 0;
    top: 15px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}

/* Examples Section */
.examples {
    padding: 100px 0;
    background-color: white;
}

.examples-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tab-button:hover {
    background-color: #e2e6ea;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

.examples-content {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.script-example {
    display: none;
    padding: 30px;
}

.script-example.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

.example-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.example-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.example-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.example-body {
    line-height: 1.8;
}

.example-body p {
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.testimonial-quote {
    position: relative;
    margin-bottom: 25px;
    font-style: italic;
    color: var(--dark-color);
}

.testimonial-quote i {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 3rem;
    color: rgba(0, 196, 179, 0.1);
    z-index: 0;
}

.testimonial-quote p {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* AI Demo Section */
.ai-demo {
    padding: 100px 0;
    background-color: white;
}

.demo-container {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-input {
    flex: 1;
    padding: 40px;
    background-color: var(--light-gray);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

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

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 179, 0.2);
}

.demo-output {
    flex: 1;
    padding: 40px;
    position: relative;
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--gray-color);
    background-color: rgba(255, 111, 97, 0.05);
    border-radius: var(--radius-md);
}

.output-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.output-result {
    display: none;
    height: 100%;
    white-space: pre-wrap;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-tagline {
    margin: 15px 0 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.links-column {
    flex: 1;
    min-width: 150px;
}

.links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.links-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

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

/* Animations */
.pulse-animate {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 196, 179, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 196, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 196, 179, 0);
    }
}

.typing-animation {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .cta-button {
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .script-card {
        margin: 0 auto;
        transform: none;
    }
    
    .demo-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active .menu-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .menu-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .step-icon {
        position: static;
        margin-top: 20px;
    }
}