/* RESET & VARS */
:root {
    --bg: #0f0f12;
    --text-main: #ffffff;
    --text-muted: #8b8b96;
    --accent: #4e54c8;
    --accent-light: #8f94fb;
    --orb-glow: rgba(78, 84, 200, 0.6);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 6%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 0.7; }

.btn-nav {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

/* HERO LAYOUT */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 120px 6% 60px 6%;
}

.content-left {
    max-width: 500px;
    z-index: 2;
    position: relative;
}

h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-primary:hover { transform: scale(1.05); }

.version-tag {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

/* WEB SCANNER UI */
.web-scanner {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    gap: 10px;
}

#urlInput {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

#urlInput::placeholder {
    color: #666;
}

#urlInput:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-scan {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.btn-scan:hover {
    background: var(--accent-light);
}

.btn-scan:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Result Card */
.scan-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.loader {
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.res-score {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
}

.res-verdict {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.res-summary {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.res-error {
    color: #ff6b6b;
    font-size: 0.9rem;
}

.critical { color: #ff4444; }
.warning { color: #ffbb33; }
.safe { color: #00C851; }

/* FORENSIC BREAKDOWN - Vector Cards */
.vector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.vector-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
}

.vec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vec-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vec-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.vec-analysis {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.vec-evidence {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 10px;
    margin-top: 6px;
}

/* THE "MASLO" BLOB ANIMATION */
.visual-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 60px;
}

.neural-orb {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 60px var(--orb-glow);
    mix-blend-mode: screen;
}

.orb-core {
    position: absolute;
    inset: 20px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent);
    filter: blur(15px);
    animation: morph 8s ease-in-out infinite reverse;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.5);
    top: 0;
    animation: scan 3s linear infinite;
    opacity: 0.3;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(120deg); }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: rotate(240deg); }
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* FEATURES GRID */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 6rem 6%;
    background: #141418;
}

.feature-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* FOOTER */
footer {
    padding: 4rem 6%;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal a {
    color: var(--text-muted);
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.legal a:hover {
    color: var(--text-main);
}

/* MOBILE */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .content-left { margin: 0 auto; }
    .visual-right { margin-top: 3rem; padding-top: 0; }
    .neural-orb { width: 280px; height: 280px; }
    h1 { font-size: 2.8rem; }
    .subtitle { font-size: 1rem; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .legal a { margin: 0 0.5rem; }
    .nav-links { display: none; }
}
