/* ========================================
   $DOOM — styles
   dark, bleak, minimal, crypto-native
   ======================================== */

:root {
  --black: #0a0a0a;
  --dark: #111113;
  --grey: #1a1a1e;
  --mid-grey: #2a2a30;
  --text: #a0a0a8;
  --text-dim: #606068;
  --text-bright: #d0d0d8;
  --red: #c43030;
  --orange: #d48020;
  --blue: #3a5a80;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* container */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--black) 0%, #0d0d12 50%, var(--black) 100%);
}

.hero-inner {
  max-width: 640px;
  width: 100%;
}

.hero-banner {
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--grey);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85) contrast(1.05);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--text-bright);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.tagline {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- sections ---- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--grey);
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  text-transform: lowercase;
}

/* thesis */
.thesis .big-text {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-bright);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.5;
}

.thesis p {
  color: var(--text);
  font-weight: 300;
  line-height: 1.8;
}

/* truths */
.truth-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.truth-list li {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text);
  font-weight: 300;
  padding-left: 16px;
  border-left: 2px solid var(--mid-grey);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.truth-list li:hover {
  border-left-color: var(--red);
  color: var(--text-bright);
}

/* contract */
.ca-block {
  margin-bottom: 40px;
}

.ca-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ca {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: var(--text-bright);
  background: var(--grey);
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--mid-grey);
  word-break: break-all;
  flex: 1;
  min-width: 0;
  user-select: all;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--grey);
  border: 1px solid var(--mid-grey);
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  text-transform: lowercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  color: var(--text-bright);
  border-color: var(--text-dim);
}

.ca-copied {
  display: block;
  font-size: 0.7rem;
  color: var(--red);
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ca-copied.show {
  opacity: 1;
}

/* links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pill {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--mid-grey);
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: lowercase;
}

.link-pill:hover {
  color: var(--text-bright);
  border-color: var(--text-dim);
  background: var(--grey);
}

.link-pill.disabled {
  color: var(--text-dim);
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* footer */
.footer {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid var(--grey);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* ---- responsive ---- */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 90vh;
    padding: 32px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .ca-row {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    text-align: center;
  }

  .links {
    flex-direction: column;
  }

  .link-pill {
    text-align: center;
  }
}

/* ---- subtle animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .section {
    animation: fadeUp 0.6s ease both;
  }

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