:root {
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: #111111;
    --border-subtle: #222222;
    --border-hover: #333333;
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --accent-glow: rgba(0, 112, 243, 0.5);
    --accent-solid: #0070F3;
    --accent-hover: #0761d1;
    
    --purple-glow: rgba(121, 40, 202, 0.5);
    --purple-solid: #7928CA;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-bg: rgba(0, 0, 0, 0.7);
    --title-gradient: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
}

[data-theme="light"] {
    --bg-base: #f7f7f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: #e2e2e5;
    --border-hover: #a1a1a1;
    
    --text-main: #111111;
    --text-muted: #666666;
    
    --accent-glow: rgba(0, 112, 243, 0.15);
    --purple-glow: rgba(121, 40, 202, 0.15);

    --nav-bg: rgba(255, 255, 255, 0.85);
    --title-gradient: linear-gradient(180deg, #000000 0%, #666666 100%);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: clip;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* Base Typo */
h1, h2, h3, h4 {
    letter-spacing: -0.04em;
    font-weight: 600;
    line-height: 1.1;
}

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

/* Background Effects */
.ambient-glow {
    position: fixed;
    top: -20vh;
    left: 20vw;
    width: 60vw;
    height: 50vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}
.ambient-glow.alt {
    top: 40vh;
    left: -20vw;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 60%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover {
    color: var(--text-main);
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}
.lang-select:hover {
    color: var(--text-main);
}

.nav-cta {
    background: var(--text-main);
    color: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s;
}
.nav-cta:hover {
    transform: scale(1.05);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 32px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-solid);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.4);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(0, 112, 243, 0.6);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--border-subtle);
    border-color: var(--text-muted);
}

/* Feature Grid */
.features-section {
    padding: 120px 0;
}

.section-head {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.grid-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s;
    overflow: hidden;
    position: relative;
}
.card:hover {
    border-color: var(--border-hover);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Specific Cards */
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-12 { grid-column: span 12; }

.card-img-wrap {
    margin-top: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    display: block;
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card.highlight {
    border-color: var(--accent-solid);
    background: linear-gradient(180deg, rgba(0,112,243,0.05) 0%, rgba(0,0,0,0) 100%);
}

.tier-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.highlight .tier-name {
    color: var(--accent-solid);
}

.tier-price {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.tier-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-features li::before {
    content: '✓';
    color: var(--text-main);
    font-size: 0.8rem;
}

.tag-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-solid);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
    background: var(--bg-card);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-disclaimer {
    max-width: 400px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.link-group a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .grid-bento {
        display: grid;
        grid-template-columns: 1fr;
    }
    .col-8, .col-4, .col-5, .col-6, .col-7, .col-12 {
        grid-column: span 1 !important;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-top {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.lightbox-close:hover {
    transform: scale(1.1);
}
