/* ═══════════════════════════════════════════════
   AXIOMDEV — MINORITY REPORT DESIGN SYSTEM
   Shared stylesheet for all pages
═══════════════════════════════════════════════ */

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

:root {
  --bg:       #020810;
  --bg-2:     #040e1a;
  --bg-3:     #071528;
  --surface:  rgba(0, 180, 255, 0.03);
  --glass:    rgba(0, 140, 220, 0.06);
  --border:   rgba(0, 180, 255, 0.12);
  --border-2: rgba(0, 200, 255, 0.25);
  --border-h: rgba(0, 220, 255, 0.5);
  --text:     #c8ddf0;
  --text-bright: #e8f4ff;
  --muted:    #4a6a8a;
  --cyan:     #00d4ff;
  --cyan-dim: #0088aa;
  --blue:     #0066ff;
  --teal:     #00ffc8;
  --warn:     #ff4466;
  --ff-head:  'Orbitron', monospace;
  --ff-body:  'Rajdhani', sans-serif;
  --ff-mono:  'Share Tech Mono', monospace;
  --radius:   2px;
  --max-w:    1200px;
  --glow:     0 0 20px rgba(0,212,255,.15), 0 0 60px rgba(0,212,255,.05);
  --glow-strong: 0 0 15px rgba(0,212,255,.3), 0 0 40px rgba(0,212,255,.1), 0 0 80px rgba(0,212,255,.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 16px;
}

/* ═══ SCAN LINES ═══ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,180,255,.015) 2px, rgba(0,180,255,.015) 4px);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,180,255,.03) 0%, transparent 8%, transparent 92%, rgba(0,180,255,.03) 100%);
}

/* ═══ SCAN BAR ═══ */
.scan-bar {
  position: fixed; left: 0; right: 0; height: 1px; z-index: 9997; pointer-events: none;
  background: linear-gradient(90deg, transparent 5%, rgba(0,212,255,.4) 30%, rgba(0,212,255,.6) 50%, rgba(0,212,255,.4) 70%, transparent 95%);
  box-shadow: 0 0 30px 8px rgba(0,212,255,.1);
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove { 0%{top:-2px} 100%{top:100vh} }

/* ═══ PARTICLES ═══ */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ═══ HUD GRID ═══ */
.hud-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,180,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* ═══ HUD CORNERS ═══ */
.hud-corners { position: fixed; inset: 20px; z-index: 9996; pointer-events: none; }
.hud-corners::before, .hud-corners::after {
  content: ''; position: absolute; width: 40px; height: 40px;
  border-color: rgba(0,212,255,.2); border-style: solid;
}
.hud-corners::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hud-corners::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hud-corners-2::before, .hud-corners-2::after {
  content: ''; position: absolute; width: 40px; height: 40px;
  border-color: rgba(0,212,255,.2); border-style: solid;
}
.hud-corners-2::before { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hud-corners-2::after { bottom: 0; left: 0; border-width: 0 0 1px 1px; }

/* ═══ DATA STREAMS ═══ */
.data-stream-left, .data-stream-right {
  position: fixed; top: 0; bottom: 0; width: 30px; z-index: 9995;
  pointer-events: none; overflow: hidden; opacity: .3;
}
.data-stream-left { left: 0; }
.data-stream-right { right: 0; }
.data-stream-left .stream-chars, .data-stream-right .stream-chars {
  font-family: var(--ff-mono); font-size: 9px; color: var(--cyan);
  writing-mode: vertical-rl; line-height: 15px;
  animation: streamDown 20s linear infinite;
  white-space: nowrap; opacity: .6;
}
.data-stream-right .stream-chars { animation-duration: 26s; animation-direction: reverse; }
@keyframes streamDown { 0%{transform:translateY(-50%)} 100%{transform:translateY(0)} }

/* ═══ STATUS BAR ═══ */
.status-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9996; pointer-events: none;
  font-family: var(--ff-mono); font-size: .6rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  background: rgba(2,8,16,.9); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 2px;
  backdrop-filter: blur(10px); opacity: .5;
}
.status-bar .s-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 8px var(--teal);
  animation: pdot 2.5s ease infinite;
}
@keyframes pdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.6)} }

