@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Dark Theme */
    --bg: #050505;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --glass: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --saffron: #f97316;
    --purple: #8b5cf6;
}

[data-theme="light"] {
    --bg: #fafafa;
    --text: #171717;
    --text-muted: #525252;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; /* disabled for lenis */ }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.4s, color 0.4s; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Background FX */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--glass-border) 1px, transparent 1px), linear-gradient(to bottom, var(--glass-border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.5; mask-image: radial-gradient(circle at center, black, transparent 80%); -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%); }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; animation: float 20s infinite alternate; }
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); }
.orb-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: var(--success); animation-delay: -5s; }
.orb-3 { top: 40%; left: 50%; width: 40vw; height: 40vw; background: var(--purple); animation-delay: -10s; }
[data-theme="light"] .orb { opacity: 0.1; }
@keyframes float { to { transform: translate(5%, 5%); } }

/* Utils */
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); }
.card { border-radius: 24px; padding: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: transform 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
[data-theme="light"] .card:hover { border-color: rgba(0,0,0,0.2); }
.p-xl { padding: 4rem; }
.p-lg { padding: 2rem; }
.mb-xl { margin-bottom: 4rem; }
.mb-lg { margin-bottom: 2rem; }
.mb-md { margin-bottom: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 1.5rem; }
.mt-xl { margin-top: 4rem; }
.mt-sm { margin-top: 1rem; }
.mx-auto { margin-inline: auto; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.op-80 { opacity: 0.8; }
.italic { font-style: italic; }
.text-lg { font-size: 1.15rem; }
.relative { position: relative; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

/* Nav */
.navbar { position: fixed; top: 0; width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; z-index: 1000; border-bottom: 1px solid var(--glass-border); transition: height 0.3s, background 0.3s; }
.navbar.scrolled { height: 70px; background: var(--glass); backdrop-filter: blur(20px); }
.logo { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.logo i { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--text-muted); transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.theme-toggle { background: transparent; border: 1px solid var(--glass-border); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background: rgba(128,128,128,0.1); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 1rem 4rem; }
.hero-content { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.875rem; font-weight: 600; margin-bottom: 2rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -2px; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(135deg, var(--text), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--primary); margin-bottom: 1.5rem; font-weight: 500; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 650px; margin-bottom: 3rem; }
.cta-group { display: flex; gap: 1rem; }
.btn { padding: 1rem 2rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(59,130,246,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(59,130,246,0.6); }
.btn-secondary { color: var(--text); }
.btn-secondary:hover { background: rgba(128,128,128,0.1); }

/* Sections */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 3rem; max-width: 700px; }
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.accent-blue { color: var(--primary); }
.accent-red { color: var(--danger); }
.accent-green { color: var(--success); }
.accent-purple { color: var(--purple); }
.accent-saffron { color: var(--saffron); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; letter-spacing: -1px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Threat Cards */
.card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; background: rgba(128,128,128,0.1); }
.card-icon.warning { color: var(--warning); background: rgba(245,158,11,0.1); }
.card-icon.danger { color: var(--danger); background: rgba(239,68,68,0.1); }
.alert { padding: 1rem; border-radius: 8px; margin-top: 1.5rem; font-weight: 600; font-size: 0.95rem; }
.alert.warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert.danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 2rem; position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content:''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); z-index: 0; }
.timeline-item { display: flex; gap: 2rem; position: relative; z-index: 1; }
.t-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; color: #fff; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.bg-green { background: var(--success); }
.bg-yellow { background: var(--warning); }
.bg-blue { background: var(--primary); }
.t-content { flex-grow: 1; }
.t-content.highlight { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 30px rgba(245,158,11,0.1); }
.t-badge { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.t-badge.green { background: rgba(16,185,129,0.1); color: var(--success); }
.t-badge.yellow { background: rgba(245,158,11,0.1); color: var(--warning); }
.t-badge.blue { background: rgba(59,130,246,0.1); color: var(--primary); }
.t-badge.purple { background: rgba(139,92,246,0.1); color: var(--purple); }

/* Table */
.table-container { overflow-x: auto; }
.confidence-table { width: 100%; border-collapse: collapse; text-align: left; }
.confidence-table th, .confidence-table td { padding: 1.2rem; border-bottom: 1px solid var(--glass-border); }
.confidence-table th { font-family: 'Outfit'; font-weight: 600; color: var(--text-muted); }
.row-green td:first-child { color: var(--success); }
.row-yellow td:first-child { color: var(--warning); }
.row-red td:first-child { color: var(--danger); }

/* Audit */
.audit-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.audit-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.1rem; }
.audit-list i { color: var(--primary); font-size: 1.2rem; margin-top: 0.2rem; }

/* Risks */
.risk-item { margin-bottom: 2rem; padding-left: 1.5rem; border-left: 2px solid var(--danger); }
.risk-item h4 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.risk-item p { color: var(--text-muted); }

/* Team & Hackathon */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.team-member { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; }
.team-member:hover .avatar { color: var(--primary); border-color: var(--primary); transform: translateY(-5px); }
.hackathon-details { border-radius: 16px; margin-top: 2rem; }
.hackathon-details h5 { color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.hackathon-details p { font-weight: 600; font-size: 1.1rem; }
.hackathon-details i { color: var(--primary); margin-right: 0.5rem; }
.border-white { border: 1px solid rgba(255,255,255,0.1); }
[data-theme="light"] .border-white { border: 1px solid rgba(0,0,0,0.1); }

/* Footer */
footer { padding: 2rem 0; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
.f-content { display: flex; justify-content: space-between; align-items: center; }
.f-content p { color: var(--text-muted); font-size: 0.9rem; }

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .timeline::before { left: 25px; }
    .p-xl { padding: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .f-content { flex-direction: column; gap: 1rem; }
    .cta-group { flex-direction: column; width: 100%; }
}
