/* =============================================
   ZYNTHLABS — SHARED STYLESHEET
   ============================================= */

@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 {
  --cyan: #00f5ff;
  --cyan-dim: rgba(0,245,255,0.12);
  --cyan-glow: rgba(0,245,255,0.35);
  --magenta: #ff00aa;
  --magenta-dim: rgba(255,0,170,0.1);
  --bg: #020810;
  --bg2: #040d1a;
  --grid: rgba(0,245,255,0.04);
  --text: #c8dff0;
  --text-dim: rgba(200,223,240,0.5);
  --card-bg: rgba(0,245,255,0.03);
  --card-border: rgba(0,245,255,0.12);
  --nav-h: 76px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- CURSOR (desktop only) ---- */
.cursor, .cursor-ring { display: none; }
@media (pointer:fine) {
  body { cursor: none; }
  .cursor {
    display: block;
    position: fixed;
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan-glow);
  }
  .cursor-ring {
    display: block;
    position: fixed;
    width: 36px; height: 36px;
    border: 1px solid rgba(0,245,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width .2s, height .2s, border-color .2s;
  }
}

/* ---- BACKGROUND LAYERS ---- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: .55;
  pointer-events: none;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.scanline {
  position: fixed; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    to bottom, transparent 0, transparent 3px,
    rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px
  );
  pointer-events: none;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(2,8,16,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.logo {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  white-space: nowrap;
}
.logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 10px 22px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform .3s;
  z-index: -1;
}
.nav-cta:hover { color: #000; }
.nav-cta:hover::before { transform: translateX(0); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--cyan);
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(2,8,16,.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 199;
  padding: 30px 30px 40px;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  transition: color .2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--cyan); }
.nav-mobile .nav-cta-mob {
  margin-top: 24px;
  text-align: center;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

/* ---- PAGE WRAPPER ---- */
.page { position: relative; z-index: 10; padding-top: var(--nav-h); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 80px 60px 70px;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,245,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumb {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.breadcrumb span { color: var(--cyan); }
.page-hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  max-width: 800px;
}
.page-hero h1 em { font-style: normal; color: var(--cyan); }
.page-hero p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
}

/* ---- SECTION UTILITIES ---- */
.section {
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-full {
  padding: 100px 60px;
}
.section-dark { background: var(--bg2); }

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
}
.section-tag.center { justify-content: center; }
.section-tag.center::before { display: none; }

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--cyan); }
.section-title .accent-m { color: var(--magenta); }

.section-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.8;
  font-weight: 300;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 36px;
  transition: all .25s;
  cursor: pointer;
  border: none;
  outline: none;
}
.btn-primary {
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 28px var(--cyan-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 50px var(--cyan-glow), 0 0 80px rgba(0,245,255,.2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform .3s;
  z-index: -1;
}
.btn-outline:hover { color: #000; }
.btn-outline:hover::before { transform: translateX(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(200,223,240,.2);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---- CARD ---- */
.card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, background .3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform .5s;
}
.card:hover {
  border-color: rgba(0,245,255,.3);
  transform: translateY(-4px);
  background: rgba(0,245,255,.05);
}
.card:hover::before { transform: scaleX(1); }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: 0;
}

/* ---- TICKER ---- */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 13px 0;
  background: rgba(0,245,255,.02);
}
.ticker-inner {
  display: flex;
  gap: 80px;
  animation: ticker 32s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  opacity: .65;
}
.ticker-item::before { content: '◈  '; }

/* ---- STAT BAR ---- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--card-border);
  gap: 1px;
}
.stat-cell {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.stat-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform .5s;
}
.stat-cell:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 48px; font-weight: 900;
  color: #fff; line-height: 1;
  margin-bottom: 8px;
}
.stat-num em { color: var(--cyan); font-style: normal; }
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase;
}

/* ---- TAG ---- */
.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--cyan);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  background: var(--cyan-dim);
  display: inline-block;
}
.tag-m { color: var(--magenta); border-color: rgba(255,0,170,.2); background: var(--magenta-dim); }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ---- FOOTER ---- */
footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--card-border);
  padding: 60px 60px 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 32px;
}
.footer-brand .logo { font-size: 20px; margin-bottom: 16px; display: block; }
.footer-brand p {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.7; font-weight: 300;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px; color: var(--text-dim);
  transition: color .2s; font-weight: 300;
}
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-dim);
}
.footer-legal {
  display: flex; gap: 24px;
}
.footer-legal a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 1px;
  color: var(--text-dim); transition: color .2s;
}
.footer-legal a:hover { color: var(--cyan); }

/* ---- CTA STRIP ---- */
.cta-strip {
  text-align: center;
  padding: 120px 60px;
  position: relative;
  overflow: hidden;
}
.cta-strip .glow-bg {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,245,255,.05) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 20px;
  position: relative;
}
.cta-strip p {
  font-size: 17px; color: var(--text-dim);
  margin-bottom: 44px; font-weight: 300;
  position: relative;
}
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---- ORBIT VISUAL ---- */
.orbit-visual {
  position: relative;
  width: 100%; height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  animation: spin linear infinite;
}
.ring:nth-child(1) { width: 110px; height: 110px; animation-duration: 7s; border-color: rgba(0,245,255,.35); }
.ring:nth-child(2) { width: 210px; height: 210px; animation-duration: 14s; animation-direction: reverse; }
.ring:nth-child(3) { width: 320px; height: 320px; animation-duration: 24s; }
.ring:nth-child(4) { width: 430px; height: 430px; animation-duration: 38s; animation-direction: reverse; }
.orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  top: -3px; left: calc(50% - 3px);
}
.ring:nth-child(2) .orbit-dot { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.ring:nth-child(3) .orbit-dot { }
.core {
  position: absolute;
  width: 72px; height: 72px;
  background: radial-gradient(circle, rgba(0,245,255,.7) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-core 2.5s ease-in-out infinite;
}

/* ---- KEYFRAMES ---- */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pulse-core {
  0%,100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%,100% { border-color: var(--cyan); }
  50% { border-color: transparent; }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  nav { padding: 0 30px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .page-hero { padding: 60px 30px 50px; }
  .section { padding: 80px 30px; }
  .section-full { padding: 80px 30px; }
  .cta-strip { padding: 80px 30px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 50px 30px 30px; }

  .stat-bar { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }

  .orbit-visual { height: 360px; }
  .ring:nth-child(4) { width: 340px; height: 340px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 20px; }
  .logo { font-size: 17px; letter-spacing: 2px; }

  .page-hero { padding: 50px 20px 44px; }
  .page-hero p { font-size: 15px; }
  .section { padding: 60px 20px; }
  .section-full { padding: 60px 20px; }
  .cta-strip { padding: 70px 20px; }

  .stat-bar { grid-template-columns: repeat(2,1fr); gap: 1px; }
  .stat-cell { padding: 30px 20px; }
  .stat-num { font-size: 36px; }

  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  footer { padding: 44px 20px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .card { padding: 28px 22px; }

  .orbit-visual { height: 280px; }
  .ring:nth-child(3) { width: 240px; height: 240px; }
  .ring:nth-child(4) { width: 270px; height: 270px; }

  .btn-group { flex-direction: column; align-items: center; }
  .btn { justify-content: center; width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 30px; }
}
