:root {
  --bg: #050508;
  --bg-alt: #0a0a14;
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.4);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --green: #22c55e;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  overflow-x: hidden;
}

/* EFFECTS */
.noise {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

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

/* HEADER */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  background: rgba(5,5,8,0.7);
  z-index: 10;
}

.brand span {
  color: var(--purple);
}

.status {
  font-size: 0.75rem;
  color: var(--muted);
}

.status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 3;
}

.hero-inner {
  max-width: 900px;
}

.glitch {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  position: relative;
}

.subtitle {
  margin-top: 1rem;
  color: var(--muted);
}

/* TERMINAL */
.terminal {
  margin-top: 3rem;
  background: var(--bg-alt);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.terminal-header {
  display: flex;
  gap: 6px;
  padding: 0.6rem;
  background: #0f0f1f;
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.terminal-body {
  padding: 1rem;
  font-size: 0.85rem;
}

.purple { color: var(--purple); }
.green { color: var(--green); }

/* SECTIONS */
.section {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 3;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.05));
}

h2 {
  margin-bottom: 2rem;
  color: var(--purple);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.panel {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.panel ul {
  list-style: none;
}

.panel li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

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

.card {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.tag {
  font-size: 0.7rem;
  color: var(--purple);
}

/* STACK */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stack span {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 999px;
  font-size: 0.75rem;
}

/* CONTACT */
.contact-box {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 20px;
}

.mono {
  color: var(--purple);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.small {
  font-size: 0.7rem;
}

/* MOBILE */
@media (max-width: 600px) {
  .hero {
    padding-top: 7rem;
  }
}
