/* JBX Designs Inc. — high-tech theme */

:root {
  --bg: #060a10;
  --bg-alt: #0a1018;
  --panel: #0d141d;
  --panel-border: #1b2a38;
  --blue: #2f6fff;
  --blue-dim: #1c4fc2;
  --green: #4bff8f;
  --amber: #ffb84b;
  --text: #dbe7ef;
  --text-dim: #8296a7;
  --text-faint: #4e6174;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* background grid + glow */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(47, 111, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 111, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 85%);
}
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  width: 1200px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47, 111, 255, 0.12), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.5em;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  border-radius: 50%;
}

.accent { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--blue); display: inline-flex; filter: drop-shadow(0 0 6px rgba(47,111,255,0.6)); }
.brand-text { font-family: var(--mono); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--blue); }
.nav-cta {
  border: 1px solid var(--blue-dim);
  color: var(--blue) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(47,111,255,0.4);
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 90px;
  position: relative;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(47,111,255,0.35);
}
.btn-primary:hover { background: #5c8cff; text-decoration: none; }
.btn-ghost {
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--panel-border);
  padding-top: 28px;
}
.stat-num {
  font-family: var(--mono);
  font-size: 1.9rem;
  color: var(--blue);
  font-weight: 700;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Section shells ---------- */
section { padding: 90px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

.section-alt { background: linear-gradient(180deg, transparent, rgba(47,111,255,0.025), transparent); }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dim);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(47,111,255,0.1);
}
.service-card:hover::before { opacity: 1; }
.service-index {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 18px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 16px; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--blue-dim);
  border: 1px solid var(--panel-border);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text-dim);
}
.service-card .more {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.process-list li {
  padding: 32px 24px;
  border-right: 1px solid var(--panel-border);
  position: relative;
}
.process-list li:last-child { border-right: none; }
.process-num {
  font-family: var(--mono);
  color: var(--blue);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 14px;
}
.process-list h4 { font-size: 1rem; margin-bottom: 8px; }
.process-list p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* ---------- Panel / stack visual ---------- */
.stack-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 4px;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px dashed var(--panel-border);
  color: var(--text-dim);
}
.stack-row:last-child { border-bottom: none; }
.stack-row .layer { color: var(--text); font-weight: 600; }
.stack-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- Logos / clients strip ---------- */
.marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 28px 0;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 64px 32px;
  position: relative;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 480px; margin: 0 auto 30px; }

/* ---------- Page / content layouts ---------- */
.page-hero {
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--panel-border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { color: var(--text-dim); font-size: 1.05rem; max-width: 620px; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--blue); }
.prose p, .prose li { color: var(--text-dim); font-size: 1.02rem; }
.prose ul { padding-left: 1.2em; }
.prose a { text-decoration: underline; }
.prose code {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--blue);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-sidebar {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 28px;
  position: sticky;
  top: 96px;
}
.service-sidebar h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 16px;
}
.service-sidebar ul { list-style: none; padding: 0; margin: 0 0 24px; }
.service-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}
.service-sidebar li:last-child { border-bottom: none; }
.service-nav-list { list-style: none; padding: 0; margin: 0; }
.service-nav-list li { margin-bottom: 8px; }
.service-nav-list a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.service-nav-list a:hover, .service-nav-list a.active {
  border-color: var(--blue-dim);
  color: var(--blue);
  text-decoration: none;
}

.services-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.services-index-grid .service-card { padding: 36px; }

/* ---------- About page ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
}
.value-card .num { font-family: var(--mono); color: var(--blue); font-size: 0.8rem; margin-bottom: 10px; }
.value-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.95rem;
  color: var(--text-dim);
}
.contact-info-list strong { color: var(--text); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 4px; font-family: var(--mono); }

form.contact-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,111,255,0.12);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding-top: 56px;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 10px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--panel-border);
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--mono);
}
.footer-signal .online { color: var(--green); }
.footer-signal .online::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin-right: 6px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .service-grid, .services-index-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li { border-bottom: 1px solid var(--panel-border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 680px) {
  .main-nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    gap: 16px;
  }
  .main-nav ul.open { display: flex; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); }
  .service-grid, .services-index-grid, .values-grid, .process-list { grid-template-columns: 1fr; }
  .process-list li { border-right: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
