:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

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

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

/* Navbar */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

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

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

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

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* for navbar */
}

/* Background decorations */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for gradient text */
    color: white; 
}

/* Specifically highlight "hablar idiomas" with a color gradient */
.hero-text h1 .gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-subtitle strong {
    color: var(--text-main);
}

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

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Hero Visual / Preview Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

.glot-preview {
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.preview-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.preview-card:hover {
    transform: rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.sound-wave {
    position: absolute;
    bottom: -10px;
    display: flex;
    gap: 4px;
    height: 20px;
    align-items: center;
}

.sound-wave span {
    display: block;
    width: 4px;
    background: var(--secondary);
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out;
}

.sound-wave span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { height: 16px; animation-delay: 0.4s; }
.sound-wave span:nth-child(5) { height: 8px; animation-delay: 0.5s; }

.typing-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #0b1120; /* Slightly darker */
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Tech Stack */
.tech-stack {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-right a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

/* Animations */
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-visual {
        margin-top: 40px;
    }
    
    .hero::before, .hero::after {
        display: none; /* Reduce complexity on mobile */
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Roadmap Section */
.roadmap-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.roadmap-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.roadmap-content {
    width: 45%;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.roadmap-item:nth-child(odd) {
    justify-content: flex-start;
}

.roadmap-item:nth-child(even) {
    justify-content: flex-end;
}

.roadmap-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 3;
}

.roadmap-marker.future {
    border-color: var(--text-muted);
}

.roadmap-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.roadmap-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.roadmap-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Community Section */
.community-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    text-align: center;
}

.community-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 20px;
    }
    
    .roadmap-item {
        justify-content: flex-start;
        padding-left: 50px;
    }
    
    .roadmap-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .roadmap-content {
        width: 100%;
    }
    
    .roadmap-marker {
        left: 20px;
    }
}

/* Utility classes for JS animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* How it Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    font-family: var(--font-family);
}

.step-item:hover .step-number {
    color: rgba(99, 102, 241, 0.1);
    transition: color 0.3s ease;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.step-separator {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 30px; /* Align roughly with the text flow */
    display: none; /* Hidden on mobile, flex handles layout */
}

@media (min-width: 768px) {
    .step-separator {
        display: block;
    }
}

/* Developer Badge in Footer */
.developed-by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.dev-logo {
    height: 24px; /* Slightly smaller to fit text line better */
    width: auto;
    border-radius: 4px; /* Less rounded for this specific logo maybe better? or keep 50% if it's circular */
    transition: transform 0.3s ease;
    display: block; /* Removes extra space below inline images */
}

.dev-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Fix responsive steps */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-separator {
        display: none;
    }
    
    .step-number {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: -10px;
        display: block;
    }
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1e1b4b 100%); /* Subtle dark purple/indigo hint */
}

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

.use-case-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.use-case-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.use-case-item .emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.use-case-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.use-case-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SEO Content Section */
.seo-content {
    padding: 60px 0;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.seo-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.seo-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.seo-box strong {
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Open State */
.faq-item.active .faq-answer {
    max-height: 200px; /* Arbitrary large height */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape for final CTA */
}

/* Add animation for the pulse effect on primary buttons */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pulse {
    animation: pulse-glow 2s infinite;
}
