:root {
    --bg-dark: #0b0f19;
    --bg-card: #151a26;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --text-main: #f8f9fa;
    --text-muted: #abb2bf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: rgba(0, 242, 254, 0.1);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 80vh;
    padding: 15% 5% 5%;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 80%;
}

kbd {
    background-color: var(--bg-card);
    border: 1px solid #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.secondary-btn {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #333;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #1e2536;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-window {
    background-color: var(--bg-card);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a3142;
    transform: rotate3d(1, -1, 0, 15deg);
    transition: transform 0.3s;
}

.mockup-window:hover {
    transform: rotate3d(0, 0, 0, 0deg);
}

.mockup-header {
    background-color: #111520;
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.mockup-header .title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-body {
    padding: 20px;
}

.query {
    background-color: #1e2536;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: monospace;
    color: var(--primary);
}

.response {
    color: var(--text-main);
    margin-bottom: 20px;
}

.chat-input-mock {
    display: flex;
    justify-content: space-between;
    background-color: #0b0f19;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
}

.chat-input-mock span {
    color: var(--text-muted);
}

.chat-input-mock button {
    background-color: var(--primary);
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    color: #fff;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 5rem 5%;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid,
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card,
.step {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.feature-card .icon,
.step-number {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.download-card {
    background: linear-gradient(135deg, #151a26 0%, #0b0f19 100%);
    border: 1px solid #2a3142;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 16px;
}

.large-btn {
    display: inline-block;
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer {
    background-color: #05070c;
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
}

/* Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.lang-selector {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 0.4rem;
    border-radius: 4px;
    margin-left: 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23abb2bf%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem;
}

.lang-selector:focus {
    outline: none;
    border-color: var(--primary);
}

.lang-selector option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        position: relative;
        /* Change from fixed to relative for better mobile scrolling at the top */
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links a {
        margin-left: 0;
        margin: 0 0.5rem;
    }

    .lang-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 10% 5% 5%;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .mockup-window {
        transform: rotate3d(1, -1, 0, 5deg);
        /* reduce extreme rotation on small screens */
    }

    .section {
        padding: 3rem 5%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        margin-left: 0;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .primary-btn,
    .secondary-btn,
    .large-btn {
        width: 100%;
        text-align: center;
    }

    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}