/* KyivType Sans — Cyrillic-supporting font */
@import url('https://db.onlinewebfonts.com/c/5dbc415cdb542783ba48c36c25cd74ed?family=KyivType+Sans');

/* ===== FONTS ===== */


/* ===== RESET & BASE ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'KyivType Sans', sans-serif;
  background-color: #242424;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #3e3e3e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5e5e5e;
}

/* ===== PAGE WRAPPER & SCALING CONTEXT ===== */

.page-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 4659px;
  transform-origin: top left;
  overflow: hidden;
  background-color: #242424;
}

/* ===== HEADER / NAVBAR ===== */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 80px;
  z-index: 100;
  background: transparent;
}

.header.intro-active {
  z-index: 9999;
}

.header__logo {
  position: absolute;
  left: 112px;
  top: 22px;
  width: 57px;
  height: 51px;
  display: block;
  z-index: 100;
}

.header__logo.intro-animating {
  z-index: 9999;
}

.header__logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header__logo .logo-white {
  opacity: 0;
  z-index: 1001;
}

.header__logo .logo-black {
  opacity: 1;
  z-index: 1000;
}

.header__logo.intro-animating .logo-white {
  opacity: 1;
}

.header__logo.intro-animating .logo-black {
  opacity: 0;
}

/* Red logo overlay using pseudo-element */
.header__logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('cblogored.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  z-index: 1002;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header__logo:not(.intro-animating):hover::after {
  opacity: 1;
}

/* ===== INTRO PRELOADER OVERLAY ===== */
.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  background: #000000;
  z-index: 9998;
  opacity: 1;
  transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.intro-overlay.fade-out {
  opacity: 0;
}

.header__nav {
  position: absolute;
  right: 112px;
  top: 0;
  height: 80px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 50px;
  transition: opacity 0.5s ease;
}

.header.intro-active .header__nav {
  opacity: 0;
  pointer-events: none;
}

.header__nav li {
  display: inline-block;
}

.header__nav li a {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.header__nav li a:hover {
  opacity: 0.6;
}

.header__nav li a[href*="discord"]:hover {
  opacity: 1;
  color: #0900FF;
  text-shadow: 0.6px 0 0 #0900FF, -0.6px 0 0 #0900FF;
}

/* ===== HERO SECTION ===== */

.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #242424;
}

.hero__bg {
  position: absolute;
  top: -80px;
  left: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: absolute;
  z-index: 2;
  left: 112px;
  top: 500px;
  width: 1200px;
  height: 480px;
  color: #ffffff;
}

.hero__subtitle {
  font-family: serif;
  font-weight: 300;
  font-style: italic;
  font-size: 96px;
  color: #474747;
  line-height: 1.0;
  display: block;
}

.hero__title {
  font-family: serif;
  font-weight: 400;
  font-size: 160px;
  color: #474747;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 15px;
}

.hero__author {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #474747;
  margin-top: 25px;
  letter-spacing: 0.05em;
}

/* ===== IDEA SECTION ===== */

.idea {
  position: absolute;
  top: 1080px;
  left: 0;
  width: 1920px;
  height: 1080px;
  background: linear-gradient(180deg, #232222 0%, #050404 100%);
  overflow: visible;
  /* Allow character to overlap into Block 3 */
}

.idea__character {
  position: absolute;
  left: -1px;
  top: 209px;
  width: 715px;
  height: 873px;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
  object-position: left bottom;
}

.idea__right {
  position: absolute;
  left: 900px;
  top: 176px;
  width: 883px;
  height: auto;
  color: #ffffff;
}

.idea__label {
  position: absolute;
  left: 292px;
  top: 115px;
  font-family: serif;
  font-weight: 300;
  font-style: italic;
  font-size: 90px;
  color: #ffffff;
  line-height: 1.0;
  z-index: 2;
}

.idea__text {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  max-width: 883px;
  text-align: center;
}

/* ===== FOR WHO SECTION ===== */

.forwho {
  position: absolute;
  top: 2160px;
  left: 0;
  width: 1920px;
  height: 1080px;
  background: #e9e9e9;
  overflow: hidden;
}

.forwho__left {
  position: absolute;
  left: 99px;
  top: 162px;
  width: 800px;
  height: auto;
  color: #1a1a1a;
}

.forwho__title {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.forwho__text {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.8;
  color: #1a1a1a;
}

.forwho__character-wrapper {
  position: absolute;
  left: 836px;
  top: 175px;
  width: 1084px;
  height: 905px;
  z-index: 2;
  pointer-events: none;
}

.forwho__character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.forwho__character-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #e9e9e9 0%, rgba(233, 233, 233, 0) 50%);
  pointer-events: none;
}

/* ===== CTA SECTION ===== */

.cta {
  position: absolute;
  top: 3240px;
  left: 0;
  width: 1920px;
  height: 1080px;
  background: #474747;
  color: #ffffff;
  overflow: visible;
}

.cta__plane {
  position: absolute;
  left: 580px;
  top: 10px;
  width: 1400px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.cta__character-wrapper {
  position: absolute;
  left: 1142px;
  top: 278px;
  width: 670px;
  height: 888px;
  z-index: 3;
  pointer-events: none;
}

.cta__character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.cta__character-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #474747 0%, rgba(71, 71, 71, 0) 50%);
  pointer-events: none;
}

.cta__content {
  position: absolute;
  left: 102px;
  top: 200px;
  width: 800px;
  z-index: 4;
}

.cta__title {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 30px;
}

.cta__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}

.cta__step {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

a.cta__step {
  cursor: pointer;
}

a.cta__step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(12px);
}

.cta__step:not(a):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(6px);
}

.cta__step-num {
  font-family: serif;
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
  line-height: 1;
}

.cta__step:hover .cta__step-num {
  color: rgba(255, 255, 255, 0.95);
}

.cta__step-text {
  font-family: 'KyivType Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  line-height: 1.2;
}

.cta__step:hover .cta__step-text {
  color: #ffffff;
}

.cta__ip-button {
  display: inline-flex;
  align-items: center;
  margin-top: 50px;
  font-family: 'KyivType Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta__ip-button:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
  transform: translateY(-3px);
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 113px;
  border-radius: 12px;
  font-family: 'KyivType Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease, color 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn--discord {
  width: 271px;
  background: #445abd;
  color: #ffffff;
}

.btn--discord:hover {
  background: #ffffff;
  color: #0900FF;
  text-shadow: 0.8px 0 0 #0900FF, -0.8px 0 0 #0900FF;
}

.btn--ip {
  width: 490px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

/* ===== FOOTER ===== */

.footer {
  position: absolute;
  top: 4320px;
  left: 0;
  width: 1920px;
  height: 339px;
  background: #474747;
  color: rgba(255, 255, 255, 0.5);
}

.footer__line {
  position: absolute;
  left: 102px;
  font-family: 'KyivType Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.0;
  margin: 0;
}

.footer__line--bold {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

/* Footer text lines absolute coordinates */
.footer__line:nth-child(1) {
  top: 153px;
}

.footer__line:nth-child(2) {
  top: 204px;
}

.footer__line:nth-child(3) {
  top: 232px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(36, 36, 36, 0.95);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: 'KyivType Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: toastFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--fade-out {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-fade-in-left {
  opacity: 0 !important;
  transform: translateX(-80px);
  will-change: opacity, transform;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-fade-in-left.animated {
  opacity: 1 !important;
  transform: translateX(0);
}

.scroll-fade-in-right {
  opacity: 0 !important;
  transform: translateX(80px);
  will-change: opacity, transform;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-fade-in-right.animated {
  opacity: 1 !important;
  transform: translateX(0);
}