/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0019;
    --secondary: #12042b;
    --accent: #40ffdc;
    --accent-secondary: #35e6c8;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(18, 4, 43, 0.6);
    --gradient: linear-gradient(135deg, #0a0019 0%, #12042b 100%);
    --accent-gradient: linear-gradient(135deg, #40ffdc 0%, #35e6c8 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

section[id] {
    scroll-margin-top: 100px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 0, 25, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 20px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

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

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

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

.btn-nav-cta {
    background: transparent;
    color: var(--text);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--accent);
    transition: all 0.3s;
}

.btn-nav-cta:hover {
    background: rgba(64, 255, 220, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 0 80px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.aurora-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
    max-width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text);
}

/* Animated Gradient Text */
.animated-gradient-text {
    position: relative;
    margin: 0 auto;
    display: inline-flex;
    max-width: fit-content;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.5s ease-out;
    overflow: hidden;
}

.animated-gradient-text .text-content {
    display: inline-block;
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, #40ffaa, #4079ff, #40ffaa, #4079ff, #40ffaa);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(64, 255, 220, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 255, 220, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.hero-note {
    color: var(--accent);
    font-size: 14px;
    margin-top: 24px;
    padding: 12px 20px;
    background: rgba(64, 255, 220, 0.1);
    border: 1px solid rgba(64, 255, 220, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.hero-note strong {
    font-weight: 700;
    color: var(--accent);
}

/* ScrollReveal Styles */
.scroll-reveal-container {
    margin: 20px 0;
    transform-origin: 0% 50%;
}

.scroll-reveal-text {
    font-size: clamp(0.875rem, 2vw, 0.875rem);
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.scroll-reveal-text .word {
    display: inline-block;
    margin-right: 0.25em;
    will-change: opacity, filter;
}

/* Hero Phone Mockups */
.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2;
    pointer-events: none;
}

.phone-mockup {
    position: relative;
    width: 240px;
    height: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.phone-left {
    transform: rotate(-12deg);
}

.phone-right {
    transform: rotate(12deg);
}

.phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.05),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.phone-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    border-radius: 32px;
    box-sizing: border-box;
}

/* App Showcase Section */
.app-showcase {
    padding: 80px 0;
    background: var(--primary);
    position: relative;
}

#scroll-stack-container {
    max-width: 800px;
    margin: 50px auto 0;
    height: 100vh;
    position: relative;
}

.scroll-stack-scroller {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: scroll-position;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.scroll-stack-inner {
    padding: 20vh 2rem 50rem;
    min-height: 100vh;
}

.scroll-stack-card {
    transform-origin: top center;
    will-change: transform, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(64, 255, 220, 0.2);
    width: 100%;
    margin: 30px 0;
    padding: 3rem;
    border-radius: 24px;
    box-sizing: border-box;
    background: var(--card-bg);
    border: 1px solid var(--border);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    contain: layout style paint;
}

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

.showcase-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.showcase-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.showcase-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}

.scroll-stack-end {
    width: 100%;
    height: 1px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--secondary);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(64, 255, 220, 0.15);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(64, 255, 220, 0.1) 0%, rgba(53, 230, 200, 0.1) 100%);
    color: var(--accent);
    transition: all 0.3s ease;
    padding: 12px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(64, 255, 220, 0.2) 0%, rgba(53, 230, 200, 0.2) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(64, 255, 220, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--primary);
}

.faq-carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto 0;
    min-height: 500px;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    align-items: stretch;
}

.carousel-item {
    position: relative;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(18, 4, 43, 0.8) 0%, rgba(10, 0, 25, 0.9) 100%);
    overflow: hidden;
    cursor: grab;
    width: 100%;
    min-width: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform-origin: center center;
}

.carousel-item:hover {
    box-shadow: 0 8px 30px rgba(64, 255, 220, 0.15);
    border-color: rgba(64, 255, 220, 0.3);
}

.carousel-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.carousel-item-header {
    margin-bottom: 24px;
    padding: 24px 24px 0;
    width: 100%;
}

.carousel-icon-container {
    display: flex;
    height: 56px;
    width: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(64, 255, 220, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover .carousel-icon-container {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(64, 255, 220, 0.4);
}

.carousel-icon-container svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.carousel-item-content {
    padding: 0 24px 24px;
    width: 100%;
    flex: 1;
}

.carousel-item-title {
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.carousel-item-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.carousel-indicators-container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.carousel-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--border);
    position: relative;
}

.carousel-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(64, 255, 220, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-indicator.active {
    background-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(64, 255, 220, 0.5);
}

.carousel-indicator.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.carousel-indicator:hover {
    background-color: var(--text-muted);
    transform: scale(1.15);
}

.carousel-indicator.active:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-appstore {
    display: inline-block;
    width: 180px;
    height: 60px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
}

.btn-appstore:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    width: 180px !important;
    height: 60px !important;
    max-width: 180px !important;
    max-height: 60px !important;
    display: block;
    object-fit: fill;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-section p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 14px;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .nav-links a:not(.btn-nav-cta) {
        display: none;
    }

    .hero {
        padding: 60px 0 50px;
        min-height: auto;
        margin-top: 60px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero-phones {
        gap: 15px;
        justify-content: center;
    }

    .phone-mockup {
        width: 160px;
    }

    .phone-left {
        transform: rotate(-8deg);
    }

    .phone-right {
        transform: rotate(8deg);
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .app-showcase {
        padding: 60px 0;
    }

    #scroll-stack-container {
        height: 80vh;
        max-width: 100%;
    }

    .scroll-stack-inner {
        padding: 10vh 1rem 30rem;
    }

    .scroll-stack-card {
        padding: 2rem;
        margin: 20px 0;
    }

    .showcase-content h3 {
        font-size: 24px;
    }

    .showcase-content p {
        font-size: 14px;
    }

    .showcase-image {
        max-width: 250px;
    }

    .faq-carousel-wrapper {
        min-height: 400px;
        padding: 0 10px;
    }

    .carousel-container {
        max-width: 100%;
        padding: 24px;
    }

    .carousel-item {
        min-height: 380px;
    }

    .carousel-item-header {
        padding: 20px 20px 0;
    }

    .carousel-icon-container {
        height: 48px;
        width: 48px;
    }

    .carousel-item-content {
        padding: 0 20px 20px;
    }

    .carousel-item-title {
        font-size: 20px;
    }

    .features,
    .faq,
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-phones {
        gap: 10px;
    }

    .phone-mockup {
        width: 120px;
    }

    .phone-left {
        transform: rotate(-6deg);
    }

    .phone-right {
        transform: rotate(6deg);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 40px;
    }
}
