/* ══════════════════════════════════════════════
   algoequity — Main Stylesheet (shared)
   ══════════════════════════════════════════════ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

/* Design Tokens */
:root {
  --bg-page: #08090a;
  --bg-panel: #0f1011;
  --bg-surface: rgba(255, 255, 255, 0.02);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-muted: #8a8f98;
  --text-subtle: #62666d;
  --accent: #5e6ad2;
  --accent-hover: #7170ff;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv01", "ss03";
}

/* Typography */
.display-xl { font-size: 4rem; font-weight: 400; line-height: 1.0; letter-spacing: -0.025em; }
.display-lg { font-size: 3rem; font-weight: 400; line-height: 1.0; letter-spacing: -0.02em; }
.heading-1 { font-size: 2rem; font-weight: 400; line-height: 1.13; letter-spacing: -0.022em; }
.heading-2 { font-size: 1.5rem; font-weight: 400; line-height: 1.33; letter-spacing: -0.012em; }
.body-lg { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); }
.body-md { font-size: 1rem; line-height: 1.5; color: var(--text-muted); }
.caption-sm { font-size: 0.9375rem; line-height: 1.6; letter-spacing: -0.01em; color: var(--text-muted); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ──────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 9, 10, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-brand { font-size: 1rem; font-weight: 500; color: var(--text-primary); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity .15s ease; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: all 0.15s ease; letter-spacing: -0.01em; padding: 6px 10px; border-radius: 4px; }
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.nav-links a.active { color: #f7f8f8; background: rgba(94, 106, 210, 0.12); }

/* Nav Buttons */
.btn-nav { padding: 6px 12px; font-size: 0.875rem; font-weight: 500; border-radius: 6px; text-decoration: none; transition: all 0.15s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

/* ── Footer ──────────────────────────────────── */
footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-brand { font-size: 0.875rem; color: var(--text-subtle); letter-spacing: -0.01em; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text-primary); }

/* ── Animations ──────────────────────────────── */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fade-up 0.6s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── Scrollbar / Selection ───────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }
::selection { background: rgba(94, 106, 210, 0.3); color: var(--text-primary); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .display-xl { font-size: 2.5rem; }
  .display-lg { font-size: 2rem; }
  .nav-links { display: none; }
}
