:root {
    --bg-color: #0a0a0f;
    --card-bg: rgba(20, 20, 30, 0.6);
    --primary: #00f2ff;
    --secondary: #7000ff;
    --text: #ffffff;
    --text-dim: #8892b0;
    --success: #00ff9d;
    --danger: #ff0055;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.glow-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.dot {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-primary {
    background: var(--text);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.sub-glitch {
    color: var(--text-dim);
    font-size: 3rem;
    margin-bottom: 2rem;
}

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

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Visual Metaphor Animation */
.visual-metaphor {
    position: relative;
    width: 500px;
    height: 300px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.stream-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-code);
    font-size: 1.2rem;
}

.stream-line {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.token {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.pii-source {
    color: var(--danger);
    border: 1px solid rgba(255, 0, 85, 0.3);
    animation: pulse-red 2s infinite;
}

.pii-masked {
    color: var(--success);
    border: 1px solid rgba(0, 255, 157, 0.3);
    text-shadow: 0 0 10px var(--success);
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    animation: scan 3s infinite ease-in-out;
    z-index: 20;
}

@keyframes scan {
    0% { transform: translateX(-200px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(200px); opacity: 0; }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 rgba(255, 0, 85, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.3); }
    100% { box-shadow: 0 0 0 rgba(255, 0, 85, 0); }
}

.status-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
}

.indicator {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

/* Interactive Demo */
.interactive-demo {
    padding: 5rem 10%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0f0f16 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.interactive-demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.interactive-demo p {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.terminal-window {
    background: #1a1a23;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: var(--font-code);
}

.terminal-header {
    background: #252530;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a45;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.title {
    margin-left: 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 2rem;
    min-height: 300px;
}

.input-area {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.prompt {
    color: var(--primary);
    font-weight: bold;
}

textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-code);
    font-size: 1rem;
    resize: none;
    outline: none;
    min-height: 60px;
}

.output-area {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.result-text {
    color: var(--text);
    line-height: 1.6;
}

.highlight-masked {
    color: var(--bg-color);
    background: var(--success);
    padding: 0 4px;
    border-radius: 2px;
    font-weight: bold;
}

.stats-row {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    gap: 1rem;
}

/* Features */
.features {
    padding: 5rem 10%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Footer */
footer {
    padding: 3rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dim);
}

.footer-logo {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}
