@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #888888;
    --accent-color: #e1df32;
    /* Extracted Lime */
    --accent-text: #000000;
    --bg-color: #080808;
    --surface-color: #121212;
    --border-color: #222222;
    --text-color: #f1f1f1;
    --text-muted: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    /* Transparent for hero integration */
}

.logo-img {
    height: 35px;
    width: auto;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--accent-text);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Hero Section - Split Layout */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background: radial-gradient(circle at 70% 50%, #1a1a1a 0%, #080808 60%);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* Scrolling Accent Bar */
.scrolling-bar {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    color: var(--accent-text);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.05);
    /* Skewed effect */
    z-index: 5;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.scrolling-bar.secondary {
    background: white;
    color: black;
    bottom: 0px;
    transform: rotate(2deg) scale(1.05);
    z-index: 4;
}

.scrolling-content {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    /* Slower speed */
}

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

    100% {
        transform: translateX(-50%);
    }
}

.scrolling-item {
    display: inline-block;
    margin-right: 50px;
}

/* Features stylized as 'Services' */
.features {
    padding: 8rem 10%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-top: 2px solid var(--border-color);
    transition: border-color 0.3s;
    text-align: left;
}

.feature-card:hover {
    border-top-color: var(--accent-color);
}

.feature-card i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Shapes/Abstract */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225, 223, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    right: -100px;
    pointer-events: none;
}

/* Login Button Interaction */
#loginLink:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Modern Language Selector */
.language-selector {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.current-lang:hover,
.current-lang.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(225, 223, 50, 0.1);
}

.current-lang i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.current-lang.active i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #151515;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    padding-left: 25px;
    /* Slight movement effect */
}

.lang-option.selected {
    color: var(--accent-color);
    background: rgba(225, 223, 50, 0.05);
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* --- New Sections (How it Works, Highlights, FAQ, CTA) --- */

/* Section Setup */
.section-common {
    padding: 6rem 10%;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-centered {
    text-align: center;
}

.section-centered h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step-card {
    background: var(--surface-color);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(225, 223, 50, 0.1);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

/* Split Section */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 6rem 10%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.split-section:nth-child(even) {
    background-color: var(--surface-color);
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.split-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(225, 223, 50, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 20px;
    padding: 40px;
}

.visual-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: #1a1a1a;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
}

/* CTA Banner */
.cta-banner {
    background: var(--accent-color);
    color: black;
    padding: 5rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: black;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
}

/* Infinite Scroll Use Cases */
.scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: #080808;
    position: relative;
    border-bottom: 1px solid #222;
}

.scroll-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 60s linear infinite;
    padding-left: 30px;
}

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

.use-case-card {
    width: 350px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.use-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.use-card-icon {
    width: 45px;
    height: 45px;
    background: rgba(225, 223, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.use-card-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.use-card-title span {
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.use-card-body p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.use-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-card-body li {
    position: relative;
    padding-left: 15px;
    color: #bbb;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.use-card-body li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Typewriter Effect (Desktop Only) */
#typewriter-wrapper {
    position: absolute;
    width: 600px;
    top: 30%;
    right: 15%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    z-index: 10;
}

.typewriter-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    font-family: 'Plus Jakarta Sans', monospace;
    line-height: 1.3;
    min-height: 3rem;
    display: inline-block;
    text-align: left;
    position: relative;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.typewriter-text::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 5px;
    height: 80%;
    width: 4px;
    background: var(--accent-color);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#typewriter-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    pointer-events: none;
}

#typewriter-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 992px) {
    #typewriter-wrapper {
        display: none !important;
    }
}

/* Typewriter Refinement - Override */
#typewriter-wrapper {
    width: 550px !important;
    top: 25% !important;
    gap: 25px !important;

    /* Container Styling Override */
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    min-height: 240px !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.typewriter-text {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}