:root {
  --color-text-white: #fff;
  --color-text-light: #d0d0d0;
  --color-text-gray: #b0b0b0;
  --color-text-orange: #f9ae0c;

  --color-red-500: #edb9b8;
  --color-red-600: #962f20;

  --color-green-500: #a6cd63;
  --color-green-600: #3d4b27;

  --color-blue-500: #71b9ed;
  --color-blue-600: #1d425f;

  --color-card-background: rgba(21, 21, 21, 0.97);
  --color-card-light-background: rgba(32, 32, 32, 0.97);
  --color-card-stroke: #333333;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clickable {
  position: relative;
  user-select: none;
  cursor: pointer;
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: ripple-effect 0.3s ease-out;
  pointer-events: none;
}

.rustonix-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--color-card-background);
  border: 1px solid var(--color-card-stroke);
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transform: translateX(calc(100% + 32px));
  transition: 0.5s ease-in-out;
}

.rustonix-notification.active {
  transform: none;
}

.rustonix-notification-title {
  font-size: 18px;
  color: var(--color-text-white);
}

.rustonix-notification-text {
  font-size: 16px;
  color: var(--color-text-gray);
}

.rustonix-actions {
  display: flex;
  width: 100%;
  gap: 24px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
}

.button.green {
  background-color: var(--color-green-600);
  color: var(--color-green-500);
}

.button.blue {
  background-color: var(--color-blue-600);
  color: var(--color-blue-500);
}

.button.red {
  background-color: var(--color-red-600);
  color: var(--color-red-500);
}

.rustonix-actions .button {
  width: 33.33%;
  transition: 0.15s ease-in-out;
}

.rustonix-actions .button.green:hover {
  box-shadow: var(--color-green-500) 0px 0px 2px 1px;
}

.rustonix-actions .button.blue:hover {
  box-shadow: var(--color-blue-500) 0px 0px 2px 1px;
}

.rustonix-actions .button.red:hover {
  box-shadow: var(--color-red-500) 0px 0px 2px 1px;
}

@keyframes ripple-effect {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  appearance: none;
  text-decoration: none;
  list-style: none;
}

button {
  background: none;
  cursor: pointer;
  user-select: none;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
  user-select: none;
}

img {
  user-select: none;
  pointer-events: none;
}

html {
  background: #151515;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

body {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-gray);
}

body::after {
  content: "";
  background-image: url("./src/assets/images/texture.png");
  position: fixed;
  inset: 0px;
  z-index: 500;
  pointer-events: none;
  opacity: 0.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-white);
}

::selection {
  background-color: var(--color-green-600);
  color: var(--color-green-500);
}

.rustonix-background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.rustonix-background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rustonix-background-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%),
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 60%
    ),
    url("./src/assets/images/texture.png") repeat;
  opacity: 0.5;
}

.rustonix-landing-wrapper {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.rustonix-landing-content-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  max-width: 860px;
  width: 100%;
  background: var(--color-card-background);
  border: 1px solid var(--color-card-stroke);
}

.rustonix-server {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rustonix-server-logo {
  width: 80px;
  height: 80px;
  transition: 1s ease-in-out;
}

.rustonix-server-logo:hover {
  transform: rotate(360deg);
}

.rustonix-server-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rustonix-server-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rustonix-server-name h1 {
  font-size: 32px;
  line-height: 100%;
  color: var(--color-text-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.rustonix-server-name p {
  font-size: 20px;
  line-height: 100%;
  color: var(--color-text-orange);
  text-shadow: 0px 0px 2px rgba(255, 197, 71, 0.2);
}

.rustonix-status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.rustonix-status-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-green-500);
  animation: statusCircleOutline 1.5s infinite;
}

.rustonix-status-details {
  font-size: 18px;
  color: var(--color-text-gray);
}

.rustonix-status-online {
  color: var(--color-text-orange);
  text-shadow: 0px 0px 4px rgba(255, 197, 71, 0.2);
}

.rustonix-connect-ip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background-color: var(--color-card-light-background);
  border: 1px solid var(--color-card-stroke);
}

