:root {
    --bg-dark: #07090f;
    --bg-card: rgba(20, 24, 39, 0.5); /* slightly more transparent for vanta bg */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --glow: rgba(14, 165, 233, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 9, 15, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(135deg, #fff, #94a3b8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text .dot { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a:not(.btn-primary-small) { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover:not(.btn-primary-small) { color: #fff; }

.btn-primary, .btn-primary-small, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; font-weight: 600; border-radius: 8px; transition: all 0.3s ease; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); color: #fff; padding: 14px 28px; font-size: 1rem; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }
.btn-primary-small { background: #fff; color: var(--bg-dark); padding: 10px 20px; font-size: 0.9rem; }
.btn-primary-small:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); padding: 14px 28px; font-size: 1rem; backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Vanta Hero Section */
.hero {
    position: relative;
    padding: 180px 0 140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* We don't set a background color here because vanta takes over */
}

/* Fallback gradient if vanta doesn't load immediately */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, #1b0a3a 0%, #07090f 70%);
    z-index: -2;
}

.hero-content {
    position: relative;
    z-index: 2; /* keep above the canvas */
    text-align: center;
    max-width: 900px;
}

/* Brand block styling & Cropped Image blending */
.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.hero-main-logo {
    max-width: 320px; 
    width: 100%;
    display: block;
    margin-bottom: 0px; 
    
    /* Magic CSS: this removes the black background */
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4)) saturate(1.2);
    
    /* Fade out the hard edges seamlessly into the background without clipping the main logo structure */
    mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
}

.hero-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-brand-name .dot {
    color: var(--accent-cyan);
}

.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.15; color: var(--text-main); text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.hero h1 span { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-main); text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }

/* General Sections */
.section { padding: 120px 0; background: var(--bg-dark); }
.section-header { text-align: center; margin-bottom: 80px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }
.section-header h2 span { color: var(--accent-cyan); }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

/* Glass Cards */
.glass { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { padding: 40px 32px; transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(6, 182, 212, 0.4); }
.card-icon { font-size: 2.5rem; margin-bottom: 24px; }
.card h3 { font-size: 1.5rem; margin-bottom: 16px; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-row { display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.stat-value, .stat-unit, .stat-prefix { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* SVG Icons */
.card-icon { margin-bottom: 24px; }

/* Dark Section & Split Layout */
.dark-section { background: linear-gradient(to bottom, #0a0d16, #07090f); border-top: 1px solid rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.02); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-content h2 { font-size: 3rem; margin-bottom: 24px; }
.split-content h2 span { color: var(--accent-cyan); }
.split-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 20px; color: var(--text-muted); }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-cyan); font-weight: bold; }
.feature-list li strong { color: #fff; }

/* Data Box */
.data-box { padding: 40px; }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-row:last-child { border-bottom: none; padding-bottom: 0; }
.data-row:first-child { padding-top: 0; }
.data-row span { color: var(--text-muted); }
.data-row strong { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; }
.text-green { color: #10b981; }
.text-blue { color: var(--accent-blue); }

/* Risk Items */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.risk-item { display: flex; gap: 24px; background: rgba(255,255,255,0.02); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.risk-indicator { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); margin-top: 6px; flex-shrink: 0; }
.risk-item h4 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; }
.risk-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.footer { background: #040509; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; }
.footer-cta h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* Animations classes for JS */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
    .grid-3, .footer-content { grid-template-columns: 1fr; }
    .hero-main-logo { max-width: 300px; }
    .nav-links a:not(.btn-primary-small) { display: none; }
}
