* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

/* ========== OPEN ANIMATIONS ========== */
:root {
  --reveal-dur: 650ms;
  --reveal-ease: cubic-bezier(.2, .8, .2, 1);
}

/* başlangıçta gizli */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

/* aktif olunca görünür */
.reveal.in {
  animation: revealUp var(--reveal-dur) var(--reveal-ease) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* hero elemanları sırayla gelsin */
.hero .hero-slogan {
  animation-delay: 0ms;
}

.hero .hero-logo {
  animation-delay: 120ms;
}

/* CA kutusu silindiği için bunu devreden çıkardık (kalsın zararı yok ama eleman yok) */
.hero .token-box {
  animation-delay: 240ms;
}

.hero #galleryBtn {
  animation-delay: 360ms;
}

.hero .icon-row {
  animation-delay: 480ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================
   HERO (CA KUTUSU YOKKEN FIX)
   ========================= */
.hero {
  min-height: 100svh; /* mobil address bar fix */
  padding: clamp(18px, 4vh, 56px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* default ortalı */
  gap: clamp(12px, 2.2vh, 22px);
}

.hero-slogan {
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 28px);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.hero-logo {
  margin: 0;
  width: min(420px, 70vw);
  max-width: 72vw;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.95;
}

/* (CA kutusunu şimdilik kaldırdın dedin, ama ileride geri koyarsan dursun) */
.token-box {
  margin: 0;
  width: min(680px, 92%);
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  display: none; /* ✅ CA kutusu yoksa tamamen gizle */
}

.token-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace;
}

.token-row {
  display: flex;
  gap: 12px;
}

.token-row input {
  flex: 1;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
  color: #fff;
  outline: none;
}

.token-row button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all .25s ease;
}

.token-row button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.token-box {
  position: relative;
  overflow: hidden;
}

/* mouse neredeyse orada parlayan glow */
.token-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;

  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
      rgba(190, 16, 16, 0.22),
      rgba(190, 16, 16, 0.10) 35%,
      rgba(0, 0, 0, 0) 70%);
}

.token-box.is-hover::after {
  opacity: 1;
}

.token-box.is-hover {
  border-color: rgba(190, 16, 16, 0.25);
}

.copy-feedback {
  cursor: default;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(4px);
  transition: all .3s ease;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* GO TO GALLERY BUTTON */
.btn-fwog {
  margin: 0;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(185, 16, 16, 0.342);
  color: rgba(255, 255, 255, 0.95);

  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;

  cursor: pointer;
  box-shadow: 0 10px 30px rgba(207, 16, 16, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.btn-fwog:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(243, 42, 42, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.btn-fwog:active {
  transform: translateY(0) scale(0.99);
  filter: brightness(0.98);
}

/* Icons */
.icon-row {
  margin: 0;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity .18s ease, transform .18s ease;
}

.icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* anchors */
.scroll-anchor {
  height: 1px;
  scroll-margin-top: 80px;
}

/* Manifesto panel */
.section {
  padding: 110px 24px 60px;
  display: flex;
  justify-content: center;
}

.panel {
  width: min(860px, calc(100vw - 48px));
  padding: 34px 34px;
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel h2 {
  margin: 0 0 14px 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.panel p {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-line;
  min-height: 160px;
}

/* MANIFESTO WRAP */
.manifesto-wrap {
  width: min(1200px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;

  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.manifesto-wrap.active {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-wrap .panel {
  min-width: 0;
  width: 100%;
}

.manifesto-wrap .panel p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* mobile’da alt alta */
@media (max-width: 900px) {
  .manifesto-wrap {
    grid-template-columns: 1fr;
  }
}

/* TYPE WALL */
.type-wall {
  position: relative;
  width: 100%;
  background: #000;
  padding: 90px 0 70px;
  overflow: hidden;
}

.tw-row {
  width: 100%;
  overflow: hidden;
  margin: 22px 0;
}

.tw-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;

  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(56px, 10vw, 160px);

  color: rgba(180, 0, 0, 0.10);
  text-shadow: 0 0 40px rgba(180, 0, 0, 0.06);

  animation: tw-marquee var(--dur, 50s) linear infinite;
  will-change: transform;
}

.tw-row[style*="--dir: -1"] .tw-track {
  animation-name: tw-marquee-rev;
}

.sep {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62em;
  color: rgba(180, 0, 0, 0.10);
  transform: translateY(-2px);
}

@keyframes tw-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes tw-marquee-rev {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.type-wall:hover .tw-track {
  color: rgba(194, 16, 16, 0.1);
}

@media (max-width: 780px) {
  .type-wall {
    padding: 70px 0 56px;
  }

  .tw-row {
    margin: 16px 0;
  }

  .tw-track {
    gap: 16px;
  }
}

/* GALLERY */
.gallery-section {
  padding: 40px 24px 140px;
  max-width: 1200px;
  margin: 150px auto;
}

.masonry {
  column-count: 4;
  column-gap: 18px;
}

.pin {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.pin img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transform: scale(1);
  transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}

.pin img:hover {
  transform: scale(1.03);
  filter: contrast(1.02);
  opacity: 0.96;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: auto;
  max-height: min(90vh, 860px);
  position: relative;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.50);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.75);
}

.lightbox.active .lightbox-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 74vh;
  object-fit: contain;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease;
}

.lightbox-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 80, 80, 0.65);
}

/* Responsive masonry */
@media (max-width: 1100px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 780px) {
  .hero-logo {
    width: min(360px, 78vw);
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 100svh;
    padding: 18px 16px;
    gap: 14px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-logo {
    width: min(300px, 82vw);
  }

  .icon-row {
    gap: 18px;
  }

  .masonry {
    column-count: 1;
  }
}

/* =========================
   LOW HEIGHT / 1366x720 FIX
   ========================= */

/* 820px ve altı yükseklik */
@media (max-height: 820px) {
  .hero {
    padding: 28px 20px;
    gap: 14px;
    justify-content: center;
  }

  .hero-logo {
    width: min(360px, 62vw);
  }
}

/* 720px ve altı yükseklik (1366x720) */
@media (max-height: 720px) {
  .hero {
    padding: 22px 18px;
    gap: 12px;
    justify-content: center; /* ✅ flex-start kaldırıldı */
  }

  .hero-slogan {
    font-size: 22px;
  }

  .hero-logo {
    width: min(320px, 58vw);
  }

  .btn-fwog {
    padding: 10px 18px;
    font-size: 15px;
  }

  .icon-row {
    gap: 18px;
  }

  .icon {
    width: 28px;
    height: 28px;
  }
}

/* Çok kısa ekranlar */
@media (max-height: 640px) {
  .hero {
    justify-content: flex-start; /* burada mantıklı */
    padding-top: 16px;
    gap: 10px;
  }

  .hero-slogan {
    font-size: 20px;
  }

  .hero-logo {
    width: min(280px, 52vw);
  }
}
