/* ===== Inkbruh — Comic-Core Web3 Landing Page ===== */

:root {
  --ink-black: #0b0a10;
  --ink-panel: #14121c;
  --ink-panel-alt: #1a1725;
  --ink-purple: #3a1e6d;
  --ink-purple-deep: #1f1035;
  --ink-purple-bright: #8b5cf6;
  --ink-green: #baff3c;
  --ink-green-dim: #7fbf1f;
  --ink-white: #f4f1ec;
  --ink-gray: #a6a0b3;
  --ink-line: #2d2740;
  --ink-red: #ff5d5d;

  --font-display: 'Bangers', cursive;
  --font-body: 'Baloo 2', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-comic: 6px 6px 0 rgba(0,0,0,0.55);
  --shadow-comic-sm: 4px 4px 0 rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink-black);
  color: var(--ink-white);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Backgrounds ===== */

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

.halftone-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(139,92,246,0.16), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(186,255,60,0.08), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(139,92,246,0.10), transparent 45%),
    var(--ink-black);
}

.halftone-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.35;
}

main, header, footer { position: relative; z-index: 1; }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink-line);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  color: var(--ink-white);
  -webkit-text-stroke: 1px rgba(0,0,0,0.4);
}

.logo-mark--small { font-size: 1.4rem; }

.logo-mark-accent { color: var(--ink-green); }

.logo-splat {
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--ink-purple-bright);
  background: var(--ink-white);
  padding: 2px 6px;
  border-radius: 50%;
  transform: rotate(-14deg);
  border: 2px solid var(--ink-black);
  position: relative;
  top: -14px;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-weight: 700;
  font-size: 0.98rem;
}

.main-nav a {
  position: relative;
  color: var(--ink-gray);
  transition: color 0.2s ease;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: var(--ink-green);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--ink-white);
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.twitter-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-white);
  background: var(--ink-panel-alt);
  border: 2px solid var(--ink-line);
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.twitter-link:hover {
  transform: translateY(-2px);
  border-color: var(--ink-green);
  background: var(--ink-purple-deep);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.mobile-toggle span {
  height: 3px;
  background: var(--ink-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 6px 32px 20px;
  gap: 14px;
  font-weight: 700;
  border-top: 2px solid var(--ink-line);
}

.mobile-nav a { color: var(--ink-gray); padding: 6px 0; }

.site-header.nav-open .mobile-nav { display: flex; }

/* ===== Section shared ===== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--ink-green);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.eyebrow--alt { color: var(--ink-purple-bright); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-gray);
  max-width: 520px;
  line-height: 1.65;
}

/* ===== Hero ===== */

.hero {
  padding: 72px 32px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-purple-deep);
  border: 4px solid var(--ink-black);
  box-shadow: var(--shadow-comic), 0 0 0 3px var(--ink-purple-bright);
  transform: rotate(-2deg);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Themed fallback shows through until the numbered PNGs are added to the project root. */
.carousel-slide img,
.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--ink-purple), var(--ink-purple-deep));
}

.carousel-frame-ring {
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 2px dashed rgba(186,255,60,0.35);
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-line);
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dots button.is-active {
  background: var(--ink-green);
  transform: scale(1.3);
}

.badge-float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--ink-green);
  color: var(--ink-black);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-comic-sm);
  border: 2px solid var(--ink-black);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}

.badge-float--1 { top: -6px; right: 6%; animation-delay: 0.2s; }
.badge-float--2 {
  bottom: 4%;
  left: -14px;
  background: var(--ink-white);
  color: var(--ink-purple-deep);
  animation-delay: 1.1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-copy-wrap { max-width: 560px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.hero-title-stroke {
  display: block;
  color: var(--ink-black);
  -webkit-text-stroke: 2px var(--ink-green);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink-purple-bright);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-gray);
  max-width: 480px;
  line-height: 1.7;
}

/* ===== Whitelist Section ===== */

.wl-section {
  padding: 60px 32px 120px;
  max-width: 1320px;
  margin: 0 auto;
}

.wl-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.wl-side-copy { position: sticky; top: 110px; }

.wl-facts {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-facts li {
  display: flex;
  gap: 12px;
  color: var(--ink-gray);
  font-size: 0.95rem;
  align-items: baseline;
}

.wl-fact-num {
  font-family: var(--font-mono);
  color: var(--ink-green);
  font-weight: 700;
  font-size: 0.85rem;
}

.wl-card {
  background: linear-gradient(165deg, var(--ink-panel-alt), var(--ink-panel));
  border: 3px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-comic);
  position: relative;
  overflow: hidden;
}

