/* ══════════════════════════════════════════════
   LLMForge — Shared Styles
   ══════════════════════════════════════════════ */

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

:root {
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-card: rgba(255,255,255,0.04);
  --text-1: #f5f5f7;
  --text-2: #86868b;
  --text-3: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --green: #30d158;
  --purple: #bf5af2;
  --orange: #ff9f0a;
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(0,0,0,0.8);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: rgba(0,0,0,0.03);
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --green: #248a3d;
  --purple: #9d4edd;
  --orange: #c93400;
  --border: rgba(0,0,0,0.08);
  --nav-bg: rgba(255,255,255,0.8);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
}

.nav-left img {
  width: 24px; height: 24px;
  border-radius: 5px;
}

.nav-left span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.nav-center {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 2rem;
}

.nav-center a {
  font-size: 0.8rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-center a:hover { color: var(--text-1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-hamburger svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-1);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 4px;
  transition: opacity 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.theme-toggle:hover { opacity: 0.7; }

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-right .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-right .btn-download:hover {
  background: var(--accent-hover);
}

.nav-right .btn-download svg {
  width: 12px; height: 12px;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg);
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary {
  padding: 14px 24px;
  color: var(--text-1);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 980px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card);
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}

footer .f-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
}

footer .f-left img {
  width: 18px; height: 18px;
  border-radius: 4px;
  opacity: 0.6;
}

footer .f-right {
  font-size: 0.78rem;
  color: var(--text-3);
}

footer .f-right a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

footer .f-right a:hover {
  color: var(--text-1);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim { animation: fadeUp 0.7s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
