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

:root {
  --bg-cream: #f5e6d3;
  --bg-blue: #87CEEB;
  --text-dark: #1a1a2e;
  --highlight: #e8a838;
  --white: #ffffff;
  --black: #111111;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-center {
  display: flex;
  align-items: center;
}

.nav-ca {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  user-select: all;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

.buy-btn {
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.buy-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 40px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav.active {
  display: flex;
}

/* DOT NAVIGATION */
.dot-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--text-dark);
}

/* SECTIONS */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* HERO */
.hero-section {
  background: var(--white);
  padding-top: 60px;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0.85) 85%, #ffffff 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-center {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.highlight {
  color: var(--highlight);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.hero-btn {
  padding: 13px 32px;
  border-radius: 28px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  transform: scale(1.05);
}

.hero-btn-buy {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn-buy:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.hero-btn-pfp {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-pfp:hover {
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero-btn-x {
  background: #000;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-btn-x:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* HOW TO BUY */
.howtobuy-section {
  background: var(--white);
}

.howtobuy-content {
  text-align: center;
  max-width: 900px;
  width: 90%;
}

.howtobuy-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--highlight);
  background: rgba(232, 168, 56, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.howtobuy-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 48px;
}

.howtobuy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.howtobuy-step {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.howtobuy-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--text-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.howtobuy-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.howtobuy-step p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(26, 26, 46, 0.5);
}

/* PFP PROMO (index page) */
.pfp-section {
  background: var(--white);
}

.pfp-promo {
  text-align: center;
}

.pfp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--highlight);
  background: rgba(232, 168, 56, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pfp-promo h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin-bottom: 28px;
}

.pfp-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.pfp-card {
  flex: 0 0 200px;
}

.pfp-card-image {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.pfp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-card-result .pfp-card-image {
  background: linear-gradient(135deg, #fdf6ec, #fcecd4);
  border: 1px solid rgba(232, 168, 56, 0.15);
}

.pfp-card-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(26, 26, 46, 0.4);
  letter-spacing: 0.5px;
  text-align: center;
}

.pfp-arrow {
  color: rgba(26, 26, 46, 0.2);
  flex-shrink: 0;
  margin-bottom: 30px;
}

.pfp-cta {
  display: inline-block;
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 28px;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pfp-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.2);
}

/* PFP GENERATOR PAGE */
.pfp-page {
  background: var(--white);
}

.navbar-solid {
  background: var(--white) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-solid .logo {
  color: var(--text-dark);
}

.navbar-solid .nav-link {
  color: var(--text-dark);
}

.gen-page {
  padding: 100px 5% 60px;
  max-width: 1060px;
  margin: 0 auto;
}

.gen-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.gen-page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}

.gen-page-header p {
  font-size: 15px;
  color: rgba(26, 26, 46, 0.45);
}

.gen-workspace {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.gen-canvas-col {
  flex: 1;
  max-width: 512px;
}

.gen-canvas-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  background: #fafafa;
}

.gen-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.gen-canvas-wrap canvas:active {
  cursor: grabbing;
}

.gen-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gen-tool-group {
  flex: 1;
  min-width: 100px;
}

.gen-tool-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(26, 26, 46, 0.35);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gen-tool-group input[type="range"] {
  width: 100%;
  accent-color: var(--highlight);
}

.gen-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(26, 26, 46, 0.5);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.gen-tool-btn:hover {
  background: #eaeaea;
  color: var(--text-dark);
}

.gen-tool-reset {
  color: rgba(200, 60, 60, 0.5);
}

.gen-tool-reset:hover {
  background: rgba(200, 60, 60, 0.08);
  color: #c83c3c;
}

.gen-download {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--text-dark);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gen-download:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.15);
}

.gen-items-col {
  width: 260px;
  flex-shrink: 0;
}

.gen-items-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(26, 26, 46, 0.35);
  margin-bottom: 12px;
}

.gen-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gen-item {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  padding: 12px;
  position: relative;
}

.gen-item:hover {
  border-color: var(--highlight);
  box-shadow: 0 2px 12px rgba(232, 168, 56, 0.15);
  transform: scale(1.03);
}

.gen-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.gen-item-name {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(26, 26, 46, 0.35);
  text-transform: uppercase;
}

.gen-item-soon {
  background: #f0f0f0;
  opacity: 0.6;
}

.gen-item-soon:hover {
  border-color: rgba(26, 26, 46, 0.15);
  box-shadow: none;
  transform: scale(1);
}

.gen-soon-icon {
  font-size: 28px;
  font-weight: 700;
  color: rgba(26, 26, 46, 0.2);
}

.gen-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3000;
}

.gen-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FOOTER */
.footer-section {
  background: var(--white);
  padding-bottom: 60px;
  min-height: auto;
}

.footer-content {
  max-width: 800px;
  width: 90%;
}

.footer-main {
  text-align: center;
}

.footer-heading {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
}

.footer-divider {
  width: 60px;
  height: 3px;
  background: var(--highlight);
  border-radius: 2px;
  margin: 0 auto 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-token {
  font-size: 14px;
  font-weight: 600;
  color: var(--highlight);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-credit {
  font-size: 12px;
  opacity: 0.25;
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .nav-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .dot-nav {
    right: 12px;
  }

  .howtobuy-steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .pfp-grid {
    flex-direction: column;
    gap: 16px;
  }

  .pfp-arrow {
    transform: rotate(90deg);
    margin-bottom: 0;
  }

  .pfp-card {
    flex: none;
  }

  .gen-workspace {
    flex-direction: column;
  }

  .gen-items-col {
    width: 100%;
  }

  .gen-items-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
