/* --- Variables --- */
:root {
    --bg-main: #06080b; /* Even darker, richer black */
    --bg-secondary: rgba(18, 24, 38, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #00ff88; /* Neon Green */
    --accent-secondary: #8a2be2; /* Deep Purple */
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }



/* --- Background Effects --- */
.bg-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.3;
}
.orb-1 { top: -20%; left: -10%; width: 600px; height: 600px; background: var(--accent-secondary); animation: float 25s infinite alternate ease-in-out; }
.orb-2 { bottom: -20%; right: -10%; width: 700px; height: 700px; background: var(--accent-primary); animation: float 20s infinite alternate ease-in-out -5s; }
.orb-3 { top: 30%; left: 40%; width: 500px; height: 500px; background: rgba(0, 255, 136, 0.1); animation: float 30s infinite alternate ease-in-out -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), #00d2ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: var(--transition-medium); gap: 0.5rem; border: none; outline: none;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: 16px; }
.btn-primary { background: var(--text-primary); color: #000; }
.btn-primary:hover { background: var(--accent-primary); box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
.btn-secondary { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.magnetic { display: inline-block; /* Required for JS effect */ }

/* --- Floating Pill Navigation --- */
.floating-nav {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 1000;
}
.nav-pill {
    display: flex; align-items: center; padding: 0.5rem; gap: 0.5rem;
    border-radius: 100px;
}
.nav-link {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--text-secondary); font-size: 1.25rem;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--accent-primary);
}
.nav-cta {
    padding: 0 1.25rem; height: 44px; display: flex; align-items: center; gap: 0.5rem;
    background: var(--text-primary); color: #000; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
}
.nav-cta:hover { background: var(--accent-primary); }

/* Hero badge: highlight the stat numbers in accent green */
.pulse-badge strong { color: var(--accent-primary); font-weight: 700; }

/* --- Hero Section --- */
.hero { min-height: 90vh; display: flex; align-items: center; padding: 4rem 0; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 50px; color: var(--text-secondary); font-size: 0.875rem; font-family: var(--font-mono); margin-bottom: 2rem;
}
.pulse { width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }

.hero-title { font-size: 5rem; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 90%; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.stat-val { font-size: 2rem; font-family: var(--font-heading); font-weight: 800; display: block; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* Cinematic Terminal */
.terminal-window {
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-medium);
}
.terminal-window:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.terminal-header {
    background: rgba(255,255,255,0.05); padding: 12px 16px;
    display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-header .dots { display: flex; gap: 8px; }
.terminal-header .dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-header .dots span:nth-child(1) { background: #ff5f56; }
.terminal-header .dots span:nth-child(2) { background: #ffbd2e; }
.terminal-header .dots span:nth-child(3) { background: #27c93f; }
.terminal-title { margin-left: auto; margin-right: auto; font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.terminal-body {
    padding: 1.5rem; height: 350px; overflow: hidden;
    font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-primary);
    line-height: 1.5;
}
.term-line { margin-bottom: 0.5rem; opacity: 0; animation: fade-in 0.2s forwards; }
.term-time { color: var(--text-secondary); margin-right: 1rem; }
.term-success { color: var(--accent-primary); }
.term-info { color: #00d2ff; }
.term-warn { color: #ffbd2e; }
.cursor { display: inline-block; width: 8px; height: 1em; background: #fff; animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

/* --- Spotlight Cards (Global) --- */
.spotlight-card {
    position: relative; z-index: 1; border-radius: 24px;
}
.spotlight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: -1;
    border-radius: inherit;
}
.spotlight-card:hover::before { opacity: 1; }

/* --- Bento Box Features --- */
.features { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; max-width: 600px; }
.section-header h2 { font-size: 3.5rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.2rem; color: var(--text-secondary); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
}

.bento-item {
    padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform var(--transition-medium), border-color var(--transition-fast);
}
.bento-item:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); }

.bento-item.tall { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; grid-row: span 1; }
.bento-item.small { grid-column: span 1; grid-row: span 1; }

.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--text-primary); margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.1);
}
.bento-item h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.bento-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* Bento specific visuals */
.bento-graphic { margin-top: 2rem; flex-grow: 1; background: rgba(0,0,0,0.5); border-radius: 12px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 150px;}
.ocr-graphic { font-family: var(--font-mono); font-size: 2rem; color: var(--text-secondary); }
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent-primary); box-shadow: 0 0 20px var(--accent-primary); animation: scan 3s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.feature-content-row { display: flex; gap: 2rem; align-items: center; height: 100%; }
.feature-content-row > div:first-child { flex: 1; }
.feature-content-row.reverse { flex-direction: row-reverse; }

.speed-graph { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.bar { height: 30px; border-radius: 6px; display: flex; align-items: center; padding: 0 1rem; font-size: 0.8rem; font-family: var(--font-mono); font-weight: bold; position: relative; overflow: hidden; }
.bar span { position: relative; z-index: 2; }
.bar-us { width: 15%; background: var(--accent-primary); color: #000; }
.bar-them { width: 100%; background: rgba(255,255,255,0.1); color: var(--text-secondary); }

.security-lock { flex: 0.5; display: flex; justify-content: center; align-items: center; font-size: 6rem; color: rgba(255,255,255,0.05); }

/* --- How It Works --- */
.how-it-works { padding: 6rem 0; border-top: 1px solid var(--glass-border); }
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { padding: 2.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; transition: transform var(--transition-fast); overflow: hidden; }
.step:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.step-number { font-family: var(--font-mono); font-size: 1rem; color: var(--accent-primary); margin-bottom: 1.5rem; }
.step-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.step-content p { color: var(--text-secondary); }

/* --- Pricing --- */
.pricing { padding: 6rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.price-card { padding: 2.5rem; display: flex; flex-direction: column; border-radius: 24px; transition: transform var(--transition-fast); overflow: visible !important; }
.price-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.price-card.popular { border-color: transparent; background: rgba(255,255,255,0.05); box-shadow: 0 0 30px rgba(0,255,136,0.15); transform: scale(1.05); z-index: 2; }
.price-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.price-card.popular::after {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--text-primary), var(--accent-primary));
    background-size: 300% 100%;
    z-index: 2; pointer-events: none;
    animation: gradient-border 3s linear infinite;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes gradient-border { 0% { background-position: 0% 50%; } 100% { background-position: -300% 50%; } }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--text-primary); color: #000; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 10; }
.plan-name { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1rem; }
.plan-price { font-size: 3rem; margin-bottom: 2rem; position: relative; display: inline-block; overflow: hidden; }
.plan-price::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); animation: shimmer 4s infinite; }
@keyframes shimmer { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.plan-price span { font-size: 1rem; color: var(--text-secondary); font-family: var(--font-sans); font-weight: normal; }
.plan-features { flex-grow: 1; margin-bottom: 2rem; }
.plan-features li { display: flex; gap: 0.5rem; margin-bottom: 1rem; color: var(--text-secondary); }
.plan-features li i { color: var(--text-primary); font-size: 1.2rem; }
.price-bg-icon { position: absolute; bottom: -20px; right: -20px; font-size: 10rem; color: rgba(255,255,255,0.02); z-index: -1; transition: transform 0.5s ease; pointer-events: none; }
.price-card:hover .price-bg-icon { transform: rotate(15deg) scale(1.1); color: rgba(255,255,255,0.04); }
.price-card.popular .price-bg-icon { color: rgba(0,255,136,0.03); animation: float-icon 6s infinite alternate ease-in-out; }
@keyframes float-icon { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-15px) rotate(10deg); } }

/* --- CTA Section --- */
.cta-section { padding: 4rem 0 8rem 0; }
.cta-box { text-align: center; padding: 6rem 2rem; background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%); border-radius: 32px; }
.cta-box h2 { font-size: 4rem; margin-bottom: 1rem; }
.cta-box p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2.5rem; }

/* --- Scroll Reveal Utilities --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--transition-medium), transform 0.8s var(--transition-medium); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.tall, .bento-item.wide { grid-column: span 2; }
    .bento-item.small { grid-column: span 1; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 2rem auto; }
    .hero-cta { justify-content: center; flex-direction: column; }
    .hero-stats { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.tall, .bento-item.wide, .bento-item.small { grid-column: span 1; }
    .feature-content-row { flex-direction: column; }
    .steps-container { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .cta-box h2 { font-size: 2.5rem; }
}
