:root {
    --primary: #5a32fa;
    --primary-light: #8e71ff;
    --secondary: #ff3366;
    --secondary-light: #ff7597;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(90, 50, 250, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(90, 50, 250, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.bounce-hover:hover {
    animation: pulseBtn 1s infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.nav-btn-icon {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 5% 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(90, 50, 250, 0.1) 0%, rgba(255, 51, 102, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: blobBounce 10s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, rgba(90, 50, 250, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: blobBounce 8s infinite alternate-reverse cubic-bezier(0.45, 0, 0.55, 1);
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 660px;
    background: #fff;
    border-radius: 46px;
    border: 12px solid #1e293b;
    box-shadow: 25px 35px 50px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #475569;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(15deg) rotateZ(-3deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

/* Glass reflection overlay */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0) 45%
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 10;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(-10px);
}

.phone-mockup .screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    position: relative;
    border-radius: 34px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

/* Features */
.features {
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-title p {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(90, 50, 250, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(90, 50, 250, 0.1), rgba(255, 51, 102, 0.1));
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(90, 50, 250, 0.3);
}

/* Download Section */
.download {
    padding: 8rem 5%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="20"/></svg>') repeat;
    background-size: 400px;
    opacity: 0.5;
}

.download-content {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    z-index: 2;
}

.download h2 {
    color: white;
}

.download p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: #0b1120;
    color: rgba(255,255,255,0.5);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: rotateY(-22deg) rotateX(15deg) rotateZ(-3deg) translateY(0); 
        box-shadow: 25px 35px 50px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #475569;
    }
    50% { 
        transform: rotateY(-22deg) rotateX(15deg) rotateZ(-3deg) translateY(-25px); 
        box-shadow: 25px 60px 60px -15px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #475569;
    }
}

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

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

@keyframes rotateGlow {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(40px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(90, 50, 250, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(90, 50, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(90, 50, 250, 0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }

    .phone-mockup {
        transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #475569;
        animation: floatMobile 6s ease-in-out infinite;
    }

    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #475569; }
        50% { transform: translateY(-20px); box-shadow: 0 40px 50px -10px rgba(0, 0, 0, 0.15), inset 0 0 0 2px #475569; }
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 8rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .navbar .btn-primary {
        padding: 0.6rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
    .nav-btn-text {
        display: none;
    }
    .nav-btn-icon {
        display: block;
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .phone-mockup {
        width: 260px;
        height: 572px;
        border-radius: 40px;
    }
    .phone-mockup .screen {
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 1.25rem;
        gap: 0.25rem;
    }
    .logo i {
        font-size: 1.5rem;
    }
}
