/* =========================================================
   VEXEL — Design System (non-critical / below-the-fold + shared)
   ========================================================= */

* { box-sizing: border-box; }

::selection { background: #00F5D4; color: #0B0F19; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0B0F19;
  color: #E7ECF7;
  font-family: 'Tajawal', 'Segoe UI', 'Cairo', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Gradient text & buttons ---------- */
.grad-text {
  background: linear-gradient(90deg, #0052FF 0%, #00F5D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(90deg, #0052FF 0%, #00F5D4 100%);
  color: #04070D;
  box-shadow: 0 8px 30px -8px rgba(0, 245, 212, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(0, 245, 212, 0.75);
}

.btn-ghost {
  background: transparent;
  color: #E7ECF7;
  border: 1px solid rgba(231, 236, 247, 0.2);
  transition: border-color .25s ease, background .25s ease;
}
.btn-ghost:hover {
  border-color: #00F5D4;
  background: rgba(0, 245, 212, 0.06);
}

/* ---------- Code-inspired accents ---------- */
.bracket {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color: #00F5D4;
  opacity: .75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: .8rem;
  letter-spacing: .08em;
  color: #00F5D4;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(0, 82, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section {
  padding-block: clamp(64px, 10vw, 140px);
  position: relative;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
}

.section-lead {
  font-size: 1.1rem;
  color: #A7B1C9;
  max-width: 68ch;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(231, 236, 247, 0.08);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0,245,212,0.08), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Insights / accordion ---------- */
.insight-item {
  border-top: 1px solid rgba(231,236,247,0.1);
  padding-block: 20px;
}
.insight-item:last-child { border-bottom: 1px solid rgba(231,236,247,0.1); }
.insight-trigger {
  width: 100%;
  background: none;
  border: none;
  color: #E7ECF7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  text-align: right;
}
.insight-trigger .plus {
  font-family: ui-monospace, monospace;
  color: #00F5D4;
  font-size: 1.3rem;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.insight-item.open .plus { transform: rotate(45deg); }
.insight-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.insight-panel > div { overflow: hidden; }
.insight-item.open .insight-panel { grid-template-rows: 1fr; }
.insight-body {
  padding-top: 18px;
  color: #A7B1C9;
}
.insight-body p { margin: 0 0 14px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(231,236,247,0.08);
  padding-block: 56px 32px;
  color: #7C87A3;
  font-size: .92rem;
}

/* ---------- FAQ ---------- */
details.faq-item {
  border: 1px solid rgba(231,236,247,0.1);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.02);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid #00F5D4;
  border-bottom: 2px solid #00F5D4;
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-top: -4px;
}
details.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
details.faq-item p { color: #A7B1C9; margin-top: 12px; }

/* ---------- Prose (article bodies) ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 2.4em; color: #E7ECF7; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; color: #E7ECF7; }
.prose p { color: #C3CBDE; margin: 1.1em 0; }
.prose ul, .prose ol { color: #C3CBDE; padding-inline-start: 1.4em; }
.prose li { margin: .5em 0; }
.prose a { color: #00F5D4; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #E7ECF7; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid rgba(231,236,247,0.12); padding: 10px 14px; text-align: right; }
.prose th { color: #00F5D4; font-family: ui-monospace, monospace; font-size: .85rem; }

.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: #00F5D4;
  color: #04070D;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 0 10px;
}
.skip-link:focus { right: 0; }
