:root {
    /* Palette */
    --brand-primary: #68D0D0; /* Cyan */
    --brand-secondary: #5098F0; /* Blue */
    --brand-accent: #68D8C8; /* Mint */
    --status-success: #4ADE80;
    --status-danger: #F87171;
    
    --bg-dark: #050507;
    --bg-card: #0A0F18;
    --bg-card-hover: #111926;
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(104, 208, 208, 0.2);
    
    --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Layout Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid { display: grid; gap: 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* --- Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: white;
}

.logo-img { height: 32px; width: 32px; object-fit: contain; border-radius: 5px; }

.nav-links { display: flex; gap: 22px; align-items: center; }

.nav-link {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-link:hover { color: var(--text-main); }

/* Language Switcher */
.lang-switch {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.lang-switch:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-nav {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-nav:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
}

/* --- Hero Section --- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

/* Tech Grid Background */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(80, 152, 240, 0.1);
    border: 1px solid rgba(80, 152, 240, 0.2);
    color: var(--brand-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, white 20%, var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.tech-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chip {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}
.chip strong { color: white; }

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.cta-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

/* --- UI Representation --- */
.ui-showcase {
    margin-top: 80px;
    perspective: 2000px;
    scroll-margin-top: 92px;
}

.floating-demo-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 140;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(104, 208, 208, 0.95), rgba(80, 152, 240, 0.95));
    color: #041019;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(10, 15, 24, 0.45);
    animation: floatingDemoPulse 2.2s ease-in-out infinite;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.floating-demo-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    animation: none;
}

.floating-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(10, 15, 24, 0.55);
}

@keyframes floatingDemoPulse {
    0% { box-shadow: 0 12px 32px rgba(10, 15, 24, 0.45), 0 0 0 0 rgba(104, 208, 208, 0.35); }
    70% { box-shadow: 0 12px 32px rgba(10, 15, 24, 0.45), 0 0 0 16px rgba(104, 208, 208, 0); }
    100% { box-shadow: 0 12px 32px rgba(10, 15, 24, 0.45), 0 0 0 0 rgba(104, 208, 208, 0); }
}

.mac-window {
    background: #1C1C1E;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    width: min(900px, 100%);
    margin: 0 auto;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.5),
        0 50px 100px -20px rgba(0,0,0,0.7);
    position: relative;
    transform: rotateX(2deg);
    transition: transform 0.5s;
    overflow: hidden;
}
.mac-window:hover { transform: rotateX(0deg); }

.titlebar {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}
.traffic-lights { display: flex; gap: 8px; }
.light { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #FF5F56; }
.minimize { background: #FFBD2E; }
.maximize { background: #27C93F; }

.window-content { display: grid; grid-template-columns: 240px 1fr; height: 480px; }

.sidebar { background: rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.05); padding: 20px 16px; }

.menu-item {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-item.active { background: rgba(104, 208, 208, 0.15); color: var(--brand-primary); font-weight: 500; }

.main-view { padding: 32px; }

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

.toggle-switch { width: 44px; height: 24px; background: var(--brand-secondary); border-radius: 99px; position: relative; }
.toggle-switch::after {
    content: ''; position: absolute; right: 2px; top: 2px;
    width: 20px; height: 20px; background: white; border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blocked-list { display: flex; flex-direction: column; gap: 12px; }

.app-row {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-info { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 32px; height: 32px; background: #333; border-radius: 8px; }
.lock-icon { color: var(--status-danger); opacity: 0.8; }

/* --- Features Grid --- */
.features-section { padding: 120px 0; }
.bento-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px;
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover { border-color: rgba(255,255,255,0.15); background: var(--bg-card-hover); }

/* Feature specific cards */
.card.intruder {
    background: radial-gradient(circle at top right, rgba(248, 113, 113, 0.1), transparent 60%), var(--bg-card);
    border-color: rgba(248, 113, 113, 0.2);
}
.card.fake-crash {
    background: radial-gradient(circle at top right, rgba(255, 189, 46, 0.1), transparent 60%), var(--bg-card);
    border-color: rgba(255, 189, 46, 0.2);
}

.icon-header { margin-bottom: 20px; font-size: 2rem; display: flex; justify-content: space-between; align-items: flex-start; }

.mini-badge {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mini-badge.pro { color: #F87171; background: rgba(248,113,113,0.1); }
.mini-badge.new { color: #FFBD2E; background: rgba(255, 189, 46, 0.1); }

.card h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; color: white; }
.card p { font-size: 0.95rem; color: var(--text-muted); flex-grow: 1; }

.code-snippet {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    color: #A3E635;
}

.wide-card { grid-column: span 1; }
@media (min-width: 900px) { .wide-card { grid-column: span 2; } }

/* --- Evidence & FAQ --- */
.section-intro {
    margin-bottom: 56px;
}

.section-intro h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 14px;
}

.section-intro p {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

.evidence-section {
    padding: 110px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 0%, rgba(80, 152, 240, 0.14), transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(104, 216, 200, 0.12), transparent 48%),
        #05070d;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stat-card {
    background: rgba(8, 14, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 12px;
}

.stat-copy {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.stat-source {
    color: var(--brand-primary);
    font-size: 0.84rem;
    font-weight: 500;
}

.stat-source:hover {
    color: white;
}

.faq-section {
    padding: 110px 0 40px;
}

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 24px;
}

.faq-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 80px;
    background: rgba(255,255,255,0.01);
}
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-weight: 700; color: white; display: block; margin-bottom: 16px; }
.footer-text { max-width: 300px; font-size: 0.9rem; color: var(--text-muted); }
.footer h4 { color: white; margin-bottom: 20px; font-size: 0.95rem; }
.footer ul li { margin-bottom: 12px; }
.footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer a:hover { color: var(--brand-primary); }
.sub-footer { border-top: 1px solid var(--border); padding-top: 30px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .window-content { grid-template-columns: 60px 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 40px; }
    .menu-item span { display: none; }
    .sidebar { padding: 20px 10px; }
    .lang-switch { display: none; } /* Simplify mobile nav */
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .cta-note { padding: 0 12px; }
    .floating-demo-btn {
        right: 12px;
        bottom: 12px;
        font-size: 0.82rem;
        padding: 10px 14px;
    }
}
