:root {
  --bg: #05060f;
  --bg-2: #0a0d1c;
  --panel: rgba(10, 13, 28, 0.72);
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --yellow: #f8ef4a;
  --text: #b8c4d8;
  --dim: #5a6a85;
  --border: rgba(0, 240, 255, 0.18);
}

* { 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;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: 'Share Tech Mono', monospace; }

::selection { background: var(--magenta); color: #05060f; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #12304a; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(2, 3, 10, 0.55) 100%);
}

main { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(5, 6, 15, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: #eaf6ff;
  text-decoration: none;
}

.logo span { color: var(--cyan); }

.nav-links { display: flex; gap: 28px; align-items: center; }

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.cta {
  color: var(--magenta);
  border: 1px solid rgba(255, 43, 214, 0.4);
  padding: 6px 14px;
}
.nav-links a.cta:hover {
  background: rgba(255, 43, 214, 0.12);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.35);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.terminal-line {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 28px;
  min-height: 1.4em;
  opacity: 0.85;
}

.prompt { color: var(--magenta); }

.cursor { animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.glitch {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: 4px;
  color: #f2fbff;
  position: relative;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.glitch::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitch-a 2.7s infinite linear alternate-reverse;
}

.glitch::after {
  color: var(--magenta);
  z-index: -2;
  animation: glitch-b 3.1s infinite linear alternate-reverse;
}

@keyframes glitch-a {
  0%   { clip-path: inset(20% 0 60% 0); transform: translate(-4px, -2px); }
  10%  { clip-path: inset(80% 0 5% 0);  transform: translate(3px, 1px); }
  20%  { clip-path: inset(40% 0 40% 0); transform: translate(-3px, 2px); }
  30%  { clip-path: inset(10% 0 85% 0); transform: translate(4px, -1px); }
  40%  { clip-path: inset(65% 0 20% 0); transform: translate(-2px, 1px); }
  50%  { clip-path: inset(30% 0 55% 0); transform: translate(2px, -2px); }
  60%  { clip-path: inset(90% 0 2% 0);  transform: translate(-4px, 1px); }
  70%  { clip-path: inset(50% 0 35% 0); transform: translate(3px, 2px); }
  80%  { clip-path: inset(15% 0 70% 0); transform: translate(-2px, -1px); }
  90%  { clip-path: inset(72% 0 12% 0); transform: translate(4px, 1px); }
  100% { clip-path: inset(35% 0 48% 0); transform: translate(-3px, 2px); }
}

@keyframes glitch-b {
  0%   { clip-path: inset(65% 0 15% 0); transform: translate(4px, 2px); }
  15%  { clip-path: inset(25% 0 60% 0); transform: translate(-3px, -1px); }
  30%  { clip-path: inset(80% 0 8% 0);  transform: translate(2px, 2px); }
  45%  { clip-path: inset(12% 0 78% 0); transform: translate(-4px, -2px); }
  60%  { clip-path: inset(48% 0 30% 0); transform: translate(3px, 1px); }
  75%  { clip-path: inset(92% 0 3% 0);  transform: translate(-2px, -1px); }
  90%  { clip-path: inset(38% 0 45% 0); transform: translate(4px, -2px); }
  100% { clip-path: inset(70% 0 18% 0); transform: translate(-3px, 2px); }
}

.tagline {
  font-family: 'Share Tech Mono', monospace;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 14px 30px;
  display: inline-block;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: all 0.2s;
}

.btn-primary {
  background: var(--cyan);
  color: #031018;
}

.btn-primary:hover {
  background: #7ff7ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-val { font-size: 1.5rem; }
.stat-label { font-size: 0.65rem; letter-spacing: 2px; color: var(--dim); margin-top: 4px; }

.cyan { color: var(--cyan); }
.magenta { color: var(--magenta); }
.yellow { color: var(--yellow); }

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: #eaf6ff;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.idx { color: var(--magenta); font-family: 'Share Tech Mono', monospace; font-size: 1rem; }

/* ---------- CARDS ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px 24px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 60%);
  opacity: 0.5;
  transition: opacity 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.12), inset 0 0 24px rgba(0, 240, 255, 0.04);
}

.card:hover::before { opacity: 1; }

.card-head { font-size: 0.7rem; color: var(--dim); letter-spacing: 2px; margin-bottom: 14px; }

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.card-role { color: var(--dim); font-size: 0.95rem; margin-top: 4px; }

.card-desc { margin-top: 14px; font-size: 0.95rem; color: #8fa0bb; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 3px 10px;
  border: 1px solid;
  white-space: nowrap;
}

.tag-active { color: var(--cyan); border-color: rgba(0, 240, 255, 0.4); background: rgba(0, 240, 255, 0.07); }
.tag-beta { color: var(--yellow); border-color: rgba(248, 239, 74, 0.4); background: rgba(248, 239, 74, 0.07); }

.card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 1px;
}

.crew-card { text-align: center; }

.crew-mail {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.crew-mail:hover { color: var(--cyan); }

.crew-sig {
  display: block;
  width: 100%;
  height: 140px;
  margin-bottom: 20px;
  background: rgba(3, 4, 10, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

/* ---------- TERMINAL ---------- */
.terminal {
  background: #04050c;
  border: 1px solid var(--border);
  max-width: 680px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.07);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title { margin-left: 12px; font-size: 0.7rem; color: var(--dim); letter-spacing: 1px; }

.terminal-body { padding: 22px 24px; font-size: 0.85rem; line-height: 1.9; }
.terminal-body .out { color: var(--cyan); opacity: 0.85; }

.socials { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--dim);
  background: rgba(5, 6, 15, 0.85);
}

.footer-status { display: flex; align-items: center; gap: 8px; color: #27c93f; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 10px #27c93f;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.7rem; }
  .stats { gap: 28px; }
  .section { padding: 70px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- LOGIN ---------- */
.login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 24px;
}

.login-logo { font-size: 1.7rem; letter-spacing: 3px; }

.login-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 380px);
  padding: 34px 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.login-label { font-size: 0.65rem; letter-spacing: 2px; color: var(--dim); }

.login-input {
  background: rgba(3, 4, 10, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

.login-btn { margin-top: 14px; }

.login-status { min-height: 1.3em; font-size: 0.75rem; letter-spacing: 1px; color: var(--yellow); }
.login-status.err { color: var(--magenta); }

.login-hints {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--dim);
  text-align: center;
}

.login-hints a { color: var(--cyan); text-decoration: none; }
.login-hints a:hover { text-decoration: underline; }

.login-hints code {
  color: var(--yellow);
  background: rgba(248, 239, 74, 0.06);
  border: 1px solid rgba(248, 239, 74, 0.25);
  padding: 1px 6px;
}

.login-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--dim);
}

.login-footer a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
.login-footer a:hover { color: var(--cyan); }
