/* ==========================================================================
   Born A Nerd Technologies, shared stylesheet
   Brand system carried over from the original under-construction page:
   navy bg, purple/lilac accents, red highlights, Bebas Neue + Space Mono,
   grid background, scanlines, circuit motifs.
   ========================================================================== */

:root {
  --cream:  #f0eef8;
  --navy:   #1a0a2e;
  --navy-2: #241040;
  --board:  #0d0618;
  --purple: #6c2eb9;
  --lilac:  #b89ee0;
  --red:    #c0392b;
  --paper:  #e8e0f5;
  --gold:   #f5c542;
  --line:   rgba(184, 158, 224, .25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,46,185,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,46,185,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── SCANLINE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Everything real sits above the overlays */
header, main, footer { position: relative; z-index: 10; }

a { color: var(--lilac); }
a:hover { color: var(--cream); }

::selection { background: var(--purple); color: var(--cream); }

/* ── HEADER / NAV ── */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(26,10,46,.85);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand svg { display: block; }
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--lilac);
}
.brand:hover .brand-name { color: var(--cream); }

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--lilac);
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color .2s, border-color .2s, background .2s;
}
.site-nav a:hover {
  color: var(--cream);
  border-color: var(--purple);
}
.site-nav a.active {
  color: var(--cream);
  border-color: var(--purple);
  background: rgba(108,46,185,.25);
}

/* ── CORNER CIRCUIT DECORATION ── */
.corner-circuit {
  position: fixed;
  opacity: .45;
  z-index: 2;
  pointer-events: none;
}
.corner-circuit.tl { top: 0; left: 0; }
.corner-circuit.br { bottom: 0; right: 0; transform: scale(-1); }

/* ── LAYOUT ── */
main { flex: 1; width: 100%; }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}
.hero .mascot { margin-bottom: 8px; }

.headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 7vw, 76px);
  letter-spacing: 6px;
  line-height: 1;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--purple), 8px 8px 0 rgba(108,46,185,.3);
  margin-bottom: 18px;
}
.headline span { color: var(--lilac); }

.subhead {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 2.5vw, 22px);
  letter-spacing: 6px;
  color: var(--red);
  text-shadow: 2px 2px 0 #5a0a0a;
  margin-bottom: 28px;
}

.lede {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--paper);
  opacity: .9;
}

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 3px;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary {
  background: var(--purple);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(108,46,185,.35);
}
.btn-primary:hover {
  background: #7d3bd4;
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(108,46,185,.35);
}
.btn-ghost {
  border: 1px solid var(--purple);
  color: var(--lilac);
}
.btn-ghost:hover {
  color: var(--cream);
  background: rgba(108,46,185,.2);
}

/* ── SECTIONS ── */
.section { padding: 48px 0; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 5px;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--purple);
  margin-bottom: 8px;
}
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-intro {
  max-width: 760px;
  color: var(--paper);
  opacity: .9;
  margin-bottom: 32px;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin: 8px 0 32px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(13,6,24,.7);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108,46,185,.25);
}
.card .icon { margin-bottom: 4px; }
.card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--lilac);
}
.card p { font-size: 13.5px; color: var(--paper); opacity: .85; }
.card .card-link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--lilac);
}
.card .card-link:hover { color: var(--cream); }

/* ── SERVICE DETAIL PANELS ── */
.service {
  background: rgba(13,6,24,.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 28px;
}
.service h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--cream);
  margin-bottom: 4px;
}
.service .tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.service p { color: var(--paper); opacity: .9; margin-bottom: 14px; }
.service ul { list-style: none; margin-bottom: 14px; }
.service ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--paper);
  opacity: .9;
  font-size: 14px;
}
.service ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tech-tags span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--lilac);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 10px;
  background: rgba(108,46,185,.12);
}

/* ── TERMINAL PANEL ── */
.terminal {
  background: var(--board);
  border: 1px solid var(--purple);
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(108,46,185,.18);
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-bar i:nth-child(1) { background: var(--red); }
.terminal-bar i:nth-child(2) { background: var(--gold); }
.terminal-bar i:nth-child(3) { background: var(--purple); }
.terminal-bar span {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--lilac);
  opacity: .8;
}
.terminal-body {
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--paper);
  overflow-x: auto;
}
.terminal-body .prompt { color: var(--lilac); }
.terminal-body .ok { color: #7ddb8a; }
.terminal-body .warn { color: var(--gold); }
.terminal-body .dim { opacity: .6; }

/* ── VALUE / FACT LISTS ── */
.value-list { list-style: none; }
.value-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13,6,24,.7);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.value-list li strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--lilac);
  margin-bottom: 4px;
}
.value-list li p { font-size: 13.5px; color: var(--paper); opacity: .85; }

/* ── FACTS TABLE ── */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 13.5px;
}
.facts td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--paper);
}
.facts td:first-child {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--lilac);
  white-space: nowrap;
  background: rgba(108,46,185,.12);
}

/* ── CTA BANNER ── */
.cta-banner {
  text-align: center;
  border: 1px solid var(--purple);
  border-radius: 6px;
  background:
    linear-gradient(rgba(108,46,185,.15), rgba(108,46,185,.15)),
    var(--board);
  padding: 44px 24px;
  margin: 24px 0 56px;
}
.cta-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 5px;
  text-shadow: 3px 3px 0 var(--purple);
  margin-bottom: 10px;
}
.cta-banner p { color: var(--paper); opacity: .85; margin-bottom: 24px; }

/* ── CONTACT ── */
.contact-email {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 3px solid var(--purple);
  padding-bottom: 3px;
}
.contact-email:hover { color: var(--lilac); border-color: var(--lilac); }

/* ── BLINKING CURSOR ── */
.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--lilac);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink .8s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(13,6,24,.8);
  padding: 32px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 5px;
  color: var(--lilac);
  margin-bottom: 6px;
}
.footer-meta { font-size: 12px; color: var(--paper); opacity: .7; line-height: 1.9; }
.footer-meta a { color: var(--lilac); text-decoration: none; }
.footer-meta a:hover { color: var(--cream); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--lilac);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--cream); }
.footer-tagline {
  width: 100%;
  text-align: center;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--purple);
  opacity: .7;
  text-transform: uppercase;
  margin-top: 24px;
}

/* ── 404 ── */
.notfound {
  text-align: center;
  padding: 96px 24px;
}
.notfound .headline { margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .corner-circuit { display: none; }
  .hero { padding-top: 48px; }
  .service { padding: 22px; }
  .header-inner { justify-content: center; }
  .headline { letter-spacing: 3px; }
  .subhead { letter-spacing: 3px; }
  .section-title { letter-spacing: 3px; }
  .service h2 { letter-spacing: 2px; font-size: 26px; }
  .facts { display: block; overflow-x: auto; }
}
