:root {
    --bg-dark: #020617;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-950: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: white;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
}

#neural-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    opacity: 0.4;
    pointer-events: none;
}

/* --- AI Scanner Effect --- */
:root {
    --scan-color: #22d3ee;
}

#ai-scanner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.ai-scanner-beam {
    position: absolute;
    top: -250px; 
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(34, 211, 238, 0.01) 40%, 
        rgba(34, 211, 238, 0.15) 98%, 
        var(--scan-color) 100%
    );
    animation: scan-move 4s linear infinite;
}

.ai-scanner-beam::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--scan-color) 15%, var(--scan-color) 85%, transparent);
    box-shadow: 
        0 0 10px var(--scan-color), 
        0 0 20px var(--scan-color),
        0 -5px 25px rgba(34, 211, 238, 0.3);
    animation: scan-flicker 0.15s infinite alternate;
}

@keyframes scan-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(100vh + 250px)); }
}

@keyframes scan-flicker {
    0% { opacity: 0.85; filter: brightness(1); }
    100% { opacity: 1; filter: brightness(1.3); }
}

.scan-target {
    transition: filter 0.4s ease-out, transform 0.2s ease-out, text-shadow 0.3s ease-out;
}

.scan-distortion {
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.6)) hue-rotate(5deg) brightness(1.2);
    transform: translateY(-2px) scale(1.01);
    text-shadow: 
        0 0 8px var(--scan-color), 
        2px 0 2px rgba(34, 211, 238, 0.8), 
        -2px 0 2px rgba(255, 0, 255, 0.4);
    transition: filter 0.1s ease-in, transform 0.1s ease-in, text-shadow 0.1s ease-in;
}

/* selection */
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #cffafe;
}

/* Background Orbs */
.background-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
}

.orb-1 {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: rgba(6, 182, 212, 0.2);
    animation: float-orb1 20s ease-in-out infinite;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: rgba(147, 51, 234, 0.2);
    animation: float-orb2 25s ease-in-out infinite reverse;
}

.orb-3 {
    top: 40%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    background: rgba(59, 130, 246, 0.1);
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float-orb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 10vh) scale(1.1); }
}

@keyframes float-orb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5vw, -10vh) scale(1.2); }
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrapper {
    padding: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.cyan-text { color: var(--cyan-400); }

.version-badge {
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-300);
    transition: color 0.2s;
}

.nav-link:hover { color: white; }

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 48px;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    background: linear-gradient(to right, white, #cffafe, var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--slate-300);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.btn {
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.btn-primary {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    border: 1px solid rgba(6, 182, 212, 0.5);
}

.btn-primary:hover {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    transition: all 0.5s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.hero-visual-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 3rem;
    filter: blur(64px);
    z-index: -1;
}

.hero-card {
    width: 100%;
    max-width: 448px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-card-hover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.7s;
}

.hero-card:hover .hero-card-hover-bg { opacity: 1; }

/* SVG Logo Animations */
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes nodePulse {
    from { r: 1.5; opacity: 0.5; filter: drop-shadow(0 0 2px #22d3ee); }
    to { r: 3.5; opacity: 1; filter: drop-shadow(0 0 10px #22d3ee); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.path-draw {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.node-pulse { animation: nodePulse 2s infinite alternate; }
.logo-float { animation: logoFloat 6s ease-in-out infinite; }

/* Features Section */
.features {
    padding: 96px 24px;
    position: relative;
    z-index: 10;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.section-desc {
    color: var(--slate-400);
    max-width: 672px;
    margin: 0 auto;
    font-size: 18px;
}

.features-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-card {
    padding: 32px;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s;
}

.feature-card:hover .feature-icon-wrapper { transform: scale(1.1); }

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.feature-card-desc {
    color: var(--slate-400);
    line-height: 1.6;
    font-size: 14px;
}

/* Audit Section */
.audit {
    padding: 96px 24px;
    position: relative;
    z-index: 10;
}

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

.audit-glass {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) { .audit-glass { padding: 64px; } }

.audit-inner-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(33%, -50%);
    pointer-events: none;
}

.audit-layout {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) { .audit-layout { grid-template-columns: 1fr 1fr; align-items: center; } }

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 24px;
}

.audit-title {
    font-size: clamp(2.25rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.audit-desc {
    color: var(--slate-300);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.audit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-400);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.audit-link:hover { color: #67e8f9; }

.audit-link i { transition: transform 0.2s; }
.audit-link:hover i { transform: translateX(4px); }

.audit-status-list {
    display: grid;
    gap: 16px;
}

.audit-status-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
}

.audit-status-card:hover { transform: scale(1.02); }

.status-icon { font-size: 24px; margin-top: 4px; }
.status-title { font-weight: 700; margin-bottom: 4px; }
.status-desc { font-size: 14px; color: var(--slate-400); }

.status-green { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.05); }
.status-yellow { border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.05); }
.status-red { border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.05); }

/* Footer */
.footer {
    padding: 64px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (min-width: 768px) { .footer-container { flex-direction: row; } }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo span {
    font-weight: 700;
    color: var(--slate-300);
    letter-spacing: 0.1em;
}

.footer-copy {
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 500;
}

.footer-social { display: flex; gap: 16px; }

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
