@font-face {
  font-family: 'GenshinFont';
  src: url('../fonts/zhcn.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {

  --clr-bg: #FDF7E4;
  --clr-bg-alt: #F3EEDC;
  --clr-surface: #FFFFFF;
  --clr-border: #E0DBCA;

  --clr-text: #555555;
  --clr-text-muted: #8A8578;
  --clr-text-heading: #555555;

  --clr-accent: #b5a642;

  --clr-accent-hover: #d4c24f;
  --clr-danger: #c44b3f;

  --ff-base: 'Roboto Condensed', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-heading: 'GenshinFont', var(--ff-base);
  --ff-comfortaa: 'Comfortaa', var(--ff-base);

  --fs-xs: clamp(0.700rem, 0.65rem + 0.25vw, 0.750rem);
  --fs-sm: clamp(0.813rem, 0.75rem + 0.30vw, 0.875rem);
  --fs-base: clamp(0.938rem, 0.88rem + 0.30vw, 1.000rem);
  --fs-md: clamp(1.125rem, 1.00rem + 0.50vw, 1.250rem);
  --fs-lg: clamp(1.500rem, 1.20rem + 1.00vw, 1.875rem);
  --fs-xl: clamp(2.000rem, 1.50rem + 2.00vw, 2.750rem);
  --fs-2xl: clamp(2.500rem, 1.80rem + 3.00vw, 3.750rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-base: 1.6;
  --lh-loose: 1.8;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --container-max: 1280px;
  --container-padding: var(--space-2xl);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);

  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}



.cursor-distortion {
  position: fixed;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: url(#distort-filter);
  backdrop-filter: url(#distort-filter);
  -webkit-backdrop-filter: url(#distort-filter);
  background: transparent;
  -webkit-mask-image: radial-gradient(circle, transparent 25%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(circle, transparent 25%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.cursor-distortion.is-active {
  opacity: 1;
}

/* Cursor sparkles */
.magical-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  user-select: none;
  animation: sparkle-fade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  color: var(--clr-text-heading);
  line-height: var(--lh-tight);
  font-weight: normal;
}

h1 {
  font-size: var(--fs-2xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

p+p {
  margin-top: var(--space-md);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.footer>.container {
  height: 100%;
  padding-inline: 0;
  max-width: 1200px;
}

.section {
  padding-block: var(--space-4xl);
}

.section__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


.hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  z-index: 2;
  pointer-events: none;
  transition: justify-content var(--transition-base), padding-bottom var(--transition-base);
}

@media (max-width: 768px) {
  .hero__content {
    justify-content: flex-end;
    padding-bottom: 80px;
  }
}

.hero__content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 777px;
  height: 317px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(64, 67, 79, 0.8) 0%, rgba(64, 67, 79, 0) 100%);
  z-index: -1;
  pointer-events: none;
  transition: top var(--transition-base), transform var(--transition-base);
}

@media (max-width: 768px) {
  .hero__content::before {
    top: auto;
    bottom: 250px;
    /* Centered behind the content block */
    transform: translate(-50%, 50%);
  }
}

/* ═══════════════════════════════════════════
   Desktop Header
   ═══════════════════════════════════════════ */

.desktop-header {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.desktop-header__inner {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 64px;
  background: url('../img/header.svg') center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: auto;
}

.desktop-header__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 56px;
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.header__social-link:hover,
.header__social-link:focus-visible {
  opacity: 0.8;
  transform: translateY(-2px);
}

.desktop-header__server {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.desktop-header__ip-label {
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  color: #FFFFFF;
}

.desktop-header__copy-group {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.desktop-header__copy-group:hover,
.desktop-header__copy-group:focus-visible {
  opacity: 0.8;
}

.desktop-header__ip-value {
  font-family: var(--ff-heading);
  font-size: 16px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.desktop-header__copy-icon {
  margin-left: 6px;
}

.desktop-header__tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  font-family: var(--ff-comfortaa);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.desktop-header__tooltip.is-active {
  opacity: 1;
}

.desktop-header__version {
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  color: #FFFFFF;
  margin-left: 10px;
  white-space: nowrap;
}

.desktop-header__donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 8px 12px;
  margin-right: 8px;
  background-color: #FDF7E4;
  border-radius: 0;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.desktop-header__donate:hover,
.desktop-header__donate:focus-visible {
  background-color: #FFF1C6;
  transform: translateY(-1px);
}

.desktop-header__donate-text {
  font-family: var(--ff-heading);
  font-size: 16px;
  color: #40434F;
  white-space: nowrap;
}

.desktop-header__donate-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 1250px) {
  .desktop-header__version {
    display: none;
  }
}

@media (max-width: 900px) {
  .desktop-header__server {
    position: static;
    transform: none;
    margin-left: 24px;
    left: auto;
  }

  .desktop-header__inner {
    justify-content: flex-start;
  }

  .desktop-header__donate {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .desktop-header__inner {
    background-size: cover;
    padding: 0 16px;
  }

  .desktop-header__socials {
    padding-left: 16px;
  }

  .desktop-header__donate {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }
}

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-image: url('../img/header.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding-top: 0px;
  /* Lowering icons slightly */
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
}

.mobile-header__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-info {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 16px;
  z-index: 99;
  pointer-events: none;
}

.mobile-info>* {
  pointer-events: auto;
}

.mobile-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 80px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(64, 67, 79, 0.6) 0%, rgba(64, 67, 79, 0) 100%);
  z-index: -1;
}

.mobile-info__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-info__ip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-info .desktop-header__ip-value,
.mobile-info .desktop-header__ip-label {
  font-size: 14px;
  /* Slightly smaller for mobile if needed, or keep 16px */
}

/* ═══════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════ */

.hero__character {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90vh;
  max-width: none;
  z-index: 1;
  pointer-events: none;
  animation: float-character 6s ease-in-out infinite;
}

@keyframes float-character {
  0% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 15px));
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__logo {
  height: 80px;
  width: auto;
  pointer-events: auto;
}

.hero__subtitle {
  font-family: var(--ff-heading);
  font-weight: normal;
  font-size: 80px;
  line-height: 97px;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-align: center;
}

.br-mobile {
  display: none;
}

.hero__cta {
  position: relative;
  display: inline-block;
  margin-top: 24px;

  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-1px);
}

.hero__cta-default,
.hero__cta-hover {
  display: block;
  width: 100%;
  height: auto;
}

.hero__cta-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__cta--secondary .hero__cta-text {
  color: #40434F;
  text-shadow: none;
  transform: translateY(2px);
  font-size: 16px;
}

.hero__cta:hover .hero__cta-hover,
.hero__cta:focus-visible .hero__cta-hover {
  opacity: 1;
}

.show-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .show-mobile-only {
    display: inline-block !important;
  }
}

.hero__cta-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #FFF2B2;
  text-shadow: 0 0 12px rgba(255, 242, 178, 0.2);
  pointer-events: none;
  transition: color 0.3s ease;
  transform: translateY(4px);
}

@media (max-width: 768px) {
  .hero__image {
    height: 70%;

    object-position: center;

  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }

  .hero__cta {
    margin-top: 0;
  }

  .hero__cta-text {
    font-size: 16px;
    /* Match secondary button size */
  }

  .hero__subtitle {
    font-size: 48px;
    line-height: normal;
  }

  .br-desktop {
    display: none;
  }

  .br-mobile {
    display: inline;
  }

  .hero__character {
    height: 60vh;
  }
}

.about {
  position: relative;
  z-index: 10;
  margin-top: 80px;
}

.about::before,
.about::after {
  content: "";
  position: absolute;
  top: 50%;
  /* Center relative to the section */
  width: 688px;
  height: 688px;
  /* Assuming it's roughly square, adjust if needed */
  background: url('../img/ornaments.svg') center / contain no-repeat;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1150px) {

  .about::before,
  .about::after {
    display: none;
  }
}

.about::before {
  left: 0;
  transform: translateY(-50%);
}

.about::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.about__container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1150px;
  margin-inline: auto;
  padding-inline: 24px;
}

.about__cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.about__card {
  --cutout-radius: 48px;
  position: relative;
  width: 100%;
  min-height: 452px;
  height: auto;
  background-color: #E2E4E9;
  /* Top-right cutout for the whole card */
  -webkit-mask-image: radial-gradient(circle var(--cutout-radius) at 100% 0, transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));
  mask-image: radial-gradient(circle var(--cutout-radius) at 100% 0, transparent var(--cutout-radius), black calc(var(--cutout-radius) + 0.5px));

  /* Reveal Animation Initial State */
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
  display: flex;
  flex-direction: column;
}

.about__card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 1024px) {
  .about__cards-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

.about__card-bg-top {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 226px;
  /* Fixed height for top part to keep it consistent */
  background-color: #ffffff;
  /* Top-right cutout for the top white half, with larger radius and offset mask center to preserve 1px border */
  -webkit-mask-image: radial-gradient(circle calc(var(--cutout-radius) + 1px) at calc(100% + 1px) -1px, transparent calc(var(--cutout-radius) + 1px), black calc(var(--cutout-radius) + 1.5px));
  mask-image: radial-gradient(circle calc(var(--cutout-radius) + 1px) at calc(100% + 1px) -1px, transparent calc(var(--cutout-radius) + 1px), black calc(var(--cutout-radius) + 1.5px));
  pointer-events: none;
}

.about__card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.about__card-image-wrap {
  height: 226px;
  /* Match the white background height */
  flex-shrink: 0;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Matching the inner white background mask */
  -webkit-mask-image: radial-gradient(circle calc(var(--cutout-radius) + 1px) at calc(100% + 1px) -1px, transparent calc(var(--cutout-radius) + 1px), black calc(var(--cutout-radius) + 1.5px));
  mask-image: radial-gradient(circle calc(var(--cutout-radius) + 1px) at calc(100% + 1px) -1px, transparent calc(var(--cutout-radius) + 1px), black calc(var(--cutout-radius) + 1.5px));
}

/* Draw the 4px borders on the wrapper */
.about__card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  /* Draw the top, left, and right straight borders. No bottom border needed. */
  box-shadow: inset 4px 4px 0 0 #E2E4E9, inset -4px 0 0 0 #E2E4E9;

  /* Draw the curved border precisely around the top-right cutout using a radial gradient.
     The parent wrapper's mask cuts out everything inside (radius + 1px), 
     so we draw the border right at the edge from (radius + 1px) up to (radius + 5px) for a 4px thickness. */
  background-image: radial-gradient(circle at calc(100% + 1px) -1px,
      transparent calc(var(--cutout-radius) + 1px),
      #E2E4E9 calc(var(--cutout-radius) + 1.2px),
      #E2E4E9 calc(var(--cutout-radius) + 5px),
      transparent calc(var(--cutout-radius) + 5.5px));
}

.about__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.about__card:nth-child(1) .about__card-image {
  /* Increase first image scale by another 20% on top of 1.3 */
  transform: scale(1.5);
}

.about__card:nth-child(2) .about__card-image {
  /* Shift focal point to the absolute left edge */
  transform: scale(1.4);
  object-position: left center;
  transform-origin: left center;
}

.about__card-text {
  flex-grow: 1;
  width: 100%;
  padding: 24px;
  /* Increased padding for better look on expanding cards */
  display: flex;
  flex-direction: column;
}

.about__card-title {
  font-family: var(--ff-heading);
  font-size: 24px;
  line-height: 32px;
  color: #40434F;
  margin: 0;
  margin-bottom: 12px;
}

.about__card-desc {
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  line-height: 24px;
  color: #40434F;
  margin: 0;
}

/* ═══════════════════════════════════════════
   Showcase Section (Third Block)
   ═══════════════════════════════════════════ */

.showcase {
  position: relative;
  width: 100%;
  padding-top: 300px;
  padding-bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  overflow: hidden;
}

@media (max-width: 768px) {
  .showcase {
    padding-top: 120px;
    padding-bottom: 80px;
  }
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/render-bg.png') center / cover no-repeat;
  z-index: -2;
  animation: showcaseZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes showcaseZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.showcase__title {
  font-family: var(--ff-heading);
  font-size: 56px;
  line-height: 72px;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  /* Ensure title sits above the glow */
}

.showcase__video-area {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  padding-inline: 24px;
}

/* The radial glow effect behind the video and title */
.showcase__video-area::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 1500px;
  height: calc(100% + 300px);
  background: radial-gradient(ellipse at center, rgba(99, 165, 243, 0.95) 0%, rgba(99, 165, 243, 0.5) 40%, rgba(99, 165, 243, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

.showcase__video-frame-wrap {
  position: relative;
  /* Fixed width as requested by user */
  width: 100%;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.showcase__video-frame-wrap:hover,
.showcase__video-frame-wrap:focus-visible {
  transform: translateY(-2px);
}

.showcase__video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* The frame is thickest on the left and right edges (the blue corners). Let's squeeze the width a bit more. */
  width: calc(100% - 6.5%);
  height: calc(100% - 4%);
  z-index: 1;
  /* Sits underneath the frame */
  border-radius: 0px;
  /* Slight rounding to fit frame */
  pointer-events: none;
  /* Prevents iframe from capturing clicks meant for the popup trigger */
}

.showcase__video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  /* Sits on top of everything */
}

/* Darkened overlay for the video preview */
.showcase__video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 6.5%);
  height: calc(100% - 4%);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.showcase__video-frame-wrap:hover .showcase__video-overlay {
  background-color: rgba(0, 0, 0, 0.2);
}

.showcase__play-btn {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
}

.showcase__play-btn svg {
  width: 100%;
  height: auto;
}

.showcase__video-frame-wrap:hover .showcase__play-btn {
  transform: scale(1.15);
}

.showcase__actions {
  display: flex;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
  /* Allows wrapping on smaller screens */
  padding-inline: 24px;
}

.showcase__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.showcase__btn:hover,
.showcase__btn:focus-visible {
  transform: translateY(-2px);
}

.showcase__btn-default,
.showcase__btn-hover {
  display: block;
  width: auto;
  height: auto;
  /* Making sure the buttons scale well on mobile */
  max-width: 100%;
}

.showcase__btn-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase__btn:hover .showcase__btn-hover,
.showcase__btn:focus-visible .showcase__btn-hover {
  opacity: 1;
}

.showcase__btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 16px;
  line-height: 24px;
  color: #FFF2B2;
  text-shadow: 0 0 12px rgba(255, 242, 178, 0.2);
  pointer-events: none;
  transform: translateY(2px);
  /* Adjusted for smaller text */
  text-align: center;
  padding-inline: 16px;
}

.showcase__btn--secondary .showcase__btn-text {
  color: #40434F;
  text-shadow: none;
  /* Secondary button likely doesn't need the yellow glow */
}

/* Custom text color for the secondary button if needed, but the audio didn't specify. Assuming same style. */





/* ═══════════════════════════════════════════
   Footer Section
   ═══════════════════════════════════════════ */

.footer {
  position: relative;
  width: 100%;
  min-height: 164px;
  height: auto;
  padding-block: 40px;
  background-image: url('../img/footer.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  z-index: 10;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 24px;
  position: relative;
}

@media (max-width: 1100px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-block: 40px;
    height: auto;
  }

  .footer__col {
    align-items: center;
    height: auto;
    width: 100%;
  }

  .footer__col--center {
    position: static;
    transform: none;
    order: -1;
    /* Stick to top as requested */
    margin-bottom: 8px;
  }

  .footer__server-info {
    flex-direction: column;
    gap: 8px;
  }

  .footer__payment-logos {
    justify-content: center;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 100%;
}

/* Left and Right column shared styling */
.footer__title,
.footer__text,
.footer__link {
  font-family: var(--ff-comfortaa);
  font-size: 14px;
  line-height: 18px;
  color: #FFFFFF;
  margin: 0;
  display: block;
}

.footer__title {
  margin-bottom: 4px;
}

.footer__link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #FFF1B2;
  text-decoration-color: #FFF1B2;
}

.footer__payment-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.footer__payment-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  background-color: #FFFFFF;
  padding: 4px 6px;
  border-radius: 4px;
}