/* ═══ LAYOUT ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; position: relative; }
section { position: relative; z-index: 1; }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0;
  background: rgba(2,8,16,.85);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--cyan-dim) 50%, transparent 90%);
  opacity: .5;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--ff-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .15em; color: var(--cyan);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  text-transform: uppercase;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 2px;
  border: 1px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 900; color: var(--cyan); letter-spacing: .1em;
  position: relative; overflow: hidden;
  box-shadow: var(--glow), inset 0 0 20px rgba(0,212,255,.05);
}
.logo-mark::after { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(0,212,255,.15); }
.logo span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); font-family: var(--ff-mono); font-size: .75rem;
  text-decoration: none; transition: all .3s; letter-spacing: .08em;
  text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--cyan); transition: width .3s; box-shadow: 0 0 8px var(--cyan);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
  padding: 9px 22px; border-radius: 2px;
  font-family: var(--ff-mono); font-size: .75rem; font-weight: 500;
  text-decoration: none; text-transform: uppercase; letter-spacing: .1em;
  transition: all .3s; position: relative; overflow: hidden;
}
.nav-cta:hover { box-shadow: var(--glow-strong); background: rgba(0,212,255,.08); }
@media(max-width:768px){ .nav-links{ display:none } }

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  padding: 180px 0 100px; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,100,180,.08), transparent);
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-family: var(--ff-mono); font-size: .68rem; color: var(--muted);
  margin-bottom: 28px; letter-spacing: .06em; text-transform: uppercase;
}
.page-hero .breadcrumb a { color: var(--cyan-dim); text-decoration: none; transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero .breadcrumb span { margin: 0 8px; opacity: .4; }

.page-hero h1 {
  font-family: var(--ff-head); font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-bright);
  max-width: 800px;
}
.page-hero .hero-sub {
  color: var(--muted); font-size: 1.05rem; max-width: 600px;
  margin-top: 20px; line-height: 1.8; font-weight: 400;
}
.page-hero .hero-line {
  width: 100%; max-width: 700px; height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
  margin-top: 50px;
}

/* ═══ SECTION LABELS ═══ */
.slabel {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .68rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 24px;
}
.slabel::before { content: '//'; color: var(--cyan-dim); font-weight: 700; }
h2.stitle {
  font-family: var(--ff-head); font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: .03em; line-height: 1.15;
  text-transform: uppercase; color: var(--text-bright);
}
h3.stitle-sm {
  font-family: var(--ff-head); font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600; letter-spacing: .04em; line-height: 1.2;
  text-transform: uppercase; color: var(--text-bright);
}
.ssub {
  color: var(--muted); font-size: 1rem; max-width: 600px;
  margin-top: 16px; font-weight: 400; line-height: 1.75;
}

/* ═══ CONTENT SECTIONS ═══ */
.content-section { padding: 80px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }

.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 48px;
}
@media(max-width:768px){ .content-grid{ grid-template-columns:1fr } }

.content-prose {
  max-width: 720px; margin-top: 32px;
}
.content-prose p {
  color: var(--text); font-size: .95rem; line-height: 1.85;
  margin-bottom: 20px;
}
.content-prose h3 {
  font-family: var(--ff-head); font-size: .85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cyan);
  margin: 40px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.content-prose h3:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.content-prose ul {
  list-style: none; margin: 16px 0 24px; padding: 0;
}
.content-prose ul li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  font-size: .9rem; color: var(--text); line-height: 1.7;
}
.content-prose ul li::before {
  content: '▸'; position: absolute; left: 0; color: var(--cyan);
  font-family: var(--ff-mono);
}

/* ═══ FEATURE CARDS ═══ */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 48px;
}
.feature-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all .4s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--cyan); transition: width .5s;
}
.feature-card:hover { border-color: var(--border-2); }
.feature-card:hover::before { width: 100%; }
.feature-card .fc-icon {
  width: 44px; height: 44px; border-radius: 2px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 20px;
}
.feature-card h4 {
  font-family: var(--ff-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-bright); margin-bottom: 10px;
}
.feature-card p { color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* ═══ STAT CARDS ═══ */
.stat-row {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 48px;
}
.stat-card {
  flex: 1; min-width: 180px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
  position: relative;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.3), transparent);
}
.stat-val {
  font-family: var(--ff-head); font-size: 2rem; font-weight: 800;
  letter-spacing: .03em; color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,.3);
}
.stat-label {
  font-family: var(--ff-mono); font-size: .65rem; color: var(--muted);
  margin-top: 6px; text-transform: uppercase; letter-spacing: .08em;
}

