/* ═══════════════════════════════════════════
   DeepCog.ai — Global Stylesheet
   Aesthetic: Dark biotech / deep-space precision
═══════════════════════════════════════════ */

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

:root {
  --bg:        #030508;
  --bg2:       #080d14;
  --bg3:       #0d1520;
  --surface:   rgba(13,21,32,0.85);
  --border:    rgba(0,210,255,0.12);
  --border2:   rgba(0,210,255,0.25);
  --cyan:      #00d2ff;
  --cyan2:     #00a8cc;
  --green:     #00ffb3;
  --green2:    #00cc90;
  --pink:      #ff2d78;
  --amber:     #ffb300;
  --text:      #e8f0f8;
  --text2:     #7a9ab8;
  --text3:     #3d5a72;
  --glow-c:    rgba(0,210,255,0.18);
  --glow-g:    rgba(0,255,179,0.15);
  --ff-head:   'Syne', sans-serif;
  --ff-mono:   'JetBrains Mono', monospace;
  --ff-body:   'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

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

/* ── Selection ── */
::selection { background: rgba(0,210,255,0.25); color: #fff; }

/* ── Global canvas bg ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(3,5,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.nav-logo .deep { color: var(--cyan); }
.nav-logo .cog  { color: var(--green); }
.nav-logo .ai   { color: var(--text2); font-size: 0.85rem; font-weight: 400; font-family: var(--ff-mono); margin-left: 2px; }

.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 7px 18px;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: rgba(0,210,255,0.1) !important;
  box-shadow: 0 0 16px rgba(0,210,255,0.25) !important;
}
.nav-cta::after { display: none !important; }

/* ── Page wrapper ── */
main { position: relative; z-index: 1; padding-top: 68px; }

/* ── Section ── */
section { padding: 100px 5%; }
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--cyan);
}

/* ── Headings ── */
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 60%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.glow-text {
  text-shadow: 0 0 30px rgba(0,210,255,0.5), 0 0 60px rgba(0,210,255,0.2);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 32px var(--glow-c);
  transform: translateY(-3px);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: var(--bg);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border: none; border-radius: 4px;
  cursor: pointer; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(0,210,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,210,255,0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 12px 26px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px var(--glow-g);
}

/* ── Tag / Pill ── */
.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 2px;
  border: 1px solid;
}
.tag-cyan  { color: var(--cyan);  border-color: rgba(0,210,255,0.35);  background: rgba(0,210,255,0.06); }
.tag-green { color: var(--green); border-color: rgba(0,255,179,0.35);  background: rgba(0,255,179,0.06); }
.tag-pink  { color: var(--pink);  border-color: rgba(255,45,120,0.35); background: rgba(255,45,120,0.06); }
.tag-amber { color: var(--amber); border-color: rgba(255,179,0,0.35);  background: rgba(255,179,0,0.06); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0 5%;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  nav { padding: 0 4%; }
  section { padding: 70px 4%; }
}

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 5% 32px;
  background: var(--bg2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text2); font-size: 0.875rem; margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text2); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text3);
  font-family: var(--ff-mono);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Mono code block ── */
.mono-block {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0,210,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  line-height: 1.8;
  overflow-x: auto;
}

/* ── Stat ── */
.stat-num {
  font-family: var(--ff-head);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text2); text-transform: uppercase; margin-top: 6px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scanline {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.45s ease both; }