/* Center column — centered relative to screen, not between left/right */
.footer__col--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  gap: 12px;
  height: auto;
  z-index: 2;
}

@media (max-width: 1100px) {
  .footer__col--center {
    position: static;
    transform: none;
  }
}

.footer__server-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  line-height: 20px;
}

.footer__info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__info-label {
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  color: #FFFFFF;
}

.footer__info-ip {
  font-family: var(--ff-heading);
  font-size: 16px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

/* Footer copy group — mirrors header copy-group */
.footer__copy-group {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.footer__copy-group:hover,
.footer__copy-group:focus-visible {
  opacity: 0.8;
}

.footer__tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  font-family: var(--ff-comfortaa);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.footer__tooltip.is-active {
  opacity: 1;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.footer__socials-link:hover,
.footer__socials-link:focus-visible {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer {
    height: auto;
    padding: 32px 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .footer__col {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .footer__server-info {
    flex-direction: column;
    gap: 8px;
  }
}



.video-modal,
.prereg-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open,
.prereg-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__overlay,
.prereg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(64, 66, 76, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-modal__close,
.prereg-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--clr-text-heading);
  font-size: 32px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.prereg-modal__close {
  top: 32px;
  right: 32px;
}

.prereg-modal__close img {
  width: 32px;
  height: 32px;
  display: block;
}

.video-modal__close:hover,
.prereg-modal__close:hover {
  opacity: 0.8;
}

.video-modal__iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;

  height: 0;
}

.video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.prereg-modal__content {
  position: relative;
  width: 1143px;
  max-width: 95vw;
  aspect-ratio: 1143 / 726;

  display: flex;
  align-items: center;
  justify-content: center;
}

.prereg-modal__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  pointer-events: none;
  z-index: 0;
}

.prereg-modal__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
}

.prereg-modal__title {
  font-family: var(--ff-heading);
  font-weight: normal;
  color: #40434F;
  text-transform: none;
  margin: 0 0 8px 0;
}

.prereg-modal__rate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-heading);
  font-weight: normal;
  font-size: 18px;
  color: #40434F;
  margin-bottom: 24px;
}

