/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.8);
    --text-primary: #f0f0ff;
    --text-secondary: rgba(200, 200, 240, 0.7);
    --accent-1: #a855f7;
    --accent-2: #6366f1;
    --accent-3: #06b6d4;
    --accent-4: #f59e0b;
    --gradient-main: linear-gradient(135deg, #ffffff 0%, #a855f7 40%, #c084fc 70%, #ffffff 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(99,102,241,0.4));
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --border-subtle: rgba(168, 85, 247, 0.15);
    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-primary);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
}
.logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotateLogo 6s linear infinite;
}
@keyframes rotateLogo { 0%,100%{transform:rotate(0)} 50%{transform:rotate(180deg)} }
.nav-links {
    display: flex; list-style: none; gap: 32px;
}
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 400;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--gradient-main); border: none;
    color: white; padding: 10px 24px; border-radius: 100px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.4); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: 0.3s; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Extremely strong dark overlay to force readability */
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(0, 0, 0, 0.8) 40%, 
        rgba(0, 0, 0, 0.8) 60%, 
        rgba(0, 0, 0, 0.98) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.2);
    opacity: 0.4; /* Darken the image itself */
}
.floating-elements { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floating-shape {
    position: absolute; border-radius: 50%;
    filter: blur(40px); opacity: 0.5;
    animation: floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: rgba(168,85,247,0.3); top: 10%; left: 5%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: rgba(6,182,212,0.3); top: 60%; right: 10%; animation-delay: -2s; }
.shape-3 { width: 150px; height: 150px; background: rgba(99,102,241,0.4); bottom: 20%; left: 30%; animation-delay: -4s; }
.shape-4 { width: 250px; height: 250px; background: rgba(245,158,11,0.2); top: 30%; right: 30%; animation-delay: -1s; }
.shape-5 { width: 100px; height: 100px; background: rgba(168,85,247,0.5); bottom: 40%; left: 60%; animation-delay: -3s; }
.shape-6 { width: 180px; height: 180px; background: rgba(6,182,212,0.25); top: 70%; left: 15%; animation-delay: -5s; }
@keyframes floatShape {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}
.star-field {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.star-field .star {
    position: absolute; border-radius: 50%; background: white;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}
@keyframes twinkle {
    0%,100% { opacity: var(--min-opacity); transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 900px; 
    padding: 80px 40px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
    border-radius: 40px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 100px; padding: 8px 20px;
    font-size: 0.85rem; color: var(--accent-1);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-1);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.title-line {
    display: block;
    opacity: 0; transform: translateY(40px);
    animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.title-line[data-delay="0.2"] { animation-delay: 0.2s; }
.title-line[data-delay="0.4"] { animation-delay: 0.4s; }
@keyframes titleReveal { to { opacity: 1; transform: translateY(0); } }
.hero-subtitle {
    font-size: 1.15rem; color: #ffffff; /* Brighter white */
    max-width: 600px; margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,1);
    opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards;
}
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: fadeInUp 0.8s ease-out 0.8s forwards;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 100px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; border: none;
}
.btn-primary {
    background: var(--gradient-main); color: white;
    box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(168,85,247,0.5); }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: var(--accent-1); background: rgba(168,85,247,0.1); }
.btn-glow { animation: btnGlow 3s ease-in-out infinite; }
@keyframes btnGlow { 0%,100%{box-shadow:0 4px 20px rgba(168,85,247,0.3)} 50%{box-shadow:0 4px 40px rgba(168,85,247,0.6)} }
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2; opacity: 0; animation: fadeInUp 0.8s ease-out 1.2s forwards;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-mouse {
    width: 24px; height: 38px; border-radius: 12px;
    border: 2px solid rgba(168,85,247,0.4);
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
    width: 3px; height: 8px; border-radius: 2px;
    background: var(--accent-1);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }

/* ===== Section Styling ===== */
.section-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-circle {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.3;
}
.circle-1 { width: 500px; height: 500px; background: rgba(168,85,247,0.2); top: -10%; right: -10%; }
.circle-2 { width: 400px; height: 400px; background: rgba(6,182,212,0.15); bottom: -5%; left: -5%; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    color: var(--accent-1); text-transform: uppercase;
    letter-spacing: 0.15em; margin-bottom: 16px;
    padding: 4px 16px; background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2); border-radius: 100px;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.section-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== Features ===== */
.features { position: relative; padding: 120px 0; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-glow);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(168,85,247,0.4); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    position: relative; z-index: 1;
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(168,85,247,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--accent-1);
}
.feature-card h3 {
    position: relative; z-index: 1;
    font-family: var(--font-heading); font-size: 1.25rem;
    font-weight: 700; margin-bottom: 12px;
}
.feature-card p { position: relative; z-index: 1; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.feature-link {
    position: relative; z-index: 1;
    color: var(--accent-1); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: gap 0.3s;
    display: inline-flex; gap: 4px;
}
.feature-link:hover { gap: 8px; }

/* ===== Showcase ===== */
.showcase { padding: 120px 0; background: var(--bg-secondary); }
.showcase-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; gap: 24px;
}
.showcase-item {
    position: relative; border-radius: 24px; overflow: hidden;
    cursor: pointer; aspect-ratio: 16/10;
}
.showcase-large { grid-row: span 2; aspect-ratio: auto; }
.showcase-img { width: 100%; height: 100%; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.showcase-item:hover .showcase-img img { transform: scale(1.1); }
.showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,16,0.9) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px; opacity: 0; transition: opacity 0.4s;
}
.showcase-item:hover .showcase-overlay { opacity: 1; }
.showcase-category {
    font-size: 0.75rem; font-weight: 600; color: var(--accent-3);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.showcase-overlay h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.showcase-overlay p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Stats ===== */
.stats { position: relative; padding: 100px 0; overflow: hidden; }
.stats-bg-particles { position: absolute; inset: 0; pointer-events: none; }
.stats-bg-particles .particle {
    position: absolute; border-radius: 50%;
    animation: floatParticle var(--duration) linear infinite;
    animation-delay: var(--delay);
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    text-align: center; padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.stat-number {
    font-family: var(--font-heading); font-size: 3.5rem;
    font-weight: 900; display: inline;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-suffix {
    font-family: var(--font-heading); font-size: 2rem;
    font-weight: 700; display: inline;
    color: var(--accent-1);
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; }
.stat-bar { width: 60%; height: 4px; background: rgba(168,85,247,0.1); border-radius: 2px; margin: 16px auto 0; overflow: hidden; }
.stat-bar-fill { height: 100%; width: 0; background: var(--gradient-main); border-radius: 2px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ===== Testimonials ===== */
.testimonials { padding: 120px 0; }
.testimonials-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 36px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.testimonial-stars { color: var(--accent-4); font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1.1rem;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong { font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== CTA ===== */
.cta-section { position: relative; padding: 120px 0; overflow: hidden; }
.cta-floating-elements { position: absolute; inset: 0; pointer-events: none; }
.cta-float {
    position: absolute; opacity: 0.15;
    animation: floatShape 10s ease-in-out infinite;
}
.cta-float-1 { width: 300px; top: -5%; right: -5%; animation-delay: -2s; }
.cta-float-2 { width: 200px; bottom: -5%; left: -3%; animation-delay: -5s; }
.cta-content { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.cta-desc { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 40px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-input {
    padding: 14px 24px; border-radius: 100px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    color: var(--text-primary); font-family: var(--font-body);
    font-size: 1rem; min-width: 280px; outline: none;
    transition: border-color 0.3s;
}
.cta-input:focus { border-color: var(--accent-1); }
.cta-input::placeholder { color: var(--text-secondary); }
.cta-note { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== Footer ===== */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(168,85,247,0.1); border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.3s;
}
.social-links a:hover { background: var(--accent-1); color: white; border-color: var(--accent-1); }
.footer-links-group h4 {
    font-family: var(--font-heading); font-size: 0.9rem;
    font-weight: 600; margin-bottom: 16px; color: var(--text-primary);
}
.footer-links-group ul { list-style: none; }
.footer-links-group li { margin-bottom: 10px; }
.footer-links-group a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links-group a:hover { color: var(--accent-1); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Spectacular Scroll Animations ===== */
[data-animate] {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

/* Default: Fade Up with 3D rotation */
[data-animate="fade-up"] {
    transform: perspective(1000px) translateY(80px) rotateX(10deg);
    filter: blur(8px);
}
[data-animate="fade-up"].in-view {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0deg);
    filter: blur(0);
}

/* Scale-in with rotation and blur */
[data-animate="scale-in"] {
    transform: perspective(1200px) scale(0.5) rotateY(25deg);
    filter: blur(12px);
}
[data-animate="scale-in"].in-view {
    opacity: 1;
    transform: perspective(1200px) scale(1) rotateY(0deg);
    filter: blur(0);
}

/* Slide from left with 3D */
[data-animate="slide-left"] {
    transform: perspective(1000px) translateX(-120px) rotateY(15deg);
    filter: blur(6px);
}
[data-animate="slide-left"].in-view {
    opacity: 1;
    transform: perspective(1000px) translateX(0) rotateY(0deg);
    filter: blur(0);
}

/* Slide from right with 3D */
[data-animate="slide-right"] {
    transform: perspective(1000px) translateX(120px) rotateY(-15deg);
    filter: blur(6px);
}
[data-animate="slide-right"].in-view {
    opacity: 1;
    transform: perspective(1000px) translateX(0) rotateY(0deg);
    filter: blur(0);
}

/* Flip in animation */
[data-animate="flip-in"] {
    transform: perspective(800px) rotateX(90deg);
    transform-origin: top center;
    filter: blur(4px);
}
[data-animate="flip-in"].in-view {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg);
    filter: blur(0);
}

/* Spiral In */
[data-animate="spiral-in"] {
    transform: perspective(1000px) scale(0.3) rotate(180deg) translateY(60px);
    filter: blur(15px);
}
[data-animate="spiral-in"].in-view {
    opacity: 1;
    transform: perspective(1000px) scale(1) rotate(0deg) translateY(0);
    filter: blur(0);
}

/* Zoom burst */
[data-animate="zoom-burst"] {
    transform: scale(0.1);
    filter: blur(20px) brightness(3);
}
[data-animate="zoom-burst"].in-view {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Rise from below with elastic */
[data-animate="elastic-up"] {
    transform: translateY(100px) scaleY(0.6);
    filter: blur(5px);
}
[data-animate="elastic-up"].in-view {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
    transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glitch reveal */
[data-animate="glitch-in"] {
    transform: translateX(-20px) skewX(-12deg);
    filter: blur(4px);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
[data-animate="glitch-in"].in-view {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
    filter: blur(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Dissolve materialize */
[data-animate="dissolve"] {
    transform: scale(1.1);
    filter: blur(25px) brightness(2);
}
[data-animate="dissolve"].in-view {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
}

/* ===== Glow Trail Effect on Cards ===== */
.feature-card.in-view, .stat-card.in-view, .testimonial-card.in-view {
    animation: glowPulseIn 1.5s ease-out;
}
@keyframes glowPulseIn {
    0% { box-shadow: 0 0 0 rgba(168,85,247,0); }
    30% { box-shadow: 0 0 60px rgba(168,85,247,0.5), 0 0 120px rgba(99,102,241,0.3); }
    100% { box-shadow: none; }
}

/* ===== Continuous Progress Animation for section headers ===== */
.section-header.in-view .section-tag {
    animation: tagGlowSlide 0.8s ease-out;
}
@keyframes tagGlowSlide {
    0% { background-position: -200% center; box-shadow: 0 0 0 rgba(168,85,247,0); }
    50% { box-shadow: 0 0 30px rgba(168,85,247,0.6); }
    100% { background-position: 0% center; box-shadow: none; }
}

.section-header.in-view .section-title {
    animation: titleWaveIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes titleWaveIn {
    0% { letter-spacing: 0.3em; filter: blur(8px); opacity: 0; }
    100% { letter-spacing: -0.03em; filter: blur(0); opacity: 1; }
}

/* ===== Magnetic tilt on feature cards ===== */
.feature-card { transform-style: preserve-3d; perspective: 800px; }
.feature-card .feature-icon { transition: transform 0.4s; }
.feature-card:hover .feature-icon { transform: translateZ(30px) scale(1.1); }
.feature-card:hover h3 { transform: translateZ(15px); }

/* ===== Section Divider Glow Lines ===== */
.features::before, .showcase::before, .stats::before, .testimonials::before, .cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-3), var(--accent-1), transparent);
    opacity: 0.4;
}

/* ===== Showcase Hover Glow Ring ===== */
.showcase-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: conic-gradient(from var(--angle, 0deg), transparent 60%, var(--accent-1), var(--accent-3), transparent 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
}
.showcase-item:hover::after {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}
@keyframes rotateGlow { to { --angle: 360deg; } }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ===== Smooth reveal line for showcase images ===== */
.showcase-item.in-view .showcase-img img {
    animation: imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes imageReveal {
    0% { clip-path: inset(100% 0 0 0); transform: scale(1.3); }
    100% { clip-path: inset(0 0 0 0); transform: scale(1); }
}

/* ===== Stat card neon flash on appear ===== */
.stat-card.in-view {
    animation: neonFlash 0.8s ease-out;
}
@keyframes neonFlash {
    0% { border-color: transparent; }
    20% { border-color: var(--accent-1); box-shadow: 0 0 40px rgba(168,85,247,0.6), inset 0 0 40px rgba(168,85,247,0.1); }
    100% { border-color: var(--border-subtle); box-shadow: none; }
}

/* ===== Testimonial slide-in with rotation ===== */
.testimonial-card[data-animate].in-view {
    animation: cardFloatIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardFloatIn {
    0% { transform: perspective(800px) translateY(60px) rotateX(15deg) rotateY(-5deg); opacity: 0; filter: blur(8px); }
    100% { transform: perspective(800px) translateY(0) rotateX(0) rotateY(0); opacity: 1; filter: blur(0); }
}

/* ===== CTA magical glow background ===== */
.cta-content.in-view::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: ctaGlowPulse 3s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
    0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ===== Text shimmer effect for gradient text on scroll ===== */
.in-view .gradient-text {
    background-size: 200% 100%;
    animation: shimmerText 3s ease-in-out infinite;
}
@keyframes shimmerText {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-track { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-large { grid-row: span 1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .cta-input { min-width: 100%; }
    .cta-form { flex-direction: column; align-items: center; }
    .cta-form .btn { width: 100%; justify-content: center; }
}
