:root {
    --dark-blue: #1a365d;
    --blue-hover: #0D203B;
    --leaf-green: #68a357;
    --green-hover: #568a47;
    --strawberry: #ff5e62;
    --lemon: #f7d038;
    --blueberry: #4a90e2;
    --bg-light: #fdfdfd;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

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

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

/* Header & Nav */
header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center; /* Vertically centers image and text */
    gap: 10px;           /* Space between the icon and "Kudasoft" */
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}

.nav-logo-img {
    height: 42px;        /* Adjust this to match your font size height */
    width: auto;         /* Maintains aspect ratio */
    object-fit: contain;
}

/* Optional: Add a slight hover effect to the whole logo */
.logo-container:hover .nav-logo-img {
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.3s ease;
}

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

.logo .kuda {
    color: var(--leaf-green);
}

.logo .soft {
    color: var(--dark-blue);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li { margin-left: 30px; }

nav ul li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
}

/* Navigation Dropdown Logic */
nav ul li {
    position: relative;
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative; /* Necessary to anchor the sliding underline */
    transition: color 0.3s ease; /* Smooth transition for the text color */
}

nav ul li a:hover {
    color: var(--leaf-green);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--leaf-green);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Keep the "Get Started" button link from getting an underline */
nav ul li a.btn-small::after {
    display: none;
}

.nav-toggle {
    display: none; /* Hidden on desktop screens */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--dark-blue);
    transition: background 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--dark-blue);
    transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Show hamburger button */
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        
        /* Keep it closed and hidden by default */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    /* Target state when menu is actively toggled open */
    .nav-menu.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column; /* Stack options vertically */
        width: 100%;
        padding: 20px 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Convert desktop dropdown layout to standard expanding links */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #f9fbf9;
        transform: none;
        width: 100%;
        display: none; /* Controlled by toggle action later if desired */
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    nav ul li a.btn-small {
        margin: 15px auto 0 auto;
        display: inline-block;
        width: 80%;
    }

    /* Hamburger Animation: Turns icon into an 'X' close indicator when active */
    .nav-toggle.is-active .hamburger {
        background: transparent;
    }
    .nav-toggle.is-active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    .nav-toggle.is-active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
}

.arrow {
    font-size: 0.8rem;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-blue);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f4f7f4;
    color: var(--leaf-green);
}

/* Show menu on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure a small "bridge" so the menu doesn't disappear when moving the mouse */
.dropdown::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    bottom: -20px;
    left: 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 20px;
    gap: 50px;
}

.hero-content { flex: 1; }

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark-blue);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span { color: var(--leaf-green); }

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    nav ul { display: none; }
}

.btn-primary {
    background: var(--dark-blue);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.15);
}

.btn-secondary {
    color: var(--dark-blue);
    font-weight: 600;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-logo-graphic {
    font-size: 10rem;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* App Cards */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-blue);
}

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

.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    max-width: 333px;
}

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

.card.strawberry:hover {
    border-color: var(--strawberry);
}

.card.lemon:hover {
    border-color: var(--lemon);
}

.card.blueberry:hover {
    border-color: var(--blueberry);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 700;
    color: var(--leaf-green);
}

.learn-more:hover {
    color: var(--green-hover);
}

/* Footer Section */
footer {
    background-color: #f9fbf9; /* Very light green tint */
    padding: 60px 0 20px 0;
    border-top: 1px solid #eee;
    color: var(--dark-blue);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 10px;
    color: #666;
}

.footer-links h4, 
.footer-social h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--leaf-green);
}

.footer-contact p {
    list-style: none;
    padding: 0;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
    margin-bottom: 10px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--dark-blue);
    border-radius: 50%;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--leaf-green);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Contact Section */
#contact {
    padding: 80px 20px;
    background-color: #fff;
    border-radius: 40px;
    margin-bottom: 80px;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--leaf-green);
}

.btn-submit {
    background-color: var(--leaf-green);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.btn-submit:active {
    transform: translateY(0);
}

/* Pricing Section */
#pricing {
    padding: 80px 20px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
    position: relative;
    text-align: center;
}