.prereg-modal__rate img {
  transform: translateY(-1px);
}

.donation-form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donation-form__inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.donation-form__input-wrapper {
  position: relative;
  width: 100%;
}

.donation-form__currency {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateY(1px);
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  color: #40434F;
  pointer-events: none;
  display: none;
}

.donation-form__mirror {
  position: absolute;
  top: 0;
  left: 16px;
  visibility: hidden;
  white-space: pre;
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  pointer-events: none;
}

.donation-form__input--amount:not(:placeholder-shown)+.donation-form__currency {
  display: block;
}

.donation-form__input--amount:not(:placeholder-shown) {
  padding-right: 56px;
}

.donation-form__input {
  width: 100%;
  height: 48px;
  background-color: rgba(64, 67, 79, 0.1);
  border: 1px solid rgba(64, 67, 79, 0.2);
  padding-inline: 16px;
  font-family: var(--ff-comfortaa);
  font-size: 16px;
  color: #40434F;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.donation-form__input::placeholder {
  color: rgba(64, 67, 79, 0.6);
}

.donation-form__input:focus {
  outline: none;
  border-color: rgba(64, 67, 79, 0.5);
  background-color: rgba(64, 67, 79, 0.15);
}

.donation-form__label {
  font-family: var(--ff-heading);
  font-weight: normal;
  font-size: 18px;
  color: #40434F;
  margin-bottom: 16px;
  text-transform: none;
}

