@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-dark: #070A11;
    --bg-deep: #020305;
    --bg-surface: #0B111C;
    --bg-surface2: #131A26;
    
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #FFFFFF;
    --text-secondary: #8F9FB5;
    
    --accent-primary: #2DEE85;
    --accent-primary-glow: rgba(45, 238, 133, 0.2);
    --accent-danger: #FF8A8A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Custom cursor hide default */
    cursor: none !important; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* --- 1. Masterclass Backgrounds --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.mesh-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(45, 238, 133, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 138, 138, 0.05) 0%, transparent 25%);
    z-index: -2;
    filter: blur(80px);
    animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.parallax-bg-text {
    position: absolute;
    top: 10%;
    left: -5%;
    font-size: 25vw;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    will-change: transform;
}

/* --- 2. Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(45, 238, 133, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover-state {
    width: 60px;
    height: 60px;
    background-color: rgba(45, 238, 133, 0.1);
    border-color: var(--accent-primary);
}

/* --- 3. Advanced Layout & Components --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(2, 3, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a:hover::after {
    width: 100%;
}

/* Magnetic Button */
.magnetic-btn-wrapper {
    display: inline-block;
    padding: 20px;
    margin: -20px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-deep);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 800;
    border: none;
    box-shadow: 0 10px 30px var(--accent-primary-glow);
    transition: background 0.3s, box-shadow 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.magnetic-btn-wrapper:hover .btn-primary::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 4. Staggered Text Reveal & Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 10;
}

.reveal-text-mask {
    overflow: hidden;
    display: block;
}

.reveal-text-mask span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.reveal-text-mask.active span {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* 3D Tilt Mockup */
.tilt-wrapper {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.tilt-element {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.mockup-frame {
    width: 340px;
    height: 690px;
    background: var(--bg-surface);
    border-radius: 45px;
    border: 10px solid #1A1F2B;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.15),
        inset 0 1px 4px rgba(255,255,255,0.2),
        inset 0 0 20px rgba(0,0,0,0.5),
        0 30px 60px rgba(0,0,0,0.8), 
        0 0 120px var(--accent-primary-glow);
    position: relative;
    overflow: hidden;
    transform: translateZ(50px); /* Pops out during tilt */
}

.mockup-notch {
    display: none;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Inner 3D pop */
.mockup-screen > * {
    transform: translateZ(20px);
}

.phone-mockup-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-surface2) 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

/* --- 5. Mouse-Tracking Glow Cards --- */
.glow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 100px;
}

.glow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.glow-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px; /* Border width */
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(45, 238, 133, 0.4),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(45, 238, 133, 0.05),
        transparent 40%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-card:hover::after {
    opacity: 1;
}

/* --- 6. Zig-Zag Feature Rows --- */
.section-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 120px;
    margin-bottom: 200px;
    position: relative;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.feature-text p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--bg-deep);
    background: var(--accent-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.backdrop-blur-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-primary-glow);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0.8);
}

/* --- 7. Specific UI Previews inside Mockups --- */
/* (Re-using the specific UI CSS from before but elevated) */

.ui-blocking {
    height: 100%;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ui-shield {
    width: 140px;
    height: 140px;
    background: rgba(255, 138, 138, 0.05);
    border: 1px solid rgba(255, 138, 138, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-danger);
    font-size: 60px;
    margin-bottom: 30px;
    position: relative;
}
.ui-shield::after {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 1px solid var(--accent-danger);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ui-dnd {
    padding: 90px 20px 20px;
    background: #050505;
    height: 100%;
}
.ui-card {
    background: #111823;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ui-toggle {
    width: 56px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 15px rgba(45,238,133,0.3);
}
.ui-toggle::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: #000;
    border-radius: 50%;
}

.protected-logo {
    animation: pulseProtected 2s infinite;
    position: relative;
    z-index: 10;
}
@keyframes pulseProtected {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 238, 133, 0.4); }
    50% { transform: scale(1.05); }
    70% { box-shadow: 0 0 0 30px rgba(45, 238, 133, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 238, 133, 0); }
}

.ui-caller-id {
    height: 100%;
    background: linear-gradient(135deg, #1A1A24 0%, #0D0D14 100%);
    position: relative;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.caller-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3A3A4A 0%, #1A1A24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #8F9FB5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.05);
}
.caller-number {
    font-size: 26px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.caller-status {
    font-size: 16px;
    color: #2DEE85;
    margin-bottom: 40px;
}
.call-actions {
    display: flex;
    gap: 30px;
    margin-top: auto;
    margin-bottom: 120px;
}
.action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
}
.action-btn.decline {
    background: #FF3B30;
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}
.action-btn.accept {
    background: #34C759;
    box-shadow: 0 10px 20px rgba(52, 199, 89, 0.3);
    animation: pulseAccept 2s infinite;
}
@keyframes pulseAccept {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.ui-caller-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 59, 48, 0.15); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 59, 48, 0.5);
    padding: 30px 20px 40px;
    border-radius: 30px 30px 0 0;
    text-align: center;
    box-shadow: 0 -10px 40px rgba(255, 59, 48, 0.2);
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mockup-frame:hover .ui-caller-overlay {
    transform: translateY(0);
}

.ui-community {
    height: 100%;
    background: #050505;
    padding: 90px 20px 20px;
}
.ui-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ui-analytics {
    height: 100%;
    background: #050505;
    padding: 90px 20px 20px;
}
.ui-chart {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-top: 30px;
}
.ui-bar {
    flex: 1;
    background: linear-gradient(0deg, rgba(45,238,133,0.2) 0%, var(--accent-primary) 100%);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transform-origin: bottom;
    animation: growBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ui-chart:hover .ui-bar {
    animation: none;
}
@keyframes growBar {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}
.ui-chart .ui-bar:nth-child(1) { animation-delay: 0.1s; }
.ui-chart .ui-bar:nth-child(2) { animation-delay: 0.2s; }
.ui-chart .ui-bar:nth-child(3) { animation-delay: 0.3s; }
.ui-chart .ui-bar:nth-child(4) { animation-delay: 0.4s; }
.ui-chart .ui-bar:nth-child(5) { animation-delay: 0.5s; }
.ui-chart .ui-bar:nth-child(6) { animation-delay: 0.6s; }
.ui-chart .ui-bar:nth-child(7) { animation-delay: 0.7s; }

/* --- 8. Reveal Animations --- */
.reveal-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 9. Footer --- */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 100px 0 40px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer-logo {
    font-size: 15vw;
    font-weight: 900;
    position: absolute;
    bottom: -5vw;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.02);
    pointer-events: none;
    white-space: nowrap;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}
.footer-col h4 {
    font-size: 20px;
    margin-bottom: 30px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
}
.footer-col ul li a:hover { color: var(--accent-primary); }

@media (max-width: 1024px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .feature-list li { justify-content: center; }
    .parallax-bg-text { display: none; }
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }
}
