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

/* ── Variables ───────────────────────────────────────── */

:root {
  --green: #00ff99;
  --green-dim: #00cc77;
  --green-faint: rgba(0, 255, 153, 0.07);
  --bg: #030a05;
  --text-muted: #4a7a5a;
  --text-dim: #2a4a35;
  --text-body: #99ccaa;
}

/* ── Reset ───────────────────────────────────────────── */

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

/* ── Base ────────────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 3rem 1.5rem;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,153,0.02) 0px,
    rgba(0,255,153,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 10;
}

a { color: var(--green-dim); text-decoration: none; }
a:hover { color: var(--green); }

p { margin-bottom: 1rem; }

/* ── Layout ──────────────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 20;
}

.container--center {
  max-width: 480px;
  text-align: center;
}

/* ── Components ──────────────────────────────────────── */

.back {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back:hover { color: var(--green); }
.back::before { content: '← '; }

.label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.label::before { content: '// '; color: var(--text-dim); }

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-dim), transparent);
  margin: 2rem 0;
}

.footer {
  margin-top: 3rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-align: center;
}
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; padding: 0.25rem 0.3rem; display: inline-block; }
.footer a:hover { color: var(--green); }

.highlight {
  border-left: 2px solid var(--green-dim);
  padding-left: 1rem;
  color: var(--green);
  font-weight: 600;
  margin: 1.5rem 0;
}

/* ── Typography ──────────────────────────────────────── */

h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.8rem;
  color: var(--green);
  text-shadow: 0 0 15px rgba(0,255,153,0.3);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--green-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
h2::before { content: '// '; color: var(--text-dim); }

h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

ul {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0;
}
ul li::before { content: '▸ '; color: var(--green-dim); }

/* ── Animations ──────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glitch {
  0%, 92%, 100% { text-shadow: 0 0 20px var(--green), 0 0 40px rgba(0,255,153,0.3); transform: none; }
  93% { transform: skewX(3deg); text-shadow: -2px 0 #ff003c, 2px 0 #00f3ff; }
  94% { transform: skewX(-2deg); }
  95% { transform: none; text-shadow: 0 0 20px var(--green); }
  96% { transform: skewX(1px); text-shadow: 2px 0 #ff003c; }
  97% { transform: none; text-shadow: 0 0 20px var(--green), 0 0 40px rgba(0,255,153,0.3); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Home ────────────────────────────────────────────── */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}
.logo-wrap img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px var(--green));
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow: 0 0 20px var(--green), 0 0 40px rgba(0,255,153,0.3);
  animation: glitch 4s infinite;
}

.manifesto {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}
.manifesto-line {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0,255,153,0.4);
  margin-bottom: 0;
}
.manifesto-line span { color: var(--green-dim); }

.sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  border-left: 2px solid var(--text-dim);
  padding-left: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.app-card {
  border: 1px solid var(--text-dim);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}
.app-card:hover { border-color: var(--green-dim); background: var(--green-faint); }
.app-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  transition: color 0.2s, right 0.2s;
}
.app-card:hover::after { color: var(--green-dim); right: 1.2rem; }

.app-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

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

.badge {
  display: inline-block;
  border: 1px solid var(--green-dim);
  color: var(--green-dim);
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── NullMoney ───────────────────────────────────────── */

.hero {
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.app-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.app-label::before { content: '// '; color: var(--text-dim); }

.app-hero-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 3rem;
  color: var(--green);
  text-shadow: 0 0 30px rgba(0,255,153,0.4), 0 0 60px rgba(0,255,153,0.15);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.sub-tagline { font-size: 0.9rem; color: var(--text-muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--green-dim);
  padding: 0.4rem 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green-dim);
  margin-top: 1.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease infinite;
}

.features { margin-bottom: 3rem; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--text-dim);
  border: 1px solid var(--text-dim);
  margin-bottom: 1rem;
}

.feature { background: var(--bg); padding: 1.25rem; transition: background 0.2s; }
.feature:hover { background: var(--green-faint); }

.feature-icon { font-size: 1.2rem; margin-bottom: 0.5rem; }

.feature-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.philosophy {
  border-left: 2px solid var(--green-dim);
  padding-left: 1.25rem;
  margin-bottom: 3rem;
}
.philosophy p { font-size: 1.1rem; font-weight: 600; color: var(--green); margin-bottom: 0.5rem; }
.philosophy small { font-size: 0.85rem; color: var(--text-muted); }

.pricing { border: 1px solid var(--text-dim); padding: 1.5rem; margin-bottom: 3rem; }

.price {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--green);
  text-shadow: 0 0 15px rgba(0,255,153,0.3);
  margin: 0.5rem 0;
}

.price-note { font-size: 0.85rem; color: var(--text-muted); }

.price-features { margin-top: 1rem; }
.price-features li { font-size: 0.9rem; color: var(--text-body); padding: 0.2rem 0; }
.price-features li::before { content: '✓ '; color: var(--green-dim); }

.faq-section { margin-bottom: 3rem; }

.faq-box { border: 1px solid var(--text-dim); padding: 1.5rem; margin-bottom: 1rem; }
.faq-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

.cta { text-align: center; margin-bottom: 3rem; }

.cta-coming {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.cta-coming::before { content: '// '; color: var(--text-dim); }

.cta-sub { font-size: 0.85rem; color: var(--text-dim); }
.cta-sub a { color: var(--text-muted); }
.cta-sub a:hover { color: var(--green); }

/* ── Prose pages ─────────────────────────────────────── */

.updated {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.app-section {
  border: 1px solid var(--text-dim);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.app-section:hover { border-color: var(--text-muted); }

.contact-box { border: 1px solid var(--green-dim); padding: 1.5rem; margin-top: 2rem; }
.contact-box p { margin-bottom: 0.5rem; }
.contact-box p:last-child { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── 404 ─────────────────────────────────────────────── */

.code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 5rem;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 30px var(--green), 0 0 60px rgba(0,255,153,0.2);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.message {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.home-link {
  display: inline-block;
  border: 1px solid var(--text-dim);
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.home-link:hover { border-color: var(--green-dim); color: var(--green); background: var(--green-faint); }

/* ── Media queries ───────────────────────────────────── */

@media (max-width: 480px) {
  body { padding: 2rem 1rem; }
  .logo-text { font-size: 1.6rem; }
  .manifesto-line { font-size: 1.15rem; }
  .app-hero-name { font-size: 2.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .code { font-size: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
