/* ================= 1. CORE VARIABLES & RESET ================= */
:root {
    --bg: #050505;
    --card-bg: #0f0f11;
    --primary: #5b21b6; /* Deep Violet */
    --accent-1: #3b82f6; /* Blue */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #10b981; /* Green */
    --accent-4: #f59e0b; /* Orange */
    --text: #ffffff;
    --text-mute: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --mac-red: #ff5f56;
    --mac-yellow: #ffbd2e;
    --mac-green: #27c93f;
    --font: 'Satoshi', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    margin: 0; padding: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s ease; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ================= 2. BACKGROUND ANIMATION (Nebula) ================= */
.color-nebula { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 10s infinite alternate; }
.b1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); }
.b2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--accent-1); animation-duration: 15s; }
.b3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: var(--accent-2); animation-duration: 12s; }
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(50px, 50px); } }

/* ================= 3. MARQUEE STRIP ================= */
.sec-marquee { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 15px 0; overflow: hidden; white-space: nowrap; margin-bottom: 80px; }
.marquee-content { display: inline-block; animation: scroll 30s linear infinite; font-size: 1.2rem; font-weight: 700; color: var(--text-mute); }
.marquee-content span { margin: 0 30px; display: inline-flex; align-items: center; gap: 10px; }
.marquee-content i { color: var(--text); }
.sep { color: var(--primary); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================= 4. MAC TERMINAL (The Showstopper) ================= */
.sec-terminal { margin-bottom: 120px; }
.mac-window { max-width: 800px; margin: 0 auto; background: rgba(20, 20, 25, 0.9); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px); overflow: hidden; font-family: 'Courier New', monospace; transition: transform 0.3s; }
.mac-window:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