.price-card.popular {
    border-color: var(--strawberry);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--strawberry);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.price-desc {
    color: #666;
    margin-bottom: 25px;
    min-height: 50px;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features li::before {
    content: "✓";
    color: var(--leaf-green);
    font-weight: bold;
    margin-right: 10px;
}

.features li {
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
}

.product-details {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 20px;
    margin-top: -40px;
    margin-bottom: 60px;
    border: 1px dashed #ddd;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.detail-list li::before {
    content: "•";
    font-weight: bold;
    margin-right: 10px;
}

.btn-outline {
    display: block;
    padding: 15px;
    border: 2px solid var(--dark-blue);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--dark-blue);
    color: white;
}

.price-card.premium .btn-primary {
    display: block;
    margin-right: 0;
    background-color: var(--strawberry);
    border: 2px solid var(--strawberry);
    transition: all 0.2s ease;
}

.price-card.premium .btn-primary:hover {
    background-color: #e04448; 
    border-color: #e04448;
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(255, 94, 98, 0.3);
}

.price-card.premium .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 94, 98, 0.2);
}

.payment-methods {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}
.card-icons {
    font-size: 1.5rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}

/* About Section Styles */
#about {
    padding: 100px 20px;
    background: #fdfdfd;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.mission-statement {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--leaf-green);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.open-source-box {
    background: #f4f7f6;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--leaf-green);
    margin-top: 30px;
}

.open-source-box h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    text-decoration: none;
    color: white;
    background: #24292e; /* GitHub Brand Color */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.github-link:hover {
    background: #000;
}

.seed-graphic {
    font-size: 12rem;
    text-align: center;
    animation: grow 3s ease-in-out infinite alternate;
}

@keyframes grow {
    from { transform: scale(0.9); }
    to { transform: scale(1.1); }
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .github-link {
        justify-content: center;
    }
}

/* Terms Section */
.legal-body {
    padding: 80px 0;
    line-height: 1.8;
    color: #444;
}

.legal-body h1 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.legal-body h2 {
    color: var(--dark-blue);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-left: 4px solid var(--leaf-green);
    padding-left: 15px;
}

.legal-body p {
    margin-bottom: 20px;
}

.legal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.highlight-box {
    background: #f9fbf9;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin: 30px 0;
}

/* Refund Section */
.legal-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.refund-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.policy-card {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.policy-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.policy-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.refund-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
}

.refund-footer a {
    color: var(--leaf-green);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .refund-grid {
        grid-template-columns: 1fr;
    }
    .legal-box {
        padding: 30px 20px;
    }
}

/* Privacy Section */
.privacy-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    color: var(--dark-blue);
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.privacy-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #666;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content .email {
    color: var(--leaf-green);
    font-weight: 600;
    text-decoration: none;
}

.terms-description {
    margin-top: 30px;
}

/* Lingo App Showcase Section */
#lingo-app {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fdfdfd 0%, #f4f8f4 100%);
    border-radius: 40px;
    margin-bottom: 40px;
}

.lingo-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-content {
    flex: 1.2;
}

