@font-face {
  font-family: 'PP Telegraf';
  src: url('/fonts/PPTelegraf-Regular.woff2') format('woff2'),
       url('/fonts/PPTelegraf-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('/fonts/PPTelegraf-Semibold.woff2') format('woff2'),
       url('/fonts/PPTelegraf-Semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/DMMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: pretty;
}

body {
  background: #010101;
  color: #fff;
  font-family: 'PP Telegraf', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

*, a, button, input, [role="button"] {
  cursor: none !important;
}

/* ── Custom Cursor ── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  pointer-events: none;
  z-index: 99999;
  will-change: left, top;
}

.custom-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.custom-cursor circle {
  transition: r 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              stroke 0.2s ease,
              stroke-opacity 0.2s ease;
}

.custom-cursor .cross {
  transform-origin: 28px 28px;
  transition: stroke 0.2s ease,
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor.hovering circle {
  r: 24;
  stroke: #00FFCC;
  stroke-opacity: 0.6;
}

.custom-cursor.hovering .cross {
  stroke: #00FFCC;
  transform: scale(0.5);
}

/* ── Animations: fade-in on load ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Animations: scroll-triggered ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shared typography ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 111px;
  border: 1px dashed rgba(221, 221, 221, 0.5);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(2.5px);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #DDD;
}

.badge.decode {
  visibility: hidden;
}

.badge.decode.decoding,
.badge.decode.decoded {
  visibility: visible;
}

.badge.decode.decoding {
  opacity: 0;
  animation: badgePop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 1.3px;
  color: #00FFCC;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.25s;
}

.cta:hover {
  opacity: 0.75;
}

.cta .icon-wrap {
  display: inline-flex;
  width: 16px;
  height: 16px;
  overflow: hidden;
  position: relative;
}

.cta .icon-wrap img {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover .icon-wrap img {
  animation: rocketLaunch 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rocketLaunch {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-120%); }
  40.01% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}

/* ── Follow Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(1, 1, 1, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  border: 1px dashed rgba(221, 221, 221, 0.25);
  border-radius: 12px;
  background: #0a0a0a;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal h3 {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: -0.96px;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16px;
  margin-bottom: 32px;
}

.modal-form {
  display: flex;
  gap: 12px;
}

.modal-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 111px;
  border: 1px dashed rgba(221, 221, 221, 0.35);
  background: rgba(255, 255, 255, 0.02);
  font-family: 'PP Telegraf', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.16px;
  color: rgba(255, 255, 255, 0.75);
  outline: none;
  transition: border-color 0.25s;
}

.modal-form input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.modal-form input:focus {
  border-color: rgba(0, 255, 204, 0.5);
}

.modal-form button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 111px;
  border: 1px dashed rgba(0, 255, 204, 0.4);
  background: rgba(0, 255, 204, 0.06);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #00FFCC;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
}

.modal-form button:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.6);
}

.modal-form button .icon-wrap {
  display: inline-flex;
  width: 16px;
  height: 16px;
  overflow: hidden;
  position: relative;
}

.modal-form button .icon-wrap img {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-form button:hover .icon-wrap img {
  animation: rocketLaunch 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 32px 0;
}

.modal-social-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.modal-socials {
  display: flex;
  gap: 16px;
}

.modal-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed rgba(221, 221, 221, 0.25);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s, border-color 0.25s;
}

.modal-socials a:hover {
  color: #00FFCC;
  border-color: rgba(0, 255, 204, 0.5);
}

/* ── Responsive: Shared ── */
@media (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }

  body, *, a, button, input, [role="button"] {
    cursor: auto !important;
  }

  .modal {
    max-width: calc(100vw - 32px);
    padding: 36px 28px;
    margin: 16px;
  }

  .modal-form {
    flex-direction: column;
  }

  .badge {
    padding: 6px 14px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 28px 20px;
  }
}