.mac-header { background: rgba(255,255,255,0.05); padding: 12px 15px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.mac-btns { display: flex; gap: 8px; }
.mac-btns span { width: 12px; height: 12px; border-radius: 50%; }
.close { background: var(--mac-red); } .min { background: var(--mac-yellow); } .max { background: var(--mac-green); }
.mac-title { margin-left: auto; margin-right: auto; color: var(--text-mute); font-size: 0.9rem; }

.mac-body { padding: 30px; min-height: 250px; color: var(--text); font-size: 1rem; line-height: 1.6; }
.prompt { color: var(--accent-3); font-weight: bold; }
.type-cmd { color: var(--text); }
.output-log { margin-top: 15px; color: var(--text-mute); }
.log-line { display: block; margin-bottom: 5px; }
.success { color: var(--accent-3); }
.warning { color: var(--mac-yellow); }
.info { color: var(--accent-1); }

/* ================= 5. SOLUTIONS GRID ================= */
.sec-solutions { margin-bottom: 120px; }
.sec-head { margin-bottom: 50px; text-align: center; }
.badge-neon { background: rgba(99, 102, 241, 0.1); color: var(--accent-1); padding: 5px 15px; border-radius: 50px; border: 1px solid rgba(59, 130, 246, 0.3); font-size: 0.8rem; letter-spacing: 2px; font-weight: bold; }
.sec-head h2 { font-size: 3rem; margin-top: 15px; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.sol-card { background: var(--card-bg); padding: 40px; border-radius: 20px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: 0.4s; }
.card-bg { position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent); opacity: 0; transition: 0.4s; }
.sol-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.sol-card:hover .card-bg { opacity: 1; }

.icon-layer { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; background: var(--glass); border: 1px solid var(--border); color: white; }
.card-1 .icon-layer { color: var(--accent-1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.card-2 .icon-layer { color: var(--accent-2); box-shadow: 0 0 20px rgba(236, 72, 153, 0.2); }
.card-3 .icon-layer { color: var(--accent-3); box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
.card-4 .icon-layer { color: var(--accent-4); box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }

.sol-card h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
.sol-card p { color: var(--text-mute); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }
.btn-link { color: white; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; display: inline-flex; align-items: center; gap: 5px; }
.btn-link:hover { gap: 10px; color: var(--accent-1); }

/* ================= 6. HORIZONTAL SCROLL (GSAP) ================= */
.horizontal-wrapper { overflow: hidden; /* Important for horizontal scroll */ }
.scroll-container { display: flex; width: 300vw; height: 100vh; }

.panel { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 100px; border-right: 1px solid var(--border); }
.panel-content { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; gap: 50px; }
.panel-content.reverse { flex-direction: row-reverse; }

.panel h1 { font-size: 5rem; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.highlight { color: transparent; -webkit-text-stroke: 2px white; display: block; }
.panel p { font-size: 1.5rem; color: var(--text-mute); max-width: 500px; }

/* Slide Specifics */
.panel-speed { background: radial-gradient(circle at center, #1e1b4b, #000); }
.speedometer { width: 300px; height: 150px; border-radius: 150px 150px 0 0; background: linear-gradient(to right, #ef4444, #eab308, #22c55e); position: relative; overflow: hidden; }
.speedometer::after { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 0; background: #1e1b4b; border-radius: 150px 150px 0 0; }
.needle { position: absolute; bottom: 0; left: 50%; width: 4px; height: 140px; background: white; transform-origin: bottom center; transform: rotate(-90deg); transition: 2s ease-out; z-index: 2; }
.panel:hover .needle { transform: rotate(90deg); }
.speed-text { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 2rem; font-weight: bold; z-index: 3; }

.panel-security { background: radial-gradient(circle at center, #312e81, #000); }
.shield-3d { font-size: 10rem; color: var(--accent-1); filter: drop-shadow(0 0 30px var(--accent-1)); position: relative; }
.pulse-wave { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border: 2px solid var(--accent-1); border-radius: 50%; animation: pulse 2s infinite; opacity: 0; }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }

.panel-global { background: radial-gradient(circle at center, #111827, #000); }
.map-svg { width: 100%; filter: invert(1) opacity(0.5); }
.map-pin { position: absolute; width: 15px; height: 15px; background: var(--accent-2); border-radius: 50%; box-shadow: 0 0 20px var(--accent-2); animation: bounce 2s infinite; }
.pin-1 { top: 30%; left: 20%; } .pin-2 { top: 25%; left: 50%; } .pin-3 { top: 60%; left: 80%; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ================= 6. TABLE & TECH ================= */
.sec-tech { margin: 100px auto; }
.tech-marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.tech-item { padding: 10px 20px; background: rgba(255,255,255,0.05); border-radius: 50px; font-weight: 600; border: 1px solid var(--border); transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.tech-item:hover { background: var(--primary); transform: scale(1.1); }

.sec-compare { margin-bottom: 100px; }
.glass-table-box { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 30px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-mute); font-weight: normal; }
td { font-weight: 600; }
.winner { color: var(--accent-3); background: rgba(16, 185, 129, 0.05); border-radius: 8px; }

/* ================= 7. CTA MEGA ================= */
.sec-cta-mega { margin-bottom: 80px; text-align: center; }
.cta-inner { background: linear-gradient(180deg, rgba(99,102,241,0.1), transparent); padding: 100px 20px; border-radius: 30px; border: 1px solid var(--primary); position: relative; overflow: hidden; }
.glitch { font-size: 5rem; font-weight: 900; margin-bottom: 20px; text-shadow: 3px 3px var(--primary); }
.btn-mac { background: white; color: black; padding: 15px 40px; border-radius: 30px; font-weight: bold; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-mac:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.5); }
.btn-mac-outline { border: 2px solid white; color: white; padding: 13px 40px; border-radius: 30px; font-weight: bold; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-mac-outline:hover { background: white; color: black; }

/* Mobile */
@media (max-width: 768px) {
    .horizontal-wrapper { display: none; } /* Hide horizontal on mobile */
    .panel-content { flex-direction: column; text-align: center; }
    .glitch { font-size: 3rem; }
    .mac-window { margin: 0 10px; }
}