/* ═══ CTA BANNER ═══ */
.cta-banner {
  margin-top: 80px; padding: 56px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--cyan) 50%, transparent 90%);
  opacity: .5;
}
.cta-banner::after {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,.05), transparent 65%);
  pointer-events: none;
}
.cta-banner h3 {
  font-family: var(--ff-head); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-bright); margin-bottom: 14px; position: relative; z-index: 1;
}
.cta-banner p {
  color: var(--muted); font-size: .92rem; margin-bottom: 28px;
  line-height: 1.7; position: relative; z-index: 1;
}
.cta-btn {
  display: inline-block;
  background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
  padding: 14px 36px; border-radius: 2px;
  font-family: var(--ff-mono); font-size: .82rem; font-weight: 500;
  text-decoration: none; text-transform: uppercase; letter-spacing: .1em;
  transition: all .3s; position: relative; z-index: 1; overflow: hidden;
}
.cta-btn:hover { box-shadow: var(--glow-strong); background: rgba(0,212,255,.08); }

/* ═══ INTERNAL LINKS GRID ═══ */
.links-section { padding: 80px 0; }
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px; margin-top: 36px;
}
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; transition: all .3s;
  position: relative; overflow: hidden;
}
.link-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--cyan); opacity: 0; transition: opacity .3s;
}
.link-card:hover { border-color: var(--border-2); }
.link-card:hover::before { opacity: .6; }
.link-card .lc-icon { font-size: 1.2rem; flex-shrink: 0; }
.link-card .lc-text {
  font-family: var(--ff-body); font-size: .88rem; color: var(--text);
  font-weight: 500;
}
.link-card .lc-arrow {
  margin-left: auto; font-family: var(--ff-mono); color: var(--cyan-dim);
  font-size: .8rem; transition: all .3s;
}
.link-card:hover .lc-arrow { color: var(--cyan); transform: translateX(4px); }

/* ═══ FAQ (INNER) ═══ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
  position: relative;
}
.faq-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); opacity: 0; transition: opacity .3s;
}
.faq-item.open::before { opacity: .6; }
.faq-item.open { border-color: rgba(0,212,255,.2); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px;
  font-family: var(--ff-body); font-size: .9rem; font-weight: 600;
  color: var(--text); background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .2s;
}
.faq-q::after {
  content: '+'; font-family: var(--ff-mono); font-size: 1.1rem;
  color: var(--cyan-dim); flex-shrink: 0; transition: all .3s;
}
.faq-item.open .faq-q { color: var(--cyan); }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--cyan); }
.faq-a {
  display: none; padding: 0 24px 20px;
  font-size: .88rem; color: var(--muted); line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ═══ FOOTER ═══ */
footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.fcopy { font-family: var(--ff-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.flinks { display: flex; gap: 20px; flex-wrap: wrap; }
.flinks a {
  font-family: var(--ff-mono); font-size: .7rem; color: var(--muted);
  text-decoration: none; transition: color .3s; text-transform: uppercase; letter-spacing: .06em;
}
.flinks a:hover { color: var(--cyan); }
.floc { font-family: var(--ff-mono); font-size: .7rem; color: var(--muted); }

/* ═══ BLOG CARDS ═══ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin-top: 48px;
}
.blog-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .4s; text-decoration: none; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.blog-card .bc-top {
  padding: 28px 28px 0;
}
.blog-card .bc-tag {
  font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.blog-card h3 {
  font-family: var(--ff-head); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-bright);
  line-height: 1.4; margin-bottom: 10px;
}
.blog-card p { color: var(--muted); font-size: .84rem; line-height: 1.65; padding: 0 28px; }
.blog-card .bc-meta {
  margin-top: auto; padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono); font-size: .62rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; justify-content: space-between;
}

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.vis { opacity: 1; transform: none; }
.d1{transition-delay:.12s} .d2{transition-delay:.24s} .d3{transition-delay:.36s}

/* ═══ GLITCH ═══ */
.glitch { position: relative; animation: glitchShift 6s ease-in-out infinite; }
@keyframes glitchShift {
  0%,95%,100%{transform:none} 96%{transform:translate(-2px,1px)} 97%{transform:translate(2px,-1px)} 98%{transform:translate(-1px,-1px)}
}

/* ═══ GRAD ═══ */
.grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 40%, var(--cyan) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,212,255,.3));
}

/* ═══ PRINT ═══ */
@media print {
  .scan-bar, .hud-grid, .hud-corners, .hud-corners-2,
  .data-stream-left, .data-stream-right, .status-bar,
  #particles, body::before, body::after { display: none !important; }
}
