/* ═══════════════════════════════════════════════════════════════
   NexusAI — Base Styles
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg:          #0a0a0f;
  --bg2:         #111118;
  --bg3:         #16161f;
  --surface:     #1c1c27;
  --surface2:    #23232f;
  --border:      #2a2a3a;
  --border2:     #333345;
  --accent:      #7c6aff;
  --accent2:     #9d8fff;
  --accent-glow: rgba(124,106,255,0.18);
  --green:       #22c55e;
  --red:         #ef4444;
  --amber:       #f59e0b;
  --text:        #e8e8f0;
  --text2:       #9898b0;
  --text3:       #5c5c78;
  --white:       #ffffff;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; }

img { max-width: 100%; display: block; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 9px; }

/* ─── Site Nav (inner pages) ──────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent); border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--white);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.btn-nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: .45rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.btn-nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ─── Page layout ──────────────────────────────────────── */
.page-body { display: flex; flex-direction: column; }
.page-main { flex: 1; max-width: 900px; margin: 0 auto; padding: 3rem 2rem 4rem; width: 100%; }

.page-hero {
  text-align: center; padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border); margin-bottom: 3rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: var(--text2); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.prose h2 { font-size: 1.4rem; color: var(--white); margin: 2.5rem 0 .8rem; }
.prose h3 { font-size: 1.1rem; color: var(--accent2); margin: 1.5rem 0 .5rem; }
.prose p { color: var(--text2); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; color: var(--text2); margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent2); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); color: var(--white); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-icon {
  background: none; border: 1px solid var(--border); color: var(--text2);
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer;
  transition: all .2s;
}
.btn-icon:hover { border-color: var(--border2); color: var(--white); background: var(--surface2); }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.footer-tagline { color: var(--text3); font-size: 13px; line-height: 1.6; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text2); font-size: 13px;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent2); }
.footer-col h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-col a { display: block; color: var(--text3); font-size: 13px; margin-bottom: .55rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text3);
}

/* ─── Badge / Tag ─────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 50px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-green { background: rgba(34,197,94,.12); color: var(--green); }
.badge-accent { background: rgba(124,106,255,.15); color: var(--accent2); }
.badge-amber { background: rgba(245,158,11,.12); color: var(--amber); }

/* ─── Alert ──────────────────────────────────────────── */
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 14px; }
.alert-info { background: rgba(124,106,255,.1); border: 1px solid rgba(124,106,255,.25); color: var(--accent2); }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: var(--red); }

/* ─── Input / Form ────────────────────────────────────── */
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body);
  font-size: 14px; padding: .6rem .9rem; outline: none;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select option { background: var(--surface2); }

label { display: block; font-size: 13px; color: var(--text2); margin-bottom: .4rem; font-weight: 500; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn-nav-cta) { display: none; }
}

/* ─── Animations ──────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp .4s ease both; }

/* ─── Typing dots ─────────────────────────────────────── */
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text3);
  animation: pulse 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