.wl-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(186,255,60,0.14), transparent 70%);
  pointer-events: none;
}

.wl-card-header { margin-bottom: 26px; position: relative; }

.wl-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--ink-green);
  background: rgba(186,255,60,0.1);
  border: 1px solid rgba(186,255,60,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.wl-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}

.wl-progress {
  margin-top: 16px;
  height: 8px;
  background: var(--ink-black);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}

.wl-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ink-purple-bright), var(--ink-green));
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  border-radius: 999px;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wl-step {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--ink-line);
  position: relative;
}

.wl-step:last-of-type { border-bottom: none; padding-bottom: 0; }

.wl-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-black);
  border: 2px solid var(--ink-purple-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-purple-bright);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.wl-step.is-done .wl-step-num {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--ink-black);
}

.wl-step-body { display: flex; flex-direction: column; gap: 10px; }

.wl-step-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-white);
}

.wl-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--ink-black);
  background: var(--ink-line);
  opacity: 0.4;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  align-self: start;
  margin-top: 4px;
}

.wl-check.is-active {
  background: var(--ink-green);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 4px rgba(186,255,60,0.18);
}

.wl-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink-purple-bright);
  color: var(--ink-black);
  width: fit-content;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
}

.wl-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-comic-sm);
  background: #a578f9;
}

.wl-btn--task.is-visited {
  background: transparent;
  border-color: var(--ink-green);
  color: var(--ink-green);
}

.wl-btn--share {
  background: var(--ink-green);
  margin: 0 auto;
}

.wl-input-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--ink-gray);
  text-transform: uppercase;
  margin-top: 4px;
}

.wl-input {
  background: var(--ink-black);
  border: 2px solid var(--ink-line);
  color: var(--ink-white);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wl-input--mono { font-family: var(--font-mono); font-size: 0.88rem; }

.wl-input::placeholder { color: #5c5670; }

.wl-input:focus {
  outline: none;
  border-color: var(--ink-purple-bright);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.25);
}

.wl-input.is-invalid {
  border-color: var(--ink-red);
}

.wl-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  line-height: 1.5;
  color: var(--ink-gray);
}

.wl-error {
  display: none;
  color: var(--ink-red);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: -2px;
}

.wl-input.is-invalid ~ .wl-error,
.wl-step .wl-error.is-shown { display: block; }

.wl-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink-green);
  color: var(--ink-black);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-comic-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wl-submit:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.wl-submit:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.wl-submit svg { transition: transform 0.25s ease; }
.wl-submit:hover svg { transform: translateX(4px); }

.wl-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success state */

.wl-success {
  text-align: center;
  padding: 20px 8px 6px;
  animation: successIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes successIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wl-success-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--ink-green);
  color: var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(186,255,60,0.14), var(--shadow-comic-sm);
}

.wl-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.wl-success p {
  color: var(--ink-gray);
  max-width: 380px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* ===== About Section ===== */

.about-section {
  padding: 60px 32px 120px;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 3px dashed var(--ink-line);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-scribble {
  font-size: 2.4rem;
  color: var(--ink-purple-bright);
  opacity: 0.6;
  margin-top: 10px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.about-stat { display: flex; flex-direction: column; gap: 4px; }

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink-green);
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--ink-gray);
  text-transform: uppercase;
}

/* ===== Collection Section ===== */

.collection-section {
  padding: 40px 32px 140px;
  max-width: 1320px;
  margin: 0 auto;
}

.collection-inner { text-align: left; }

.collection-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.collection-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 3px solid var(--ink-black);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.collection-tile:nth-child(3n+2) { transform: rotate(-1.5deg); }
.collection-tile:nth-child(3n+3) { transform: rotate(1.5deg); }

.collection-tile:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-comic-sm);
  z-index: 2;
}


/* ===== Footer ===== */

.site-footer {
  border-top: 3px solid var(--ink-line);
  padding: 30px 32px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  color: var(--ink-gray);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ===== Responsive ===== */

@media (max-width: 1080px) {
  .hero-inner, .wl-inner, .about-inner {
    grid-template-columns: 1fr;
  }
  .wl-side-copy { position: static; }
  .collection-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { padding: 16px 20px; }
  .hero, .wl-section, .about-section, .collection-section { padding-left: 20px; padding-right: 20px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wl-card { padding: 24px; }
  .twitter-link span { display: none; }
}

@media (max-width: 480px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.3rem; }
}

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