:root {
    --bg-color: #0b0f19;
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #151b2b 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --accent-gradient: linear-gradient(90deg, #f59e0b, #facc15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background: var(--bg-gradient);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.2);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.15);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #111827;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-primary.large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
}

.nav-content {
    max-width: 1200px;
    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-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* navbar offset */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platforms {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.device-mockup {
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.iphone img {
    height: 600px;
    width: auto;
    border-radius: 36px;
    border: 8px solid #1f2937;
}

.ipad {
    position: absolute;
    bottom: -50px;
    right: -20px;
    z-index: 2;
}

.ipad img {
    height: 400px;
    width: auto;
    border-radius: 20px;
    border: 6px solid #1f2937;
}

.float-anim {
    animation: float 6s infinite ease-in-out;
}

/* Description Section */
.card {
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
}

.card h2 {
    margin-bottom: 1.5rem;
}

.card p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

/* Gallery / Screenshots */
.gallery {
    position: relative;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-wrapper::before,
.gallery-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.gallery-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.gallery-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.gallery-scroll {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 3rem calc(50vw - 120px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    height: 580px;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-img:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.logo-footer {
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-footer h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.footer-cta {
    margin: 2rem 0;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 3rem;
    margin-bottom: 0;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    h1 {
        font-size: 3rem;
    }

    .ipad {
        right: -30px;
        bottom: -30px;
    }
    
    .ipad img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .iphone img {
        height: 450px;
    }
    
    .ipad {
        display: none; /* hide ipad on small screens for cleaner look */
    }
    
    .card {
        padding: 2rem;
    }
    
    .gallery-img {
        height: 420px;
    }

    .gallery-scroll {
        padding: 2rem;
        gap: 1.5rem;
    }

    .gallery-wrapper::before,
    .gallery-wrapper::after {
        width: 40px;
    }
}

/* Utility Enhancements */
.back-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: color 0.3s;
    margin-right: 0.5rem;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Scroll Annotations */
.gallery-hint {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: pulse-op 2s infinite;
}

@keyframes pulse-op {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
