/* ==========================================================================
   BLUE CYBERNETICS — ANTI-SLOP ENTERPRISE DESIGN SYSTEM
   Standard: taste-skill, awesome DESIGN.md, Three.js 3D & Impeccable UI/UX
   ========================================================================== */

:root {
    --bg-void: #030508;
    --bg-surface: #060911;
    --bg-card: rgba(12, 18, 32, 0.75);
    --bg-card-hover: rgba(18, 26, 46, 0.88);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.4);
    --border-glow: rgba(0, 242, 254, 0.6);

    --neon-cyan: #00f2fe;
    --neon-cyan-glow: rgba(0, 242, 254, 0.3);
    --neon-blue: #3b82f6;
    --neon-purple: #8b5cf6;
    --neon-emerald: #10b981;
    --neon-amber: #f59e0b;

    --text-hero: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-void);
    user-select: none; /* Anti-code-scrape measure */
}

/* ─────────────────────────────────────────────────────────────
   THREE.JS 3D CANVAS & AMBIENT MESH
   ───────────────────────────────────────────────────────────── */
#threejs-canvas-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: all;
    cursor: grab;
}

#threejs-canvas-container:active {
    cursor: grabbing;
}

.mesh-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(6, 9, 17, 0.3) 0%, rgba(3, 5, 8, 0.88) 85%);
    pointer-events: none;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION (BRUTALIST-GLASS)
   ───────────────────────────────────────────────────────────── */
.brutal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 3rem;
    background: rgba(6, 9, 17, 0.75);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-glyph {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00f2fe, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glyph-char {
    font-size: 1.2rem;
    color: #ffffff;
}

.brand-names {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--neon-cyan);
}

.btn-secure-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 10px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}

.btn-secure-login:hover {
    background: linear-gradient(135deg, #00f2fe, #2563eb);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   HERO CONTAINER
   ───────────────────────────────────────────────────────────── */
.hero-container {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.08em;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 4.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 1020px;
    color: var(--text-hero);
}

.gradient-text {
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.35));
}

.hero-narrative {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 820px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #00f2fe 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.35);
    transition: all 0.25s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Telemetry Bar */
.telemetry-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    margin-top: 2.5rem;
    padding: 1.1rem 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.telemetry-num {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon-cyan);
}

.telemetry-label {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 700;
}

.telemetry-sep {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.hero-3d-controls {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────────────
   SECTIONS & BENTO GRID
   ───────────────────────────────────────────────────────────── */
.section-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.bg-subtle {
    background: rgba(6, 9, 17, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    grid-column: span 6;
}

.card-featured {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(12, 22, 42, 0.85), rgba(7, 12, 24, 0.9));
    border-color: rgba(0, 242, 254, 0.25);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 242, 254, 0.15);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    pointer-events: none;
}

.glow-cyan { background: var(--neon-cyan); }
.glow-emerald { background: var(--neon-emerald); }
.glow-purple { background: var(--neon-purple); }
.glow-amber { background: var(--neon-amber); }
.glow-blue { background: var(--neon-blue); }

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.industry-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.card-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.point-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.pillar-icon {
    font-size: 2rem;
}

.pillar-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   SECURITY BANNER
   ───────────────────────────────────────────────────────────── */
.security-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(14, 21, 38, 0.85), rgba(6, 9, 17, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sec-left {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.shield-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-emerald);
    letter-spacing: 0.1em;
}

.sec-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.sec-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.sec-right {
    flex: 1;
    max-width: 400px;
}

.shield-card {
    background: rgba(4, 8, 16, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shield-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.84rem;
    font-family: var(--font-mono);
}

.shield-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.shield-dot.green {
    background-color: var(--neon-emerald);
    box-shadow: 0 0 10px var(--neon-emerald);
}

.shield-label {
    color: var(--text-muted);
}

.shield-val {
    margin-left: auto;
    font-weight: 700;
    color: #e2e8f0;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-subtle);
    background: rgba(3, 5, 8, 0.95);
    padding: 3.5rem 2rem;
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
}

.legal-tag {
    color: var(--neon-cyan);
}

/* ─────────────────────────────────────────────────────────────
   ANTI-SNOOP TOAST BANNER (BURLA AL INSPECCIONAR)
   ───────────────────────────────────────────────────────────── */
.snoop-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 440px;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(24px);
    border: 2px solid var(--neon-cyan);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.4);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: toastSlideUp 0.4s var(--ease-out-expo);
}

@keyframes toastSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #ffffff;
}

.toast-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toast-body strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.toast-highlight {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-weight: 600;
    margin-top: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────
   MODAL UAC LOGIN
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: modalPop 0.3s var(--ease-out-expo);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 0.1em;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: #ffffff;
}

.modal-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 600;
}

.input-secure {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    outline: none;
}

.input-secure:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.uac-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.uac-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.uac-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.uac-alert.hidden {
    display: none;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 1rem;
}

.modal-footer-note {
    text-align: center;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (DIFFUI ADAPTATION)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 3.25rem;
    }
    
    .security-banner {
        flex-direction: column;
        padding: 2.5rem;
    }
    
    .sec-right {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .brutal-nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-headline {
        font-size: 2.35rem;
    }
    
    .hero-narrative {
        font-size: 1rem;
    }
    
    .telemetry-bar {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .telemetry-sep {
        width: 60px;
        height: 1px;
    }
    
    .bento-card {
        grid-column: span 12;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
