:root {
    --bg-dark: #020205;
    --bg-card: rgba(15, 23, 42, 0.4);
    --accent-blue: #3b82f6;
    --accent-indigo: #818cf8;
    --accent-purple: #a855f7;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient / Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.dark-mode {
    background-color: var(--bg-dark);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(2, 2, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    height: 1.8rem;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary-small {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-primary {
    display: inline-block;
}

.btn-primary img {
    height: 48px;
    transition: all 0.3s ease;
}

.btn-primary:hover img {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.btn-secondary {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-highlight);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 12rem 2rem 8rem;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h1 span {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Hero Visual */
.hero-visual {
    width: 100%;
    max-width: 1100px;
    animation: heroReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.app-mockup-wrapper {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Features Grid */
.features-container {
    padding: 8rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 3rem;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 3;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Story/Info Sections */
.info-section {
    max-width: 900px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-content {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.story-content h3 {
    color: var(--text-primary);
    margin-top: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.story-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.story-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Support Page Extras */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
}

.faq-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem;
    background: rgba(2, 2, 5, 0.95);
    margin-top: 8rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Use Cases Section */
.use-cases-section {
    padding: 8rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.use-case-card {
    position: relative;
}

.use-case-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.use-case-card:hover::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Interface Gallery Section */
.interface-gallery {
    padding: 12rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem !important;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    text-align: left;
}

.gallery-caption h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal */
.lightbox-trigger {
    cursor: pointer;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 1.2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: lightboxZoomIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-primary);
    transform: scale(1.2);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Mobile menu needed but keeping it simple for now */
    }
    
    .hero {
        padding-top: 10rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}