/* De-AI Design Updates - "Modern & Clean" */
:root {
    --bg-color: #0d1117;
    /* GitHub Dark Dimmed background */
    --bg-secondary: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --primary-color: #238636;
    /* GitHub Green */
    --primary-hover: #2ea043;
    --accent: #58a6ff;
    /* GitHub Blue */
    --border-color: #30363d;
    --card-bg: #161b22;
    --container-width: 1200px;
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.gradient-text {
    /* Removed gradient for a more solid, professional look */
    color: var(--text-primary);
    display: inline-block;
}

h1,
h2,
h3 {
    line-height: 1.25;
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid rgba(240, 246, 252, 0.1);
}

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

.btn-secondary {
    background-color: #21262d;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #30363d;
    border-color: #8b949e;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
}

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

.badge {
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2rem;
    font-weight: 400;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.stat-num {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

/* Hero Image */
.hero-image-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 6px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--text-secondary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #21262d;
    /* Dark gray */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-showcase {
    display: flex;
    justify-content: center;
}

.demo-img {
    max-width: 800px;
    /* Constrained image size */
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* Reviews - Horizontal Infinite Scroll */
.reviews {
    padding: 6rem 0;
    overflow: hidden;
    /* Prevent horizontal page overflow */
}

/* Container limits visibility, hides scrollbar */
.reviews-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Optional: Fade masks on sides can be added here if needed */
}

/* Track holds all items (original + copy) for marquee animation */
.reviews-track {
    display: flex;
    width: max-content;
    /* 14 items total. Assuming each is ~340px (320px + 1.5rem margin). Total ~5000px.
       Speed: 50px/s => ~100s for full loop. Half loop ~50s. */
    animation: scroll 60s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by exactly half the track (one full set of reviews) to create seamless loop */
    }
}

.review-card {
    min-width: 320px;
    max-width: 320px;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    margin-right: 1.5rem;
    /* Use margin instead of flex gap for precise marquee calculation */
    flex-shrink: 0;
    /* Prevent shrinking */
    user-select: none;
    /* Good for marquee */
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.quote-icon {
    margin-left: auto;
    color: var(--border-color);
    width: 20px;
    height: 20px;
}

.review-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* CTA */
.cta {
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4rem 2rem;
    border-radius: 6px;
}

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

.cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: var(--bg-secondary);
}

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

.footer-brand .logo {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .navbar .nav-links,
    .btn-primary.sm-hidden {
        display: none;
    }

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

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

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

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

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