/* ═══════════════════════════════════════════════════════
   notme.bot — identity dossier
   light gritty / aged paper / redacted document aesthetic
   the opposite of every dark-mode AI startup
   ═══════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap");

:root {
  /* ── Earthy paper — warm sepia, cyberpunk warmth ── */
  --paper: #1c1810;
  --paper-warm: #242018;
  --paper-dark: #141210;
  --ink: #e8dcc8;
  --ink-2: #c8b8a0;
  --ink-3: #988870;
  --ink-4: #8a7b6a;
  --ink-5: #6b6050;
  /* ── Accents: CP2077 yellow + warm cyan ── */
  --cyan: #00d4e8;
  --cyan-dark: #00a8b8;
  --yellow: #f0d040;
  --yellow-dim: #c8a830;
  --red: #e04030;
  --red-dim: #c03828;
  --green: #48c868;
  --stamp: #f0d040;
  /* ── Surfaces ── */
  --card: #242018;
  --card-hover: #2c2820;
  --border: #3a3428;
  --border-dim: #302a20;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Global Links ── */
a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 212, 232, 0.3);
  transition: all 150ms ease;
}

a:hover {
  color: var(--yellow);
  border-bottom-style: solid;
  border-bottom-color: rgba(240, 208, 64, 0.4);
}

/* ── Paper grain — subtle xerox texture ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Glitch — broadcast interruption ── */
@keyframes glitch-anim {
  0% {
    clip-path: inset(40% 0 61% 0);
    transform: translate(-2px, 0);
  }
  20% {
    clip-path: inset(92% 0 1% 0);
    transform: translate(2px, 0);
  }
  40% {
    clip-path: inset(43% 0 1% 0);
    transform: translate(-1px, 0);
  }
  60% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(1px, 0);
  }
  80% {
    clip-path: inset(54% 0 7% 0);
    transform: translate(-2px, 0);
  }
  100% {
    clip-path: inset(58% 0 43% 0);
    transform: translate(0);
  }
}

@keyframes glitch-color {
  0% {
    clip-path: inset(65% 0 8% 0);
    transform: translate(3px, 0);
    opacity: 0.7;
  }
  25% {
    clip-path: inset(10% 0 85% 0);
    transform: translate(-3px, 0);
    opacity: 0.7;
  }
  50% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(2px, 0);
    opacity: 0.7;
  }
  75% {
    clip-path: inset(30% 0 50% 0);
    transform: translate(-2px, 0);
    opacity: 0.7;
  }
  100% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(1px, 0);
    opacity: 0.7;
  }
}

@keyframes scanline-pass {
  0% {
    top: -4px;
  }
  100% {
    top: 100%;
  }
}

@keyframes static-flash {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 0.08;
  }
  10% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  55% {
    opacity: 0.05;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* The hero glitches on load */
.hero h1 {
  position: relative;
}

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

.hero h1::before {
  color: var(--cyan);
  animation:
    glitch-anim 0.3s ease 0.5s 1 both,
    glitch-color 0.2s ease 0.6s 2 both;
}

.hero h1::after {
  color: var(--red);
  animation:
    glitch-anim 0.3s ease 0.6s 1 reverse both,
    glitch-color 0.2s ease 0.5s 2 reverse both;
}

/* Scanline that passes across the page periodically */
.scanline {
  position: fixed;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 212, 232, 0.06),
    rgba(240, 208, 64, 0.04),
    transparent
  );
  z-index: 9995;
  pointer-events: none;
  animation: scanline-pass 30s linear infinite;
}

/* Static overlay — flickers intermittently */
.static-overlay {
  position: fixed;
  inset: 0;
  z-index: 9994;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: static-flash 4s ease infinite;
}

/* ── Page ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav — minimal, stamped ── */
nav {
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  min-height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--stamp);
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a.active {
  color: var(--ink);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: "DM Mono", monospace;
  text-decoration: none;
  transition: all 150ms ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--paper-dark);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(240, 208, 64, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--yellow-dim);
  color: var(--yellow);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
}

.hero-stamp {
  display: inline-block;
  font-family: "Syne", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  padding: 4px 12px;
  margin-bottom: 32px;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin-bottom: 32px;
  padding-bottom: 0.15em;
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  color: var(--ink-4);
}

.hero h1 .correction {
  color: var(--yellow);
  position: relative;
  text-shadow: 0 0 40px rgba(240, 208, 64, 0.3);
}

.hero h1 .correction::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  opacity: 0.3;
}

.hero-body {
  max-width: 540px;
}

.hero-body p {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 28px;
}

.hero-body strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── Stats — inline highlight blocks ── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 56px 0;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.stat {
  padding: 4px 0;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-num.danger {
  color: var(--red);
}
.stat-num.info {
  color: var(--cyan-dark);
}
.stat-num.warning {
  color: var(--ink);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ── Thesis — big quote ── */
.thesis {
  margin: 56px 0;
  padding: 40px 0 40px 32px;
  border-left: 6px solid var(--cyan);
}

.thesis p {
  font-family: "Syne", sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.thesis .hl {
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(0, 200, 224, 0.2) 55%
  );
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 40px;
}

.divider .line {
  flex: 1;
  height: 2px;
  background: var(--ink);
}

.divider .tag {
  font-family: "Syne", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Stack cards ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stack-card {
  background: var(--card);
  padding: 28px 24px;
  border-left: 4px solid var(--c, var(--cyan));
  transition: all 150ms ease;
}

.stack-card:hover {
  background: var(--card-hover);
  transform: translateX(4px);
}

.stack-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.stack-card .card-role {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.stack-card p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.stack-card .card-link {
  font-size: 0.75rem;
  color: var(--cyan-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

.stack-card .card-link:hover {
  color: var(--red);
}

/* ── Before/After table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.875rem;
}

.compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: "Syne", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.compare-table tr:hover td {
  background: var(--card);
}

.tag-bad {
  color: var(--red);
  font-weight: 500;
  font-size: 0.6875rem;
}
.tag-good {
  color: var(--green);
  font-weight: 500;
  font-size: 0.6875rem;
}

/* ── CTA ── */
.cta-block {
  text-align: center;
  padding: 64px 0 80px;
  border-top: 2px solid var(--ink);
  margin-top: 56px;
}

.cta-block h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 0.15em;
  border-bottom: 1px solid var(--yellow);
  color: var(--yellow);
}

.cta-block p {
  color: var(--ink-3);
  font-size: 0.9375rem;
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-4);
}

footer a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 150ms ease;
}

footer a:hover {
  color: var(--cyan-dark);
}

/* ── Reading progress ── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--cyan);
  z-index: 9999;
  width: 0%;
  transition: width 80ms ease;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-num {
    font-size: 2rem;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}
