/* The AI Board — Shared Components */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Optika, 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: rgb(5, 17, 29);
  color: rgb(250, 249, 246);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 72px; /* FIX 3: offset for fixed nav */
}
/* Global touch targets */
a, button, input { min-height: 44px; min-width: 44px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 17, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.site-nav.scrolled { background: rgba(5, 17, 29, 0.95); }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
}
/* FIX 1: nav logo touch target */
.nav-logo, .nav-logo svg { min-height: 44px; min-width: 44px; display: flex; align-items: center; }
.nav-logo svg { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a, .nav-links li a {
  color: rgba(250,249,246,0.85); font-size: 16px; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.3px;
  min-height: 44px; display: inline-flex; align-items: center; /* FIX 1 */
}
.nav-links a:hover, .nav-links a.active { color: #EB307C; }

/* FIX 1: hamburger touch target */
.hamburger {
  display: none; background: none; border: none; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
  min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #FAF9F6;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* FIX 3: mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: rgba(5, 17, 29, 0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { max-height: 600px; display: flex; }
.mobile-nav a, .mobile-nav li a {
  color: #FAF9F6; font-size: 16px; font-weight: 500;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
  min-height: 44px; display: flex; align-items: center; /* FIX 1 */
}
.mobile-nav a:hover { color: #EB307C; background: rgba(255,255,255,0.03); }

@media (max-width: 1150px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 14px 24px; }
}

/* Footer */
.site-footer {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px 40px 40px;
  margin-top: 80px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-logo { padding: 12px 0; }
.footer-brand .footer-logo svg { height: 28px; width: auto; }
.footer-tagline { color: rgba(250,249,246,0.5); font-size: 16px; margin-top: 16px; letter-spacing: 1px; }
/* FIX 1: social icon touch targets */
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  opacity: 0.6; transition: opacity 0.2s; display: inline-flex;
  min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
}
.footer-social a:hover { opacity: 1; }
.footer-social img { width: 20px; height: 20px; }
.footer-col h4 {
  font-size: 16px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #EB307C; margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
/* FIX 1: footer link touch targets */
.footer-col ul li a {
  color: rgba(250,249,246,0.7); font-size: 16px; transition: color 0.2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-col ul li a:hover { color: #FAF9F6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 16px; color: rgba(250,249,246,0.4); }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { padding: 60px 24px 32px; }
}
