/* ============================================================
   SERGEBOT — Shared site stylesheet (chrome)
   Base tokens, reset, nav, buttons, page hero, footer + responsive.
   Linked by every page except the homepage (which inlines its
   critical CSS). Page-specific styles live inline per page, or in
   blog.css for the blog. Bump the ?v= query when this file changes.
   ============================================================ */

:root {
  --bg: #050508; --bg-2: #0b0b10;
  --surface: rgba(18,18,26,0.65); --surface-2: rgba(28,28,40,0.85);
  --line: rgba(167,139,250,0.12); --line-active: rgba(167,139,250,0.4);
  --text: #f3f3f7; --muted: #9b9bab; --faint: #5e5e70;
  --violet: #a78bfa; --violet-soft: #c4b5fd; --violet-deep: #7c5cf0;
  --glow: rgba(124,92,240,0.35); --success: #10b981; --danger: #ff6b6b;
  --maxw: 1180px; --radius: 24px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 5px), var(--bg); }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Eyebrow */
.eyebrow { font-family: 'Fira Code', monospace; font-size: .74rem; letter-spacing: .25em; text-transform: uppercase; color: var(--violet); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .9rem; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-primary { background: linear-gradient(135deg, var(--violet-deep), var(--violet)); color: #050508; box-shadow: 0 0 0 1px rgba(196,181,253,.2), 0 8px 25px -8px var(--glow); }
.btn-primary:hover { transform: scale(1.03) translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(167,139,250,0.08); color: var(--violet-soft); }

/* Nav */
header { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; z-index: 100; }
.nav-island { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 999px; transition: all 0.3s ease; }
.nav-island.scrolled { background: rgba(0,0,0,0.95); border-color: var(--line-active); box-shadow: 0 16px 40px -15px rgba(0,0,0,0.8), 0 0 20px -5px rgba(167,139,250,0.15); padding: 10px 24px; }
.logo { display: inline-flex; align-items: center; transition: opacity 0.2s; }
.logo:hover { opacity: 0.85; }
.logo img { display: block; height: 48px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s ease, transform .2s ease; display: inline-block; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.nav-links a.active { color: var(--violet-soft); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 50%; width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; transition: border-color 0.2s; }
.menu-toggle:hover { border-color: var(--violet); }

/* Page hero (standalone pages) */
.page-hero { padding: clamp(130px,18vh,180px) 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(2.2rem,5vw,3.8rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 620px; line-height: 1.65; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 60px 0; background: var(--bg-2); }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-links { display: flex; gap: 32px; list-style: none; }
.foot-links a { color: var(--muted); font-size: .9rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.status-indicator { font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse-status 2s infinite; }
@keyframes pulse-status { 0%,100%{opacity:.4} 50%{opacity:1} }
.copy { color: var(--faint); font-size: .82rem; width: 100%; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.02); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-legal { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.foot-legal a { color: var(--faint); font-size: .8rem; transition: color 0.2s; }
.foot-legal a:hover { color: var(--violet); }
.foot-socials { display: flex; gap: 16px; align-items: center; }
.foot-socials a { color: var(--faint); transition: color 0.2s, transform 0.2s; display: inline-flex; }
.foot-socials a:hover { color: var(--violet); transform: translateY(-2px); }
.foot-socials svg { width: 18px; height: 18px; }

/* Shared responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-island.expanded { border-radius: 20px; }
  .nav-island.expanded .nav-links { display: flex; flex-direction: column; width: 100%; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .nav-island.expanded .nav-cta { display: block; width: 100%; margin-top: 16px; }
}
@media (max-width: 520px) {
  .copy { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
}
