:root {
  --sky: #89cff0;
  --sky-deep: #6bb8e8;
  --sky-light: #c5e8f7;
  --mac-beige: #d9ccb8;
  --mac-gray: #b8b8b8;
  --mac-dark: #8a8a8a;
  --peach: #e8a87c;
  --peach-deep: #c97b52;
  --peach-light: #f5c9a8;
  --water: #5ba3d9;
  --ink: #1a1a1a;
  --window-bg: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-muted: #4a5568;
  --accent: #c97b52;
  --glow: rgba(201, 123, 82, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  background: var(--sky);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Retro sky background */
.water-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(91, 163, 217, 0.2), transparent),
    linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 55%, var(--sky-deep) 100%);
}

.water-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.wave-layer {
  display: none;
}

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(26, 26, 26, 0.15);
  animation: pixel-float linear infinite;
}

.bubble.heart {
  border-radius: 0;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--peach-deep);
  opacity: 0.55;
  animation: heart-float linear infinite;
}

@keyframes pixel-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  8% { opacity: 0.6; }
  92% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(90deg); opacity: 0; }
}

@keyframes heart-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(20deg); opacity: 0; }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Mac window chrome */
.mac-window {
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--window-bg);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  background: var(--mac-gray);
  border-bottom: 3px solid var(--ink);
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.mac-dot-close { background: #ff6b6b; }
.mac-dot-min { background: #ffd93d; }
.mac-dot-max { background: #6bcb77; }

.mac-title {
  flex: 1;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  margin-right: 2.5rem;
}

.mac-content {
  padding: 0.5rem;
  background: var(--sky-light);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 3rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-title {
  font-family: 'VT323', monospace;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}

.nav-sub {
  font-size: 0.68rem;
  color: var(--peach-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nsfw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: var(--peach-light);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-pump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-pump:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-animation {
  position: relative;
  width: min(420px, 88vw);
  margin: 0 auto 1.5rem;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--window-bg);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--peach-deep);
  margin-bottom: 1.25rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-title {
  font-family: 'VT323', monospace;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.hero-title .thicc {
  color: var(--peach-deep);
  text-shadow: 3px 3px 0 var(--ink);
}

.hero-tagline {
  font-family: 'VT323', monospace;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-desc {
  max-width: 660px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.hero-desc em {
  color: var(--peach-deep);
  font-style: normal;
  font-weight: 600;
}

/* Panels */
.address-panel {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 3rem;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.address-panel h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  padding: 0.6rem 1rem;
  background: var(--mac-gray);
  border-bottom: 3px solid var(--ink);
}

.address-panel > p,
.address-panel > .address-row {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.address-panel > p:first-of-type {
  padding-top: 1rem;
}

.address-panel > .address-row:last-child {
  padding-bottom: 1.75rem;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.address-box {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-copy {
  background: var(--window-bg);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-copy:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-copy.copied {
  background: var(--peach-light);
}

.btn-trade {
  background: var(--peach);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-trade:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.address-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 100px;
}

/* Split visual */
.split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.split-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 1.25rem;
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s;
}

.split-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.split-pct {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  color: var(--peach-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 var(--ink);
}

.split-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.split-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.split-divider {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--peach-deep);
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: 'VT323', monospace;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 rgba(26, 26, 26, 0.15);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.card {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peach-light);
  border: 2px solid var(--ink);
  border-radius: 3px;
  margin-bottom: 1rem;
  color: var(--peach-deep);
}

.card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .flow { grid-template-columns: 1fr; }
}

.flow-step {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.flow-step h4 {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.flow-step p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .dual-cards { grid-template-columns: 1fr; }
}

.dual-card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--peach-deep);
  margin-bottom: 0.75rem;
}

.footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 3px solid var(--ink);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer a {
  color: var(--peach-deep);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-family: 'VT323', monospace;
  color: var(--ink);
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.water-meter {
  height: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.water-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--water), var(--peach), var(--water));
  background-size: 200% 100%;
  animation: drip-flow 2.5s linear infinite;
}

@keyframes drip-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.compound-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .compound-grid { grid-template-columns: 1fr; }
}

.compound-steps h3,
.compound-form-card h3,
.compound-registered h3 {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.compound-list {
  margin: 0 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.compound-list code {
  font-size: 0.72rem;
  color: var(--peach-deep);
  word-break: break-all;
}

.compound-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 0.8rem;
}

.compound-fee strong {
  color: var(--peach-deep);
}

.compound-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compound-form label span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compound-form input {
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.75rem;
}

.compound-form input:focus {
  outline: none;
  border-color: var(--peach-deep);
  box-shadow: 3px 3px 0 var(--ink);
}

.compound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.register-status.ok { color: var(--peach-deep); }
.register-status.err { color: #c0392b; }
.register-status.pending { color: var(--text-muted); }

.registered-coins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.registered-coin {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.registered-coin h4 {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.registered-coin p {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lp-stat {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.lp-stat-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lp-stat-val {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--peach-deep);
  text-shadow: 2px 2px 0 var(--ink);
}

.lp-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-event {
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.lp-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  background: var(--peach-light);
  border: 2px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

.lp-event-body h4 {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.lp-event-body p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lp-event-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--peach-deep);
  text-decoration: none;
}

.lp-event-link:hover {
  text-decoration: underline;
}

.lp-loading, .lp-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem;
}

@media (max-width: 640px) {
  .lp-stats { grid-template-columns: 1fr; }
  .lp-event { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav-links a:not(.btn-pump):not(.nsfw-badge) { display: none; }
  .address-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}