/* ANodes Shared Styles — extracted to deduplicate 5k+ lines across 13 pages */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --background: #ffffff;
    --bg-accent: #f8fafc;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-solid: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.05);
    --primary-glow: rgba(99, 102, 241, 0.15);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--text); letter-spacing: -0.02em; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; border: 3px solid var(--background); }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(168, 85, 247, 0.03) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.03) 0, transparent 50%);
}

/* Grain */
.grain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Background */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute; width: 600px; height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(140px); border-radius: 50%; opacity: 0.12;
    animation: move 25s infinite alternate ease-in-out;
}
.blob-1 { top: -200px; right: -100px; }
.blob-2 { bottom: -200px; left: -100px; animation-delay: -7s; }
.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}
@keyframes move { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(150px,150px) scale(1.2); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .grid-bg { background-image: radial-gradient(rgba(99,102,241,0.1) 1px, transparent 0); background-size: 30px 30px; opacity: 0.4; }
    .blob { width: 250px !important; height: 250px !important; filter: blur(60px) !important; }
}

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; animation: pageIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
section { padding: 120px 0; }

/* Navbar — sticky pill */
nav {
    margin-top: 1rem; padding: 0.75rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--glass-border); border-radius: 100px;
    background: rgba(255,255,255,0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 1rem; z-index: 1000; box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
}
.logo { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.02); }
.logo span { background: linear-gradient(135deg, var(--text) 30%, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white;
    padding: 0.5rem 1.25rem; border-radius: 100px; text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem;
    transition: all 0.3s; box-shadow: 0 10px 30px var(--primary-glow); border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px var(--primary-glow); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu .close-btn {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: 50%;
    background: #f1f5f9; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.3s ease; z-index: 1;
}
.mobile-menu .close-btn:hover { background: #e2e8f0; color: var(--text); }
.mobile-menu a { font-size: 1.25rem; color: var(--text); text-decoration: none; font-weight: 500; transition: all 0.3s; position: relative; padding: 0.25rem 0; }
.mobile-menu a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.mobile-menu a:hover::after, .mobile-menu a.active::after { width: 100%; }
.mobile-menu a:hover { color: var(--text); transform: none; }
.mobile-menu .btn { font-size: 1rem; padding: 0.875rem 2rem; }

/* Hero — index + shared headers */
.hero { text-align: center; padding: 160px 0 100px; animation: heroFadeIn 1.2s cubic-bezier(0.16,1,0.3,1); }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.hero h1 { font-size: clamp(3rem,10vw,5.5rem); line-height: 1.15; margin-bottom: 2rem; font-weight: 800; background: linear-gradient(to bottom, var(--text) 60%, var(--text-muted)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.1em; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero .btn { padding: 1rem 2.5rem; font-size: 1rem; }
.section-tag { text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: var(--primary); margin-bottom: 1.5rem; display: inline-flex; padding: 0.5rem 1rem; background: rgba(99,102,241,0.05); border-radius: 100px; border: 1px solid rgba(99,102,241,0.1); }
.section-title { font-size: clamp(2rem,5vw,3rem); margin-bottom: 1.5rem; font-weight: 800; padding-bottom: 0.1em; }
.section-subtitle { color: var(--text-muted); margin-bottom: 5rem; max-width: 600px; margin-left: auto; margin-right: auto; text-align: center; font-size: 1.1rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
header h1, .hero h1, .section-title { padding-bottom: 0.1em; }

/* Footer */
footer { padding: 80px 0 40px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 4rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-links svg { width: 18px; height: 18px; }
.social-stack a svg { width: 20px; height: 20px; }

/* Policy pages — shared */
.policy-content { max-width: 900px; margin: 0 auto; padding: 60px 0; }
.policy-card { background: var(--surface); border: 1px solid var(--glass-border); padding: 3rem; border-radius: 24px; backdrop-filter: blur(12px); }
.policy-card h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; color: var(--primary); }
.policy-card h2:first-of-type { margin-top: 0; }
.policy-card p { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.policy-card ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }
.policy-card li { margin-bottom: 0.75rem; }
.policy-card strong { color: var(--text-muted); }
.policy-card hr { border: none; border-top: 1px solid var(--glass-border); margin: 2rem 0; }
.policy-card a { color: var(--primary); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }
    nav .btn { display: none; }
    .container { padding: 0 1.25rem; }
    section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-brand { align-items: center; text-align: center; }
    .footer-col { text-align: center; }
    .footer-links a { justify-content: center; }
    .policy-card { padding: 1.5rem; }
    .policy-content h1 { font-size: 2rem; }
}
