/*
 * cerebro.vertican.com, shared site styles
 * Layered on top of Tailwind (loaded via CDN in each page).
 * Visual language matches Visily's landing export so the dashboard
 * and the marketing site read as one product.
 */

:root {
  --bg:        #0A0E14;
  --panel:    #171a1f;
  --panel-2:  #1e2128;
  --border:   #323743;
  --text:     #E6EDF3;
  --muted:    #9DA5B4;
  --accent:   #6DA4FE;
  --accent-d: #5a8de6;
  --success:  #10B981;
  --danger:   #F47171;
  /* Match the landing page: serif display face for headings + brand. */
  --serif:    "Source Serif Pro", "Iowan Old Style", Georgia, serif;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a, button, .card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Glass panels, used across pages */
.glass-card {
  background: rgba(30, 33, 40, 0.3);
  border: 1px solid rgba(50, 55, 67, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.border-subtle { border-color: rgba(50, 55, 67, 0.4); }

/* Hero ambient glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 800px;
  background: radial-gradient(circle at 50% 0%, rgba(109, 164, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(109, 164, 254, 0.25);
}
.btn-primary:hover { background: var(--accent-d); }

.btn-secondary {
  background: rgba(30, 33, 40, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: rgba(30, 33, 40, 0.9); border-color: rgba(109, 164, 254, 0.4); }

.btn-ghost {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
}
.btn-ghost:hover { color: var(--text); }

/* Pill / chip */
.chip-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(109, 164, 254, 0.10);
  border: 1px solid rgba(109, 164, 254, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Top nav blur on scroll */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(50, 55, 67, 0.35);
}

.site-nav a.nav-link {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link.active { color: var(--text); }

/* Page heads */
.page-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(50, 55, 67, 0.4);
  background: var(--bg);
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* OS-aware download buttons. JS toggles primary based on detected platform */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .download-grid { grid-template-columns: 1fr; }
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(23, 26, 31, 0.6);
  text-decoration: none;
  color: var(--text);
}
.dl-card:hover { border-color: rgba(109, 164, 254, 0.45); }
.dl-card.primary { border-color: var(--accent); background: rgba(109, 164, 254, 0.08); }
.dl-card .os-name { font-weight: 600; font-size: 15px; }
.dl-card .os-sub  { font-size: 12px; color: var(--muted); }

/* FAQ */
.faq-item {
  border: 1px solid rgba(50, 55, 67, 0.5);
  background: rgba(23, 26, 31, 0.4);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 300;
  font-size: 20px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 22px 20px 22px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Forms */
.input, .textarea {
  width: 100%;
  background: rgba(23, 26, 31, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: rgba(109, 164, 254, 0.6);
  box-shadow: 0 0 0 3px rgba(109, 164, 254, 0.12);
}
.textarea { min-height: 130px; resize: vertical; }
label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field-help {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Mobile nav drawer */
.mobile-only { display: none; }
@media (max-width: 760px) {
  .desktop-only { display: none; }
  .mobile-only  { display: block; }
}
