:root {
  --bg: #0c0c10;
  --bg-soft: #12121a;
  --text: #e4e4e8;
  --text-muted: #8b8b9a;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --cover-bg: #16161e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  background: url('art/texture.jpg') center/cover;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

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

.flourish {
  position: fixed;
  inset: -50%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-dim) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 2%) scale(1.02); }
}

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

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(8px);
}
.site-header .title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.site-header .title:hover { color: var(--accent); }

/* Orbiting dots flourish next to site title */
.site-header .title-orbit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}
.site-header .title-orbit .dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  left: 50%;
  margin: -2px 0 0 -2px;
  animation: title-orbit 2.5s linear infinite;
}
.site-header .title-orbit .dot:nth-child(2) { animation-delay: -0.83s; }
.site-header .title-orbit .dot:nth-child(3) { animation-delay: -1.66s; }
@keyframes title-orbit {
  0% { transform: rotate(0deg) translateX(8px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(8px) rotate(-360deg); }
}
.site-header .title:hover .title-orbit .dot { background: var(--accent); }
.site-header .nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.site-header .nav-link:hover { color: var(--accent); }
@media (max-width: 768px) {
  .site-header { padding: 0.875rem 1.25rem; }
  .site-header .title { font-size: 0.875rem; }
}

/* Hero — left-right split (cover | copy), tighter so content below is visible */
.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.25rem 2rem 2.5rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 0; }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cover {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .hero-copy { align-items: center; }
}

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
}

.hero .tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .hero .tagline { margin-left: auto; margin-right: auto; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .cta-row { justify-content: center; }
}

.recommendation {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.recommendation .quote {
  display: block;
  margin-bottom: 0.35rem;
  opacity: 0.95;
}
.recommendation .attribution {
  color: var(--accent);
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .recommendation { text-align: center; }
}

/* Stylistic divider between hero and content */
.hero-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}
.hero-divider .line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--border) 25%, var(--accent) 50%, var(--border) 75%, transparent 95%);
  opacity: 0.9;
}

.btn {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--accent-dim); border-color: var(--accent); }

/* Section common */
section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

section h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Video strips — alternating L/R background flourishes + commentary */
.video-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 42vh;
  align-items: center;
  overflow: hidden;
}
.video-strip.reverse { direction: rtl; }
.video-strip.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .video-strip {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }
  .video-strip.reverse { direction: ltr; }
  .video-strip .strip-content { padding: 2rem 1.5rem; text-align: center; }
  .video-strip .strip-visual { min-height: 220px; }
}

.strip-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.strip-visual .scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.strip-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%);
  pointer-events: none;
}
.video-strip.reverse .strip-visual::after {
  background: linear-gradient(to left, var(--bg) 0%, transparent 40%);
}
@media (max-width: 768px) {
  .strip-visual::after {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 50%);
  }
  .video-strip.reverse .strip-visual::after {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 50%);
  }
}

.strip-content {
  padding: 3rem 2.5rem;
  z-index: 1;
}
.strip-content h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.strip-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
}
@media (max-width: 768px) {
  .strip-content p { max-width: none; }
}

.video-strips {
  padding-top: 0;
}

/* About the book */
.about p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about ul {
  list-style: none;
  margin-top: 1.5rem;
}

.about li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.about li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Author */
.author {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
}

.author h2 { margin-bottom: 0.5rem; }
.author .name { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.author-links a {
  color: var(--accent);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}
.author-links a:hover { text-decoration: underline; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Token / simple page content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.page-content h1 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-content h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.page-content h2:first-of-type { margin-top: 0; }
.page-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.page-content ul {
  list-style: none;
  margin: 1rem 0;
}
.page-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.page-content a {
  color: var(--accent);
  text-decoration: none;
}
.page-content a:hover { text-decoration: underline; }

/* Token page: ENS highlight in intro */
.page-content .ens-highlight {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* Token page: contract / address block */
.token-address {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--accent);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.token-address .label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.token-address-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.token-address-value {
  word-break: break-all;
}
.token-address .copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.token-address .copy-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.token-address .copy-btn:active {
  transform: scale(0.96);
}
.token-address .copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Token page: CTA / mint instruction */
.token-cta {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-dim);
}
.token-cta p {
  margin-bottom: 0.5rem;
}
.token-cta p:last-child { margin-bottom: 0; }
.token-cta a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* Token page: disclaimer / small print */
.token-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.85;
}
.token-disclaimer p { margin-bottom: 0.5rem; }
.token-disclaimer p:last-child { margin-bottom: 0; }
