:root {
    --bg-color: #0A0A0F;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary-color: #6366f1;
    --card-bg: rgba(20, 20, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
}

/* Background animated orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Ambient Mouse Glow */
.cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    will-change: transform, left, top;
}

/* Deep Background Cryptography Matrix */
#crypto-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3; /* Deepest structural layer behind orbs */
    opacity: 0.15; /* Maintain extreme subtlety */
    pointer-events: none;
}

/* Container & Typography */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-purple {
    color: var(--primary-color);
}

.section-padding {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    border-radius: 8px; /* For rounded corners */
}

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

.nav-center-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-right-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

@media (max-width: 1100px) {
    .nav-center-links {
        position: relative;
        left: auto;
        transform: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Store Badge Rules */
.store-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Provides 1/4 badge height clear space natively */
    margin: 25px 0 35px 0;
    align-items: center;
}

.store-badge-img {
    height: 60px; /* Exact same size per rules */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    display: block;
}

.store-badge-img:hover {
    transform: scale(1.05); /* Avoid stretching per guidelines */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    max-width: 90%;
}

.tech-stack {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.tech-stack span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image {
    position: relative;
    perspective: 1000px;
}

.device-frame-mockup {
    position: relative;
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.device-frame-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.app-mockup {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 60%);
    z-index: 1;
}

/* Features */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 20, 30, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(40, 40, 60, 0.5) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    border-radius: 40px;
}

.feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-secondary);
}

/* Gallery Section (New Interface replacing Showcase) */
/* Gallery Section (Liquid Glass Premium Scroll Pinning) */
.gallery-scroll-container {
    height: 600vh; /* Space to scroll vertically while translating horizontally */
    position: relative;
    background: transparent;
}

.gallery-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    margin-inline: auto;
    max-width: 700px;
    padding: 0 5%;
}
.gallery-header h2 { font-size: 3rem; margin-bottom: 16px; font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
.gallery-header p { color: var(--text-secondary); font-size: 1.15rem; }

.gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 80px; 
    padding: 0 calc(50vw - 160px); 
    width: max-content;
    will-change: transform;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    flex: 0 0 320px;
    border-radius: 24px; /* More rounded premium feel */
    overflow: hidden;
    width: 320px; /* Fixed sizing for uniform look */
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    flex-grow: 0;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 22px; /* slight inner radius */
    padding: 6px; /* Glass bezel effect */
}

.gallery-overlay {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
    padding: 24px 20px 20px;
    transform: translateY(110%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 600;
}

/* QR Code */
.qr-code {
    width: 140px; 
    height: 140px; 
    border-radius: 12px; 
    background: white; 
    padding: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin: 0 auto;
    display: block;
}

/* CTA */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 80px 40px;
    border-radius: 36px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1; /* keep text above pseudo glow */
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 35px 80px rgba(139, 92, 246, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    background: rgba(10, 10, 15, 0.4);
}

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

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

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    color: #64748b;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 101;
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 23, 0.98);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-dropdown.active {
    max-height: 400px;
    padding: 20px;
}

.mobile-dropdown .mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s;
}

.mobile-dropdown .mobile-link:last-child {
    border-bottom: none;
}

.mobile-dropdown .mobile-link:hover {
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 { font-size: 3.5rem; }
    
    .hero-text p { margin: 0 auto 30px; }
    
    .store-badges-container { justify-content: center; }
    
    .tech-stack { justify-content: center; }
    
    .nav-center-links, .nav-right-buttons { display: none; }
    
    .mobile-menu-btn { display: block; }
    
    .footer-content { flex-direction: column; gap: 40px; }
    
    .cursor-glow { display: none !important; }
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.active.reveal-up, .active.reveal-left, .active.reveal-right {
    opacity: 1;
    transform: translate(0, 0);
}

.feature-card.reveal-up, .gallery-item.reveal-up {
    transition-delay: calc(var(--delay) * 0.1s);
}

/* Magic Border Glow Hover Effect */
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes spin-border {
    to { --border-angle: 360deg; }
}

.gallery-item::after, .feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px; /* border thickness */
    background: conic-gradient(from var(--border-angle), transparent 25%, rgba(139, 92, 246, 0.4) 50%, #a78bfa 80%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 20; /* above contents to act as border */
}

.gallery-item:hover::after, .feature-card:hover::after {
    opacity: 1;
    animation: spin-border 5s linear infinite;
}
