/* =====================================================
   NINJA TECH — "Obsidian Violet" v2
   Deep ink-violet base · electric violet accent ·
   chrome display type · glass surfaces · 3D motion
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #08070f;
  --bg-2: #0c0a17;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9e6f5;
  --muted: #8f8aa8;
  --violet: #8b5cf6;
  --violet-hot: #c084fc;
  --pink: #e879f9;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #c084fc 55%, #e879f9 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #cfc9e6 48%, #716b92 100%);
  --f-display: 'Unbounded', sans-serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --maxw: 1180px;
  --pad: 56px;
  --side: max(var(--pad), calc((100vw - var(--maxw)) / 2));
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; font-weight: 700; }

a { color: var(--violet-hot); }

/* ---------- ambient background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 60vw; height: 60vw; left: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 70%);
}
.aurora span:nth-child(2) {
  width: 46vw; height: 46vw; right: -14vw; top: 24vh;
  background: radial-gradient(circle, rgba(232,121,249,0.13), transparent 70%);
  animation-delay: -9s;
}
.aurora span:nth-child(3) {
  width: 52vw; height: 52vw; left: 18vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(76,29,149,0.28), transparent 70%);
  animation-delay: -17s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, -4vh, 0) scale(1.12); }
}

/* film grain for premium texture */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.028; animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-3%,4%); }
  80% { transform: translate(5%,-2%); }
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--violet-hot);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--grad);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chrome {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- nav ---------- */
nav {
  position: sticky; top: 14px; z-index: 60;
  margin: 14px var(--side) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 22px;
  background: rgba(12, 10, 23, 0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.logo {
  font-family: var(--f-display); font-size: 17px; font-weight: 800;
  letter-spacing: 0.5px; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo .dot {
  width: 11px; height: 11px; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.9);
  animation: dotpulse 2.8s ease-in-out infinite;
}
@keyframes dotpulse { 0%,100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(45deg) scale(1.15); } }

.menu { display: flex; gap: 4px; align-items: center; }
.menu a {
  color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.2px;
  padding: 8px 14px; border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.menu a:hover { color: #fff; background: var(--surface-2); }
.menu a.active {
  color: #fff; background: rgba(139, 92, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 40px; height: 38px; cursor: pointer;
  color: var(--text); font-size: 18px; line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 80px var(--side) 90px;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero h1 {
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 800; letter-spacing: -1px; text-transform: uppercase;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

.hero p {
  color: var(--muted); max-width: 540px; margin: 26px 0 36px;
  font-size: 17.5px; font-weight: 500;
  opacity: 0; animation: fadeup 0.8s ease 0.45s forwards;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  opacity: 0; animation: fadeup 0.8s ease 0.6s forwards;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-meta {
  position: absolute; left: var(--side); bottom: 26px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
  display: flex; gap: 26px; flex-wrap: wrap;
  opacity: 0; animation: fadeup 0.8s ease 0.9s forwards;
}
.hero-meta b { color: var(--violet-hot); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 14px;
  font-family: var(--f-display); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.4px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #0c0518;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 44px rgba(192, 132, 252, 0.6);
}
.btn-ghost {
  background: var(--surface); color: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.6), 0 10px 30px rgba(139, 92, 246, 0.25);
}

/* ---------- sections ---------- */
.section { position: relative; padding: 88px var(--side); }
.section.bordered { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.section h2 {
  font-size: clamp(26px, 4.2vw, 46px); letter-spacing: -0.5px;
  text-transform: uppercase; max-width: 800px;
}
.section .lead {
  color: var(--muted); max-width: 580px; margin-top: 16px;
  font-size: 16.5px; font-weight: 500;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px; margin-top: 46px;
}
.box {
  position: relative; overflow: hidden;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.2s;
  transform-style: preserve-3d;
}
.box:hover {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.18);
}
/* cursor-following glare */
.box::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(192, 132, 252, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.box:hover::after { opacity: 1; }
.box > * { position: relative; z-index: 1; }

.box .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 18px;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3);
}
.box h3 {
  color: #fff; font-size: 16px; margin-bottom: 10px;
  letter-spacing: 0.2px; font-weight: 700;
}
.box p { color: var(--muted); font-size: 14.5px; font-weight: 500; }

.tag {
  display: inline-block; font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--violet-hot);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 30px; padding: 4px 13px; margin-bottom: 16px;
  align-self: flex-start;
}
.live-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 18px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.5px;
  color: #fff; text-decoration: none; align-self: flex-start;
  transition: color 0.25s, gap 0.25s;
}
.live-btn:hover { color: var(--violet-hot); gap: 10px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 46px;
}
.stat {
  padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.stat .num {
  font-family: var(--f-display); font-size: 52px; font-weight: 800;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.stat .lbl {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 54px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee-track span b { color: var(--violet-hot); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 var(--side) 88px;
  padding: 64px 40px; text-align: center;
  border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px circle at 50% -20%, rgba(139, 92, 246, 0.3), transparent 60%),
    var(--bg-2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 40px); text-transform: uppercase; }
.cta-band p { color: var(--muted); margin: 14px auto 30px; max-width: 480px; font-weight: 500; }

/* ---------- form ---------- */
.form { max-width: 560px; margin-top: 40px; }
.form label {
  display: block; margin: 22px 0 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--violet-hot);
}
.form input, .form textarea {
  width: 100%; padding: 15px 17px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; color: var(--text);
  font-family: var(--f-body); font-size: 15px; font-weight: 500;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.form .btn { margin-top: 28px; }

/* ---------- team ---------- */
.team-card {
  max-width: 380px; text-align: center; align-items: center;
}
.avatar {
  width: 108px; height: 108px; border-radius: 50%;
  margin-bottom: 20px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 34px; font-weight: 800; color: #fff;
  background: var(--bg-2);
}
.avatar::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, #8b5cf6, #e879f9, #c084fc, #8b5cf6);
  z-index: -1; animation: ringspin 5s linear infinite;
}
@keyframes ringspin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.chips span {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 30px; padding: 4px 12px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px var(--side);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
footer a { color: var(--violet-hot); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero h1 .line > span { transform: none; }
  .hero p, .hero-cta, .hero-meta { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --pad: 22px; }
  nav { top: 10px; margin-top: 10px; padding: 10px 16px; }
  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(12, 10, 23, 0.96);
    border: 1px solid var(--line); border-radius: 16px;
    padding: 12px; backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; }
  .hero { min-height: 74vh; padding-top: 60px; padding-bottom: 70px; }
  .hero-meta { position: static; margin-top: 40px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .cta-band { margin-bottom: 60px; padding: 46px 24px; }
  .stat .num { font-size: 42px; }
}