.rustonix-connect-ip-text {
  font-size: 16px;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.rustonix-connect-ip-button {
  opacity: 0.7;
  transition: 0.15s ease-in-out;
}

.rustonix-connect-ip-button:hover {
  opacity: 1;
  transform: scale(1.2);
}

.rustonix-wipe-info {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.rustonix-info-card {
  width: 100%;
  background-color: var(--color-card-light-background);
  border: 1px solid var(--color-card-stroke);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rustonix-info-card h2 {
  font-size: 16px;
  text-transform: uppercase;
  line-height: 100%;
  color: var(--color-text-gray);
}

.rustonix-info-card time {
  font-size: 16px;
  text-transform: uppercase;
  line-height: 100%;
  color: var(--color-green-500);
}

.rustonix-promo-requirements {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  color: var(--color-text-light);
  background: var(--color-card-light-background);
  border: 1px solid var(--color-card-stroke);
  padding: 24px;
}

.rustonix-promo-requirements.rules {
  font-size: 15px;
}

.rustonix-promo-requirements span {
  color: var(--color-green-500);
}

.rustonix-promo-requirements b {
  color: var(--color-green-500);
  font-weight: 400;
}

.rustonix-promo-requirements a {
  color: var(--color-text-orange);
  cursor: pointer;
  text-decoration: underline;
}

.rustonix-promo-requirements a:hover {
  text-decoration: none;
}

.promo-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-card-stroke);
}

.promo-table th {
  font-weight: 400;
  padding: 12px 24px;
  background-color: var(--color-green-600);
  color: var(--color-green-500);
  text-align: left;
  width: 50%;
}

.promo-table th:first-child {
  border-right: 1px solid var(--color-card-stroke);
}

.promo-table tr {
  border-bottom: 1px solid var(--color-card-stroke);
}

.promo-table td {
  font-weight: 400;
  padding: 12px 24px;
  background-color: var(--color-card-light-background);
  color: var(--color-text-gray);
  text-align: left;
  width: 50%;
}

.promo-table td:first-child {
  border-right: 1px solid var(--color-card-stroke);
}

.rustonix-landing-content-card.promo {
  max-height: 720px;
  overflow-y: auto;
  justify-content: flex-start;
  scroll-behavior: smooth;
  scroll-padding: 50%;
}

.rustonix-landing-content-card.promo::-webkit-scrollbar {
  width: 8px;
}

.rustonix-landing-content-card.promo::-webkit-scrollbar-track {
  background: var(--color-card-light-background);
}

.rustonix-landing-content-card.promo::-webkit-scrollbar-thumb {
  background: var(--color-green-600);
}

.payments-info p {
  font-size: 14px;
  text-align: center;
}

.promo-files {
  width: 100%;
  display: flex;
  gap: 24px;
}

.promo-files a {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 50%;
  background: var(--color-card-light-background);
  border: 1px solid var(--color-card-stroke);
  padding: 24px;
  text-transform: uppercase;
  transition: 0.15s ease-in-out;
}

.promo-files a > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-files a .title {
  font-size: 16px;
  color: var(--color-text-white);
}

.promo-files a .file-name {
  font-size: 14px;
  color: var(--color-text-gray);
}

.promo-files a svg {
  transition: 0.15s ease-in-out;
}

.promo-files a svg path {
  fill: var(--color-green-500);
}

.promo-files a:hover {
  background: var(--color-green-600);
  border-color: var(--color-green-500);
}

.promo-files a:hover svg {
  transform: scale(1.1);
}

.promo-cta {
  position: fixed;
  z-index: 50;
  bottom: 32px;
  left: 32px;
  background: var(--color-card-background);
  border: 1px solid var(--color-card-stroke);
  opacity: 0.7;
  transition: 0.15s ease-in-out;
}

.promo-cta:hover {
  opacity: 1;
  transform: scale(1.1);
}

.promo-cta a {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  padding: 12px 24px;
}

.promo-cta a > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-cta a .title {
  color: var(--color-text-white);
  font-size: 18px;
}

.promo-cta a .description {
  font-size: 14px;
}

@keyframes statusCircleOutline {
  0% {
    box-shadow: 0 0 0 0 #a6cd6395;
  }
  100% {
    box-shadow: 0 0 0 8px rgba(166, 205, 99, 0);
  }
}

@media screen and (max-width: 920px) {
  body::after {
    background-image: url("./src/assets/images/texture-mobile.png");
  }

  .rustonix-background-video {
    display: none;
  }

  .rustonix-landing-wrapper {
    position: relative;
    padding: 0;
  }

  .rustonix-landing-content-card {
    max-width: 100%;
    border: none;
    background: none;
    padding: 0;
    padding-bottom: 120px;
  }

  .rustonix-server {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: url("./src/assets/images/rustonix-mobile-bg.webp") no-repeat
      center center / cover;
  }

  .rustonix-server-name h1 {
    text-align: center;
    font-size: 24px;
    line-height: 120%;
  }

  .rustonix-server-name h1 span {
    display: block;
  }

  .rustonix-server-name {
    gap: 16px;
    align-items: center;
  }

  .rustonix-server-name p {
    font-size: 16px;
    max-width: 240px;
    text-align: center;
    line-height: 130%;
  }

  .rustonix-server-name p span {
    display: block;
  }

  .rustonix-status {
    justify-content: center;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .rustonix-status-details {
    font-size: 15px;
  }

  .rustonix-connect-ip {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .rustonix-connect-ip-text {
    line-height: 120%;
  }

  .rustonix-wipe-info {
    flex-direction: column;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .rustonix-actions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    gap: 20px;
    justify-content: center;
  }

  .rustonix-actions .button {
    font-size: 12px;
    line-height: 130%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: linear-gradient(
      135deg,
      rgba(28, 28, 28, 0.1),
      rgba(33, 33, 33, 0.05)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 33.33%;
    padding: 14px 2px;
  }

  .rustonix-actions .button .space {
    display: none;
  }

  .rustonix-actions .button span {
    display: block;
  }

  .rustonix-notification {
    padding: 16px;
    right: 20px;
    top: 20px;
    bottom: auto;
  }

  .rustonix-notification-title {
    font-size: 16px;
  }

  .rustonix-notification-text {
    font-size: 14px;
  }

  .rustonix-landing-content-card.promo {
    max-height: none;
    scroll-padding: 60px;
  }

  .rustonix-promo-requirements {
    margin: 0 20px;
    font-size: 16px;
    padding: 16px;
  }

  .rustonix-promo-requirements > div {
    line-height: 130%;
  }

  .promo-files {
    flex-direction: column;
    padding: 0 20px;
  }

  .promo-files a {
    width: 100%;
  }

  .promo-table {
    margin: 0 20px;
    font-size: 14px;
    width: calc(100% - 40px);
  }

  .payments-info p {
    padding: 0 20px;
  }

  .promo-cta {
    position: inherit;
    top: auto;
    left: auto;
    margin: 0 20px;
    opacity: 1;
    background: var(--color-blue-600);
    border: 1px solid var(--color-blue-500);
    z-index: inherit;
  }

  .promo-cta:hover {
    transform: none;
  }

  .promo-cta a {
    padding: 16px;
  }

  .promo-cta a.back-to-home {
    align-items: center;
    justify-content: center;
  }

  .promo-cta a .title {
    font-size: 14px;
    color: var(--color-blue-500);
    text-transform: uppercase;
  }

  .promo-cta a .description {
    color: var(--color-text-light);
  }

  .promo .promo-cta img {
    display: none;
  }
}

@media screen and (max-width: 920px) {
  .promo-cta img {
    display: none;
  }
}
