:root {
    /* Color Palette - Premium Dark */
    --bg-dark: #080C0C;
    --bg-secondary: #0D1616;
    --bg-card: #141F1F;
    --primary: #13ECEC;
    --primary-glow: rgba(19, 236, 236, 0.4);
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* --- Components --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-white);
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(19, 236, 236, 0.1);
    border: 1px solid rgba(19, 236, 236, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- Navbar --- */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 12, 0.7);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* --- Language Selector --- */

.lang-selector {
    position: relative;
    margin-left: 24px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--border);
    color: var(--text-white);
}

.lang-toggle svg {
    flex-shrink: 0;
}

.lang-toggle .chevron {
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-toggle {
    border-color: var(--primary);
    color: var(--text-white);
}

.lang-selector.open .lang-toggle .chevron {
    transform: rotate(180deg);
}

.lang-code {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

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

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: var(--glass);
    color: var(--text-white);
}

.lang-option.active {
    background: rgba(19, 236, 236, 0.1);
    color: var(--primary);
}

/* --- Hero Section --- */

.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 48px;
}

.app-downloads {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.store-link img {
    height: 48px;
    transition: transform 0.3s ease;
}

.store-link img.google-play {
    height: 64px; /* Adjustment for the play store badge white border */
}

.store-link:hover img {
    transform: translateY(-2px);
}

.platform-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* --- Mockups --- */

.hero-visual {
    position: relative;
}

.mockup-frame {
    background: #000;
    border: 12px solid #1A1A1A;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    position: relative;
}

.tablet-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* This is a helper for when the actual images aren't present yet */
.placeholder-img[src$=".png"] {
    position: relative;
}
.placeholder-img[src$=".png"]::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px dashed var(--text-dim);
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

/* --- Features --- */

.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(19, 236, 236, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.feature-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--border);
}

/* --- Ecosystem --- */

.ecosystem {
    padding: 140px 0;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.ecosystem-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
}

.ecosystem-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 48px;
}

.ecosystem-list li {
    margin-bottom: 24px;
}

.ecosystem-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.ecosystem-list li span {
    color: var(--text-dim);
}

.ecosystem-visual {
    position: relative;
    padding: 40px;
}

.device-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.tablet-mock {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 8px solid #1A1A1A;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.phone-mock {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 180px;
    aspect-ratio: 9 / 19;
    background: #000;
    border: 6px solid #1A1A1A;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 10;
}

/* --- Footer --- */

.footer {
    padding: 100px 0 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-dim);
    max-width: 240px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.version-info {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.5;
    margin-bottom: 8px;
}

/* --- Before/After Comparison Slider --- */

.showcase {
    padding: 120px 0;
    background: var(--bg-dark);
}

.showcase .section-header {
    margin-bottom: 60px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-white);
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    cursor: col-resize;
}

.comparison-slider .img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-slider .img-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-slider .current-layer {
    z-index: 2;
    clip-path: inset(0 30% 0 0);
    animation: slideReveal 6s ease-in-out infinite;
}

.comparison-slider .generated-layer {
    z-index: 1;
}

@keyframes slideReveal {
    0%, 100% {
        clip-path: inset(0 30% 0 0);
    }
    50% {
        clip-path: inset(0 90% 0 0);
    }
}

.comparison-slider .divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    z-index: 10;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: dividerMove 6s ease-in-out infinite;
}

@keyframes dividerMove {
    0%, 100% {
        left: 70%;
    }
    50% {
        left: 10%;
    }
}

.comparison-slider .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-glow);
}

.comparison-slider .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--bg-dark);
    border-right: 8px solid var(--bg-dark);
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comparison-labels .label-current {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-labels .label-generated {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

.comparison-labels .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive --- */

@media (max-width: 1100px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-grid, .ecosystem-grid { gap: 40px; }
}

@media (max-width: 900px) {
    .hero-grid, .ecosystem-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content, .ecosystem-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-sub, .ecosystem-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-links { display: none; }

    /* Language selector on mobile - icon only */
    .lang-selector {
        margin-left: auto;
    }

    .lang-toggle .lang-code,
    .lang-toggle .chevron {
        display: none;
    }

    .lang-toggle {
        padding: 10px;
    }

    .hero { padding-top: 140px; }
    
    .device-stack { margin-top: 60px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.75rem; }
    .app-downloads { flex-direction: column; }
    .store-link img { height: 44px; }
}