.donation-form__payment-methods {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.payment-method {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #4B5262;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, outline 0.3s ease;
}

.payment-method.is-active {
  background-color: #40434F;
  outline: 4px solid #F2E8A1;
  outline-offset: 0;
  box-shadow: none;
  transform: scale(1.05);
  z-index: 2;
}

.payment-method__title {
  font-family: var(--ff-heading);
  font-weight: normal;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.payment-method__desc {
  font-family: var(--ff-comfortaa);
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0.7;
}

.donation-form__submit {
  transform: translateY(0);
}

/* Success Modal Styles */
.prereg-modal__inner--success {
  padding-block: 40px;
}

.success-icon {
  margin-bottom: 24px;
}

.success-modal__btn {
  margin-top: 32px;
}

.donation-form__submit .showcase__btn-text {
  font-size: 20px;
  line-height: 28px;
}

@media (max-width: 1024px) {
  .prereg-modal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prereg-modal__content {
    width: 100vw;
    min-height: 100vh;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .prereg-modal__bg {
    object-fit: fill;
    height: 100%;
    min-height: 100vh;
  }

  .prereg-modal__inner {
    padding: 60px 10%;
    /* More padding at top/bottom for scrollable view */
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .prereg-modal__close img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .prereg-modal__content {
    /* Styles inherited from 1024px query, just refining padding if needed */
    padding: 20px;
  }

  .prereg-modal__bg {
    object-fit: fill;
  }

  .prereg-modal__inner {
    padding: 0;
  }

  .prereg-modal__title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 12px;
  }

  .prereg-modal__desc {
    font-size: 14px;
    line-height: 20px;
  }

  .prereg-modal__desc br {
    display: none;
  }

  .prereg-modal__socials {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .prereg-modal__content {
    padding: 20% 5%;
  }

  .prereg-modal__title {
    font-size: 22px;
    line-height: normal;
  }

  .prereg-modal__desc {
    font-size: 13px;
    line-height: 18px;
  }
}





@media (max-width: 768px) {
  .about {
    margin-top: 40px;

  }

  .about__container {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 24px;
    padding-inline: 16px;

  }


}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--clr-accent);
}

.text-muted {
  color: var(--clr-text-muted);
}

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

@media (max-width: 1150px) {

  .about__desc br,
  .features__desc br,
  .world__desc br {
    display: none;
  }
}

@media (max-width: 1024px) {}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-xl);
  }

  .section {
    padding-block: var(--space-3xl);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-md);
  }
}




/* ═══════════════════════════════════════════
   Accessibility: Reduced Motion
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════
   Magical Cursor Sparkles
   ═══════════════════════════════════════════ */

.magical-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  user-select: none;
  opacity: 0;
  animation: sparkle-fade 1s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 40px)) scale(0) rotate(135deg);
  }
}