/* ============================================
   oAI Website — Shared Styles
   https://mac.oai.pm
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #080810;
  --bg2: #0e0e18;
  --surface: #13131f;
  --surface2: #1a1a28;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e2e2f0;
  --muted: #7a7a99;
  --muted2: #a0a0c0;
  --accent: #6c5ce7;
  --accent2: #a29bfe;
  --accent3: #fd79a8;
  --accent-glow: rgba(108,92,231,0.3);
  --green: #55efc4;
  --yellow: #ffeaa7;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-w: 1100px;
  --nav-h: 60px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

code {
  font-family: var(--font-mono);
  font-size: 0.83em;
  background: rgba(108,92,231,0.14);
  color: var(--accent2);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(108,92,231,0.2);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-bottom-width: 2px;
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--text);
}

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,92,231,0.35);
}
.btn-primary:hover {
  background: var(--accent2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(108,92,231,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(108,92,231,0.06);
}
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.nav-logo:hover { color: var(--text); }
.nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }

/* ─── Section label ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
  opacity: 0.9;
}

/* ─── Noise overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.footer-logo img { width: 22px; height: 22px; border-radius: 5px; opacity: 0.7; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .container { padding: 0 18px; }
}
