@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --primary: #AD04D1;
  --primary-glow: rgba(173,4,209,0.6);
  --primary-dim: rgba(173,4,209,0.15);
  --primary-dark: #7a0394;
  --accent: #00f5ff;
  --accent-glow: rgba(0,245,255,0.5);
  --bg: #000000;
  --bg2: #050508;
  --bg3: #0a0010;
  --surface: #0d0015;
  --surface2: #120020;
  --text: #e8e0f0;
  --text-muted: #8a7a9a;
  --border: rgba(173,4,209,0.3);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

/* ── CUSTOM CURSOR (desktop only) ──────────────────────── */
.cursor-dot, .cursor-ring { pointer-events: none; z-index: 99999; position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-dot { width: 8px; height: 8px; background: var(--primary); box-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow); transition: transform 0.05s; }
.cursor-ring { width: 32px; height: 32px; border: 1.5px solid rgba(173,4,209,0.6); z-index: 99998; transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s; }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 48px; height: 48px; border-color: var(--accent); }
@media (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

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

/* ── MATRIX CANVAS ───────────────────────────────────────── */
#matrix-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.22;
}

/* ── HEADER ──────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 70px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
  animation: headerGlow 3s ease-in-out infinite;
}
@keyframes headerGlow { 0%,100%{opacity:0.5;} 50%{opacity:1;} }

.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-wrap img { height: 36px; filter: drop-shadow(0 0 8px var(--primary-glow)); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; text-shadow: 0 0 10px var(--primary-glow); line-height: 1.3; }
.logo-sub { font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.15em; font-family: var(--font-mono); }

nav { display: flex; align-items: center; gap: 0.1rem; }
nav a {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 3px;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
nav a::after { content: ''; position: absolute; bottom: 2px; left: 50%; right: 50%; height: 1px; background: var(--primary); transition: left 0.3s, right 0.3s; }
nav a:hover::after, nav a.active::after { left: 10%; right: 10%; }
nav a:hover, nav a.active { color: var(--primary); }
.nav-cta { margin-left: 0.4rem; background: var(--primary) !important; color: #fff !important; padding: 0.38rem 1rem !important; box-shadow: 0 0 15px var(--primary-glow); }
.nav-cta:hover { background: var(--primary-dark) !important; box-shadow: 0 0 25px var(--primary-glow) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }

/* ── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999; flex-direction: column; gap: 0;
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(173,4,209,0.15);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); padding-left: 6px; }
.mobile-nav a:last-child { border-bottom: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  position: relative; z-index: 10;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem; max-width: 1200px; margin: 0 auto 2rem; padding: 0 2rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.2rem; margin-top: 0.8rem; }
.footer-socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: 0.3s;
}
.footer-socials a:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; color: var(--primary); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s, padding-left 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.footer-col ul li a::before { content: '▸'; color: var(--primary); font-size: 0.65rem; opacity: 0; transition: opacity 0.2s; }
.footer-col ul li a:hover { color: var(--text); padding-left: 4px; }
.footer-col ul li a:hover::before { opacity: 1; }
.footer-contact-item { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 0.83rem; color: var(--text-muted); align-items: flex-start; }
.footer-contact-item .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--text-muted); text-decoration: none; word-break: break-all; }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.2rem 2rem 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
}
.footer-bottom p { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.footer-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { font-size: 0.6rem; font-family: var(--font-mono); padding: 0.18rem 0.55rem; border: 1px solid var(--border); border-radius: 2px; color: var(--text-muted); letter-spacing: 0.08em; }
.badge.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }

/* ── SECTION BASICS ──────────────────────────────────────── */
section { position: relative; z-index: 5; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: 5rem 0; }
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 1rem; }
.section-title span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.section-desc { color: var(--text-muted); max-width: 600px; font-size: 0.97rem; line-height: 1.8; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-desc { margin: 0 auto; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.72rem 1.7rem; border-radius: 3px; text-decoration: none;
  cursor: pointer; border: none; transition: 0.3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: transform 0.4s; }
.btn:hover::before { transform: translateX(100%); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 0 18px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 30px var(--primary-glow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); box-shadow: inset 0 0 12px var(--primary-dim); }
.btn-outline:hover { background: var(--primary-dim); box-shadow: 0 0 22px var(--primary-glow); transform: translateY(-2px); }

/* ── GLITCH ──────────────────────────────────────────────── */
.glitch { position: relative; animation: glitch 4s infinite; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.glitch::before { color: var(--accent); clip: rect(0,0,0,0); animation: glitch-1 4s infinite; }
.glitch::after  { color: var(--primary); clip: rect(0,0,0,0); animation: glitch-2 4s infinite; }
@keyframes glitch { 0%,100%{transform:none;} 92%{transform:none;} 93%{transform:skewX(-1deg);} 94%{transform:none;} }
@keyframes glitch-1 { 0%,90%,100%{clip:rect(0,0,0,0);} 91%{clip:rect(10px,9999px,25px,0);transform:translateX(-3px);} 93%{clip:rect(40px,9999px,55px,0);transform:translateX(3px);} }
@keyframes glitch-2 { 0%,90%,100%{clip:rect(0,0,0,0);} 92%{clip:rect(30px,9999px,45px,0);transform:translateX(2px);} 94%{clip:rect(5px,9999px,20px,0);transform:translateX(-2px);} }

/* ── TYPED CURSOR ────────────────────────────────────────── */
.typed-cursor { color: var(--primary); animation: blink 0.8s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── STAT NUMBER ─────────────────────────────────────────── */
.stat-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }

/* ── FORM ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; font-family: var(--font-mono); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 0.9rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 3px; color: var(--text); font-family: var(--font-body); font-size: 0.92rem; transition: border-color 0.3s, box-shadow 0.3s; outline: none; -webkit-appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 12px var(--primary-dim); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg3); }

/* ── PAGE-HERO (inner pages) ─────────────────────────────── */
.page-hero { padding: 130px 0 55px; position: relative; overflow: hidden; }
.page-hero-bg { position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(173,4,209,0.12) 0%,transparent 60%);pointer-events:none; }
.page-hero-label { font-family:var(--font-mono);font-size:0.68rem;color:var(--accent);letter-spacing:0.3em;text-transform:uppercase;margin-bottom:0.8rem; }
.page-hero h1 { font-family:var(--font-display);font-size:clamp(1.8rem,4vw,3.2rem);font-weight:900;margin-bottom:1rem; }
.page-hero p { color:var(--text-muted);max-width:600px;font-size:0.97rem;line-height:1.8; }

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile nav toggle */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 1.2rem; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0 1.2rem; }
  .footer-bottom { padding: 1rem 1.2rem 0; }
  .footer-bottom p { font-size: 0.65rem; }
  .page-hero { padding: 100px 0 40px; }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 2.8rem 0; }
  .btn { font-size: 0.78rem; padding: 0.65rem 1.3rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
}

/* Extra small */
@media (max-width: 380px) {
  .logo-name { font-size: 0.58rem; }
  .logo-sub { display: none; }
  .container { padding: 0 0.9rem; }
}
/* Mobile */
@media (max-width: 768px){
    .telemetry-header-line{
        display: block !important;
    }
}