/* 
   ADWE 2026 - LUXURIOUS MIDNIGHT MAUVE LANDING
   Complex Animations & Senior Transitions
*/

:root {
    --primary: #9D4EDD;
    --primary-light: #C77DFF;
    --primary-dark: #7B2CBF;
    --accent: #E0B0FF;
    --bg-dark: #0B0014;
    --surface: #1A0B2E;
    --surface-light: #240046;
    --text: #F0E6FA;
    --text-muted: #E0B0FF;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- COMPLEX GLASSMORPHISM --- */
.glass {
    background: rgba(26, 11, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(157, 78, 221, 0.2);
    box-shadow: 0 8px 32px 0 rgba(11, 0, 20, 0.37);
}

/* --- CUSTOM CURSOR EFFECT (OPTIONAL) --- */
.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

/* --- HEADER --- */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    height: 70px;
    background: rgba(11, 0, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #FFF 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    opacity: 0.8;
}

/* --- ADVANCED BUTTONS --- */
.btn-lux {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-lux-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-lux-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-lux-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

.btn-lux-primary:hover::before {
    left: 100%;
}

.btn-lux-outline {
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

.btn-lux-outline:hover {
    border-color: var(--primary);
    background: rgba(157, 78, 221, 0.05);
    transform: translateY(-3px);
}

/* --- MOCKUP TRANSITION --- */
.mockup-container {
    perspective: 2000px;
    margin-top: -50px;
}

.mockup-item {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    transform: rotateX(15deg) rotateY(-5deg) rotateZ(1deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-item:hover {
    transform: rotateX(5deg) rotateY(-2deg) rotateZ(0deg) translateY(-20px);
}

/* --- STATS SECTION --- */
.section {
    padding: 150px 0;
}

.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);
}

/* --- ADVANCED ANIMATIONS --- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes beam {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glitch {
    0% { clip-path: inset(50% 0 30% 0); }
    20% { clip-path: inset(10% 0 80% 0); }
    40% { clip-path: inset(40% 0 10% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(15% 0 45% 0); }
    100% { clip-path: inset(50% 0 30% 0); }
}

.floating { animation: float 6s ease-in-out infinite; }

.parallax-wrapper {
    overflow: hidden;
    position: relative;
}

/* --- STAT CARD INTENSITY --- */
.stat-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary-light), transparent);
    background-size: 400%;
    z-index: -1;
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.5s;
    animation: gradient-bg 3s linear infinite;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover .stat-num {
    transform: scale(1.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- TEXT SHIMMER --- */
.shimmer-text {
    background: linear-gradient(90deg, #fff, var(--primary-light), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: beam 3s linear infinite;
}

/* --- FEATURE CARD OVERDRIVE --- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.feature-card:hover::after {
    left: 150%;
    transition: 0.7s;
}

.feature-card:hover .icon-box {
    transform: rotateY(360deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- MOCKUP GLOW --- */
.mockup-item {
    position: relative;
}

.mockup-item::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s;
}

.mockup-item:hover::before {
    opacity: 0.3;
}

/* --- HERO GLITCH TEXT ON HOVER --- */
.hero-title span:hover {
    animation: glitch 0.3s linear infinite;
    cursor: crosshair;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    position: relative;
}

.stat-num {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FEATURES --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 60px 40px;
    border-radius: 32px;
    border: 1px solid rgba(157, 78, 221, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    background: var(--surface-light);
    transform: scale(1.05);
    border-color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(157, 78, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-light);
    font-size: 1.8rem;
}

/* --- CTA OVERDRIVE --- */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--surface-light) 100%);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 48px;
    padding: 120px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(157, 78, 221, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes data-flow {
    0% { transform: translateX(-100%) translateY(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateX(200%) translateY(-20px); opacity: 0; }
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--primary);
    animation: data-flow 10s linear infinite;
    pointer-events: none;
}

.scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.05), transparent);
    transform: skewX(-25deg);
    animation: beam 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.cta-particles {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/p6.png');
    opacity: 0.05;
    animation: spin-slow 100s linear infinite;
}

@keyframes pulse-rotate {
    0% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 rgba(157, 78, 221, 0); }
    50% { transform: scale(1.05) rotate(2deg); box-shadow: 0 20px 50px rgba(157, 78, 221, 0.3); }
    100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 rgba(157, 78, 221, 0); }
}

.stagger-reveal {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .stagger-reveal {
    opacity: 1;
    transform: translateX(0);
}

.pulse-rotate {
    animation: pulse-rotate 4s ease-in-out infinite;
}

/* --- FOOTER --- */
footer {
    padding: 100px 0 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 4rem; }
}

/* --- MOUSE PARALLAX --- */
.parallax-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}
