@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #FF6B35;
    --primary-light: #FF8B5E;
    --primary-dark: #E05A2A;
    --secondary: #F7931E;
    --accent: #FFD23F;
    
    /* Premium Palette */
    --bg-light: #FFF8F3;
    --bg-dark: #1A1C23;
    --surface-light: rgba(255, 255, 255, 0.7);
    --surface-dark: rgba(26, 28, 35, 0.8);
    
    --text-dark: #2D3748;
    --text-muted: #718096;
    --text-light: #F7FAFC;
    --text-light-muted: #CBD5E0;
    
    --shadow-soft: 0 10px 30px rgba(255, 107, 53, 0.08);
    --shadow-strong: 0 20px 40px rgba(26, 28, 35, 0.15);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    
    --radius: 20px;
    --radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Glassmorphism Navbar */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 100px; /* Pill shape for premium feel */
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

/* Subtle background mesh gradient */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, rgba(255,248,243,0) 70%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: rotateY(0) rotateX(0);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.5);
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

.floating-1 { top: 15%; left: -15%; }
.floating-2 { bottom: 10%; right: -10%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Sections Common */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Features Section - Premium Light Mode */
.features {
    background: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 6rem 0;
}

.features .section-title p {
    color: var(--text-muted);
}

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

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 107, 53, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

/* ===========================
   App Showcase — Premium Marquee
   =========================== */
.showcase {
    background: var(--bg-dark);
    padding: 6rem 0 5rem;
    overflow: hidden;
    position: relative;
}

.showcase-header {
    margin-bottom: 4rem;
}

.showcase .section-title h2 {
    color: var(--text-light);
}

.showcase .section-title p {
    color: var(--text-light-muted);
}

/* Edge fade masks */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

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

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

/* Scrolling track */
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Individual screenshot card */
.screenshot-item {
    flex: 0 0 auto;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-item:hover {
    transform: translateY(-12px) scale(1.02);
}

.screenshot-item img {
    height: 520px;
    width: auto;
    border-radius: 28px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 24px 60px rgba(0,0,0,0.6),
        0 0 0 8px rgba(255,255,255,0.04);
    display: block;
    object-fit: cover;
    transition: box-shadow 0.4s ease;
}

.screenshot-item:hover img {
    box-shadow:
        0 0 0 1px rgba(255, 107, 53, 0.4),
        0 32px 80px rgba(0,0,0,0.7),
        0 0 0 8px rgba(255, 107, 53, 0.06);
}

.screenshot-item figcaption {
    margin-top: 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light-muted);
    transition: color 0.3s ease;
}

.screenshot-item:hover figcaption {
    color: var(--primary-light);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 2rem;
    }
    .screenshot-item img {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .screenshot-item img {
        height: 380px;
    }
    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 60px;
    }
}

/* How it Works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.steps::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: dashed 2px var(--primary-light);
    z-index: -1;
    opacity: 0.3;
}

.step {
    text-align: center;
    background: var(--bg-light);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-muted);
    display: none;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5rem 3rem;
    border-radius: 40px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    color: var(--text-light);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    color: var(--text-light-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-light-muted);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-btns { justify-content: center; }
    .floating-card { display: none; }
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps::after { display: none; }
}

@media (max-width: 768px) {
    .features { margin: 0; border-radius: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
