* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f7;
    --text-primary: #171717;
    --text-secondary: #737373;
    --text-muted: #a3a3a3;
    --border-light: #e5e5e5;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --black: #0a0a0a;
    --dark-card: #111111;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-white); color: var(--text-primary); line-height: 1.5; overflow-x: hidden; }

/* Ambient Background */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.4; }
.glow-1 { top: -20%; left: 20%; width: 800px; height: 800px; background: #dbeafe; }
.glow-2 { top: 10%; right: -10%; width: 600px; height: 600px; background: #e0e7ff; }

/* Fade Animations */
.fade-section { opacity: 0; transform: translateY(48px) scale(0.98); transition: all 1200ms cubic-bezier(0.16, 1, 0.3, 1); }
.fade-section.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Navigation */
.navbar { position: fixed; width: 100%; z-index: 50; display: flex; justify-content: center; padding: 0 1rem; transition: all 500ms ease-in-out; }
.navbar.scrolled { top: 1.5rem; }
.navbar:not(.scrolled) { top: 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; transition: all 500ms ease-in-out; width: 100%; max-width: 80rem; padding: 2rem 1.5rem; background: transparent; }
.navbar.scrolled .nav-container { max-width: 56rem; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border-radius: 9999px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); border: 1px solid rgba(229, 229, 229, 0.5); padding: 0.75rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; text-decoration: none; }
.logo-icon { width: 2rem; height: 2rem; background: var(--text-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 1rem; height: 1rem; color: white; }
.logo-text { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); }

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 150ms; background: none; border: none; cursor: pointer; }
.nav-link:hover { color: var(--text-primary); }

.nav-actions { display: none; align-items: center; gap: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; padding: 0.5rem 1.25rem; border-radius: 9999px; transition: all 150ms; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--text-primary); color: white; }
.btn-primary:hover { background: #262626; }
.btn-outline { background: white; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-light); }

.mobile-menu-btn { display: flex; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-primary); }
.mobile-menu { position: absolute; top: calc(100% + 1rem); left: 1rem; right: 1rem; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(24px); border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 1px solid rgba(0, 0, 0, 0.05); padding: 1.5rem; display: none; flex-direction: column; gap: 1rem; }
.mobile-menu.active { display: flex; }
.mobile-nav-link { text-align: left; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.025em; color: #262626; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); background: none; border: none; cursor: pointer; text-decoration: none; display: block; }
.mobile-nav-link:last-of-type { border-bottom: none; }

/* Subpage Hero & Content Elements */
.page-hero { position: relative; z-index: 10; padding-top: 10rem; padding-bottom: 4rem; padding-left: 1.5rem; padding-right: 1.5rem; text-align: center; border-bottom: 1px solid var(--border-light); background: var(--bg-light); }
.page-title { font-size: 3rem; font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); margin-bottom: 1rem; }
.page-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 42rem; margin: 0 auto; line-height: 1.625; }

/* Content Prose (For Docs, Privacy, Terms) */
.prose-section { position: relative; z-index: 10; padding: 4rem 1.5rem; background: var(--bg-white); }
.prose-container { max-width: 48rem; margin: 0 auto; color: var(--text-secondary); line-height: 1.75; font-size: 1.0625rem; }
.prose-container h2 { font-size: 1.875rem; font-weight: 600; color: var(--text-primary); margin-top: 3rem; margin-bottom: 1rem; letter-spacing: -0.025em; }
.prose-container h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-container p { margin-bottom: 1.5rem; }
.prose-container ul, .prose-container ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.prose-container li { margin-bottom: 0.5rem; }
.prose-container a { color: var(--accent-blue); text-decoration: none; }
.prose-container a:hover { text-decoration: underline; }
.prose-container code { background: var(--bg-gray); padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-size: 0.875em; color: var(--accent-red); font-family: monospace; border: 1px solid var(--border-light); }
.prose-container pre { background: var(--text-primary); color: white; padding: 1.5rem; border-radius: 1rem; overflow-x: auto; margin-bottom: 1.5rem; }
.prose-container pre code { background: none; color: inherit; padding: 0; border: none; }

/* Grid systems from original */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; auto-rows: minmax(280px, auto); padding: 4rem 0;}
.bento-card { background: var(--bg-gray); border-radius: 2rem; padding: 2.5rem; border: 1px solid rgba(0, 0, 0, 0.03); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.bento-card-dark { background: var(--text-primary); border: 1px solid rgba(255, 255, 255, 0.1); color: white; }
.bento-card-dark .bento-title { color: white; }
.bento-card-dark .bento-desc { color: #a3a3a3; }
.bento-icon { width: 2rem; height: 2rem; margin-bottom: 2rem; color: var(--text-primary); }
.bento-card-dark .bento-icon { color: white; }
.bento-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 0.75rem; color: var(--text-primary); }
.bento-desc { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.625; max-width: 28rem; }

/* Footer */
.footer { background: white; padding-top: 6rem; padding-bottom: 3rem; border-top: 1px solid var(--border-light); position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { max-width: 20rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; text-decoration: none; }
.footer-logo-icon { width: 1.5rem; height: 1.5rem; background: var(--text-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 0.75rem; height: 0.75rem; color: white; }
.footer-logo-text { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); }
.footer-desc { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.625; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.footer-column { display: flex; flex-direction: column; gap: 1rem; }
.footer-column-title { font-weight: 600; color: var(--text-primary); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.footer-link { color: var(--text-secondary); font-size: 0.9375rem; text-decoration: none; transition: color 150ms; }
.footer-link:hover { color: var(--text-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copyright { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; }
.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); }
.status-dot { position: relative; display: flex; width: 0.5rem; height: 0.5rem; }
.status-dot-inner { position: relative; display: inline-flex; width: 100%; height: 100%; border-radius: 50%; background: var(--accent-emerald); }
.status-dot-ping { position: absolute; display: inline-flex; width: 100%; height: 100%; border-radius: 50%; background: var(--accent-emerald); animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

@media (min-width: 640px) {
    .page-title { font-size: 4rem; }
    .footer-bottom { flex-direction: row; }
}
@media (min-width: 768px) {
    .nav-links, .nav-actions { display: flex; }
    .mobile-menu-btn { display: none; }
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .bento-card-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer-links { grid-template-columns: 1fr; }
}