:root {
    --bg-dark: #07070a;
    --accent-pink: #FF80AB;
    --accent-magenta: #D81B60;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.07);
}

* {
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-display: swap;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Optimize for iOS scrolling */
    -webkit-overflow-scrolling: touch;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    /* Hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.gradient-text {
    background: linear-gradient(135deg, #FF80AB 0%, #FF4081 50%, #D81B60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(216, 27, 96, 0.15) 0%, rgba(7, 7, 10, 0) 75%);
    z-index: -1;
    filter: blur(100px);
    -webkit-filter: blur(100px);
    pointer-events: none;
    /* Prevent heavy repaints on scroll */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Essential: Fixed Header Scroll Offset */
section[id] {
    scroll-margin-top: 100px;
}

/* Immediate Hero Appearance */
.hero-reveal {
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.phone-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 40;
}

.cta-pulse {
    box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.6);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(216, 27, 96, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(216, 27, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(216, 27, 96, 0); }
}

.grid-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Optimization for mobile devices: reduce blur strength */
@media (max-width: 768px) {
    .glass {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.nav-link { position: relative; opacity: 0.7; transition: opacity 0.3s ease; }
.nav-link:hover { opacity: 1; }
.nav-link::after {
    content: ''; position: absolute; bottom: -6px; left: 50%; width: 0; height: 2px;
    background: var(--accent-pink); transition: width 0.3s ease, left 0.3s ease; transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

.feature-card { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease; border: 1px solid var(--glass-border); will-change: transform; }
.feature-card:hover { border-color: var(--accent-pink); transform: translateY(-10px); }

.loader-text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.05em;
}

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

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

[data-t] {
    transition: opacity 0.3s ease-in-out;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #07070a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s, transform 1s, filter 1s;
}
#loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    filter: blur(10px);
}
.overflow-hidden { overflow: hidden; }

/* Accordion Rotate */
.faq-item[data-open="true"] .rotate-icon {
    transform: rotate(180deg);
}
.faq-content {
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}
.faq-item[data-open="true"] .faq-content {
    transition: max-height 0.5s cubic-bezier(0.9, 0, 0.1, 1);
}

/* Performance Fixes for iOS Safari */
section {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