.app-badge {
    background: rgba(104, 163, 87, 0.1);
    color: var(--leaf-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.showcase-content h2 {
    color: var(--dark-blue);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.showcase-content .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-list i {
    font-size: 1.4rem;
    color: var(--leaf-green);
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.benefit-list strong {
    color: var(--dark-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.benefit-list p {
    color: #666;
    font-size: 0.95rem;
}

/* Window Mockup CSS */
.showcase-preview {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.window-mockup {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid #eef2ee;
    overflow: hidden;
}

.window-header {
    background: #f3f5f3;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5eae5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-size: 0.85rem;
    color: #666;
    margin-left: 10px;
    font-weight: 600;
}

.window-body {
    padding: 20px;
    background: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mock-controls {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #888;
    background: #f8faf8;
    padding: 8px;
    border-radius: 8px;
}

.mock-text-area {
    padding: 20px 0;
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
}

.mock-status {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 900px) {
    .lingo-showcase {
        flex-direction: column;
        gap: 40px;
    }
}

/* Pure CSS Carousel Section */
#app-gallery {
    padding: 60px 20px;
    text-align: center;
}

.carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Hide the radio buttons out of view */
.carousel-wrapper input[type="radio"] {
    display: none;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden; /* Clips elements sliding out of frame */
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #eee;
}

.carousel-track {
    display: flex;
    width: 400%; /* Total scale width for all distinct 100% wide tracks */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth mechanical glide */
}

.carousel-slide {
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slide-caption {
    background: #f9fbf9;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.slide-caption h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.slide-caption p {
    color: #666;
    font-size: 0.9rem;
}

/* Carousel Control Engines */
#slide-1:checked ~ .carousel-viewport .carousel-track { transform: translateX(0%); }
#slide-2:checked ~ .carousel-viewport .carousel-track { transform: translateX(-25%); }
#slide-3:checked ~ .carousel-viewport .carousel-track { transform: translateX(-50%); }
#slide-4:checked ~ .carousel-viewport .carousel-track { transform: translateX(-75%); }

/* Navigation Dots Styles */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.dot-btn {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-btn:hover {
    background-color: #bbb;
}

/* Bind individual active configurations to highlight buttons organically */
#slide-1:checked ~ .carousel-dots .dot-btn:nth-child(1),
#slide-2:checked ~ .carousel-dots .dot-btn:nth-child(2),
#slide-3:checked ~ .carousel-dots .dot-btn:nth-child(3),
#slide-4:checked ~ .carousel-dots .dot-btn:nth-child(4) {
    background-color: var(--leaf-green);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(104, 163, 87, 0.4);
}

/* Contact Flow Smooth States */
.contact-success-message {
    display: none; /* Kept out of sight initially */
    text-align: center;
    padding: 40px 20px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-success-message h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-success-message p {
    color: #666;
    margin-bottom: 30px;
}

/* State helper toggled by JavaScript */
.form-submitted .contact-form,
.form-submitted .contact-header {
    display: none;
}

.form-submitted .contact-success-message {
    display: block;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Platform Download Section */
#app-download {
    padding: 60px 20px;
    text-align: center;
}

.download-container {
    max-width: 900px;
    margin: 0 auto;
}

.download-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.platform-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.platform-icon {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.platform-card h4 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.platform-status {
    color: var(--leaf-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.badge-soon {
    background: #fff8e1;
    color: #b78103;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.platform-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
    flex-grow: 1; /* Pushes buttons to line up perfectly at the bottom */
}

/* Android Notify Button */
.btn-notify {
    border: 2px solid var(--leaf-green);
    color: var(--leaf-green);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-notify:hover {
    background: var(--leaf-green);
    color: white;
}

/* Mobile Responsive Layout */
@media (max-width: 650px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Changelog Page Core Layout --- */
.changelog-hero {
    background: linear-gradient(180deg, #f4f8f4 0%, #ffffff 100%);
    padding: 80px 20px 40px 20px;
    text-align: center;
}

.changelog-hero h1 {
    color: var(--dark-blue);
    font-size: 2.8rem;
    margin: 10px 0;
}

.changelog-hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.changelog-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Vertical Timeline Graphic Line --- */
.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid #eef2ee; /* The long continuous timeline line */
}

.timeline-header {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-header h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin: 15px 0 10px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

/* Custom timeline node points */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px; /* Positions node precisely directly over the border track */
    top: 5px;
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
}

/* Light up the most recent version node */
.timeline-item:first-child::before {
    background: var(--leaf-green);
    box-shadow: 0 0 0 5px rgba(104, 163, 87, 0.2);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.version-tag {
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.version-tag.current {
    background: rgba(104, 163, 87, 0.1);
    color: var(--leaf-green);
}

.release-date {
    color: #888;
    font-size: 0.9rem;
}

.timeline-content h2 {
    color: var(--dark-blue);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.release-summary {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- Change Feature Lists --- */
.change-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.change-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    width: 85px;
    text-align: center;
    flex-shrink: 0;
}

/* Badge Color Definitions */
.added .change-badge { background: #e6f4ea; color: #137333; }
.improved .change-badge { background: #e8f0fe; color: #1a73e8; }
.fixed .change-badge { background: #fce8e6; color: #c5221f; }

.change-details strong {
    color: var(--dark-blue);
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.change-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustment for small viewports */
@media (max-width: 600px) {
    .timeline {
        padding-left: 25px;
    }
    .timeline-item::before {
        left: -31px;
    }
    .change-list li {
        flex-direction: column;
        gap: 5px;
    }
}

/* Mini Changelog Section */
#lingo-updates {
    padding: 20px 20px 60px 20px;
    display: flex;
    justify-content: center;
}

.mini-changelog-card {
    background: #ffffff;
    border: 1px solid #eef2ee;
    border-radius: 20px;
    padding: 30px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-changelog-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Pulsing dot animation to signify live code updates */
.update-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--leaf-green);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.update-pulse::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--leaf-green);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulseGlow 2s infinite ease-in-out;
}

.mini-changelog-header h3 {
    color: var(--dark-blue);
    font-size: 1.15rem;
    margin: 0;
}

.mini-changelog-header p {
    color: #666;
    font-size: 0.9rem;
    margin: 2px 0 0 0;
}

.text-green {
    color: var(--leaf-green);
}

/* Change Highlights List */
.mini-change-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-change-highlights li {
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tiny colored dots representing categories */
.dot-added, .dot-fixed, .dot-improved {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-added { background-color: #137333; }
.dot-fixed { background-color: #c5221f; }
.dot-improved { background-color: #1a73e8; }

/* Footer Link Interaction */
.mini-changelog-footer {
    border-top: 1px solid #f4f7f4;
    padding-top: 15px;
    margin-top: 5px;
}

.btn-text-link {
    color: var(--leaf-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-text-link i {
    transition: transform 0.2s ease;
}

.btn-text-link:hover {
    color: var(--dark-blue);
}

.btn-text-link:hover i {
    transform: translateX(4px); /* Arrow nudges forward on hover */
}

/* Animations */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* MS Store download button */
ms-store-badge::part(img) {
    max-height: 64px;
}

/* --- Roadmap Section Styles --- */
.roadmap-section {
    padding-bottom: 40px;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 50px;
}

.roadmap-badge {
    background-color: rgba(26, 54, 93, 0.05);
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.roadmap-header h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin: 15px 0 10px 0;
}

/* Three Column Layout Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.roadmap-card {
    background: #ffffff;
    border: 1px solid #eef1ee;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

/* Subtle accent highlighting for the active phase card */
.roadmap-card.phase-now {
    border-top: 4px solid var(--leaf-green);
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 15px;
}

.phase-desc {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 25px 0;
    min-height: 40px; /* Aligns item lists horizontally */
}

/* Roadmap Checklists */
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.roadmap-list li {
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.3;
}

.roadmap-list i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Status Icons Formatting */
.roadmap-list i.done { color: var(--leaf-green); }
.roadmap-list i.loading { color: #1a73e8; animation: spin 2s infinite linear; }
.roadmap-list i.todo { color: #cbd5e1; }

/* Status Dot Asset Elements */
.pulse-dot-green, .static-dot-blue, .static-dot-gray {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pulse-dot-green { background-color: var(--leaf-green); position: relative; }
.pulse-dot-green::after {
    content: ''; width: 100%; height: 100%; background-color: var(--leaf-green);
    border-radius: 50%; position: absolute; animation: pulse 2s infinite ease-in-out;
}
.static-dot-blue { background-color: #1a73e8; }
.static-dot-gray { background-color: #94a3b8; }

/* Animation Keyframes */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

/* Responsive adjustments */
@media (max-width: 900px) {
    .roadmap-grid { grid-template-columns: 1fr; gap: 20px; }
    .phase-desc { min-height: unset; }
}