/* ==========================================================================
   JARVIS (Mark LII) v2.0 - Premium Cyber-Luxury Stylesheet
   Designed & Engineered by Rudraksh Purohit
   Aesthetics: Clean, Premium Dark Mode, Subtle Glassmorphism, Elegant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    --primary-cyan: #00d4ff;
    --text-main: #ededed;
    --text-muted: #888888;
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Global Background Canvas */
#bgCanvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none; opacity: 0.4;
}

/* Mouse Ambient Glow */
.mouse-glow {
    position: fixed; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 1; transition: transform 0.1s ease-out;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-subtle); }
.brand-text { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; color: #fff; }
.brand-badge { font-family: var(--font-mono); font-size: 0.65rem; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); border-radius: 100px; color: var(--text-muted); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: #fff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.8rem; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
    border-radius: 100px; text-decoration: none; transition: var(--transition); cursor: pointer;
}
.btn-primary { background: #fff; color: #000; border: 1px solid #fff; }
.btn-primary:hover { background: transparent; color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; text-align: center; justify-items: center; }
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 800px; margin: 0 auto; }

.hero-title { font-size: 4.5rem; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -1px; }
.hero-highlight { 
    background: linear-gradient(135deg, #fff 30%, #666);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* Elegant Arc Reactor */
.hero-visual { position: relative; height: 300px; display: flex; justify-content: center; align-items: center; margin-top: 2rem; }
.arc-core {
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
    display: flex; justify-content: center; align-items: center;
    position: relative;
}
.arc-core::after {
    content: ''; position: absolute; inset: -20px;
    border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { 100% { transform: rotate(360deg); } }
.arc-core img { width: 80px; height: 80px; opacity: 0.9; }

/* Glass Cards */
.glass-card { 
    background: var(--bg-card); backdrop-filter: blur(20px); 
    border: 1px solid var(--border-subtle); border-radius: 24px; 
    padding: 2.5rem; transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.4); transform: translateY(-5px); }

/* Section Typography */
.section { padding: 8rem 0; }
.section-title { font-size: 2.5rem; font-weight: 600; text-align: center; margin-bottom: 1rem; color: #fff; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 4rem; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.feature-icon { font-size: 2rem; margin-bottom: 1.5rem; display: inline-block; opacity: 0.8; }
.feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.8rem; color: #fff; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Simulator Box */
.simulator-box { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; border: 1px solid var(--border-subtle); border-radius: 24px; overflow: hidden; background: var(--bg-secondary); }
.sim-sidebar { background: rgba(20, 20, 20, 0.5); padding: 2rem; border-right: 1px solid var(--border-subtle); }
.sim-btn { width: 100%; text-align: left; padding: 1rem 1.5rem; background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; cursor: pointer; transition: var(--transition); }
.sim-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sim-btn.active { background: #fff; color: #000; }
.sim-terminal { padding: 3rem 2.5rem; font-family: var(--font-mono); font-size: 0.9rem; }
.terminal-line { margin-bottom: 1.5rem; opacity: 0; transform: translateY(10px); animation: terminalFade 0.4s forwards ease-out; }
@keyframes terminalFade { to { opacity: 1; transform: translateY(0); } }
.term-prefix { color: var(--text-muted); }
.term-text { color: #fff; }
.term-response { color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1.2rem; margin-top: 1.5rem; }

/* Protocol Grid */
.filter-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-pill { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 0.6rem 1.5rem; border-radius: 100px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.filter-pill:hover { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.filter-pill.active { background: #fff; color: #000; border-color: #fff; }

.protocol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.protocol-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1.5rem; transition: var(--transition); }
.protocol-item:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.protocol-item h4 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.protocol-tag { font-size: 0.65rem; font-family: var(--font-mono); color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 0.2rem 0.5rem; border-radius: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
    .simulator-box { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
