@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --yellow: #ffd500;
  --yellow-dark: #e6bd00;
  --yellow-soft: rgba(255, 213, 0, 0.12);

  --black: #090909;
  --black-light: #111111;
  --gray-dark: #181818;
  --gray: #262626;
  --gray-light: #a9a9a9;

  --white: #ffffff;
  --danger: #ff5353;

  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--white);
  background: var(--black);

  font-family: "Inter", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

body.modal-open {
  overflow: hidden;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 82px;
  padding: 0 7%;

  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.logo-duck,
.footer-logo span {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a,
.nav-button {
  position: relative;

  border: none;
  color: #d6d6d6;
  background: transparent;

  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-button:hover {
  color: var(--yellow);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;

  width: 0;
  height: 2px;
  margin: auto;

  content: "";
  background: var(--yellow);

  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-button {
  display: none;

  border: none;
  color: var(--white);
  background: none;

  font-size: 1.7rem;
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 850px;
  padding: 150px 7% 100px;

  background-image: url("main_pic.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.98) 0%,
      rgba(5, 5, 5, 0.84) 48%,
      rgba(5, 5, 5, 0.3) 100%
    ),
    linear-gradient(0deg, var(--black) 0%, transparent 26%);
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 760px;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 22px;
  padding: 9px 15px;

  border: 1px solid rgba(255, 213, 0, 0.28);
  border-radius: 100px;
  color: var(--yellow);
  background: rgba(255, 213, 0, 0.08);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: #2af083;
  box-shadow: 0 0 12px rgba(42, 240, 131, 0.9);
}

.hero h1 {
  max-width: 780px;

  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -6px;
}

.hero h1 span {
  display: block;
  color: var(--yellow);
}

.hero-description {
  max-width: 680px;
  margin-top: 28px;

  color: #c7c7c7;

  font-size: 1.08rem;
  line-height: 1.8;
}

.server-addresses {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;

  max-width: 680px;
  margin-top: 34px;
}

.copy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 116px;
  padding: 19px 21px;

  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--white);
  background: rgba(22, 22, 22, 0.8);
  backdrop-filter: blur(14px);

  text-align: left;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.copy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 0, 0.6);
  background: rgba(30, 30, 30, 0.95);
}

.copy-label {
  margin-bottom: 8px;
  color: var(--yellow);

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.copy-card strong {
  overflow: hidden;

  width: 100%;
  margin-bottom: 6px;

  font-size: clamp(1rem, 2vw, 1.25rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-text {
  color: var(--gray-light);
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 25px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;
  padding: 0 28px;

  border-radius: 10px;

  font-size: 0.92rem;
  font-weight: 900;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.primary-button {
  border: 1px solid var(--yellow);
  color: var(--black);
  background: var(--yellow);
}

.primary-button:hover {
  transform: translateY(-3px);
  background: var(--yellow-dark);
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--white);
  background: var(--gray-dark);
}

.secondary-button:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

/* COMMON SECTIONS */

.features-section,
.ranks-section,
.community-section {
  padding: 110px 7%;
}

.section-heading {
  max-width: 750px;
  margin: 0 auto 60px;

  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;

  color: var(--yellow);

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.section-heading h2,
.community-content h2,
.modal-box h2 {
  margin-bottom: 18px;

  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
}

.section-heading p,
.community-content p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.75;
}

/* FEATURES */

.features-section {
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 213, 0, 0.07),
      transparent 35%
    ),
    var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  max-width: 1250px;
  margin: auto;
}

.feature-card {
  padding: 38px 32px;

  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 213, 0, 0.42);
}

.feature-icon {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;
  margin-bottom: 27px;

  border-radius: 13px;
  color: var(--black);
  background: var(--yellow);

  font-size: 1.4rem;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--gray-light);
  line-height: 1.7;
}

/* RANKS */

.ranks-section {
  background: var(--black-light);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 22px;

  max-width: 1250px;
  margin: auto;
}

.rank-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 575px;
  padding: 35px;

  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.01)
  );

  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.23);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-9px);
  border-color: rgba(255, 213, 0, 0.48);
}

.rank-card.popular {
  min-height: 625px;
  padding-top: 48px;

  border: 2px solid var(--yellow);
  background:
    radial-gradient(circle at top, rgba(255, 213, 0, 0.15), transparent 43%),
    #161616;

  box-shadow: 0 24px 80px rgba(255, 213, 0, 0.1);
}

.popular-label {
  position: absolute;
  top: -16px;
  left: 50%;

  padding: 8px 20px;
  transform: translateX(-50%);

  border-radius: 100px;
  color: var(--black);
  background: var(--yellow);

  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rank-small-title {
  display: block;
  margin-bottom: 13px;

  color: var(--gray-light);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.rank-top h3 {
  color: var(--yellow);
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.rank-price {
  display: flex;
  align-items: flex-start;

  margin-top: 18px;
  padding-bottom: 28px;

  border-bottom: 1px solid var(--border);
}

.currency {
  margin-top: 9px;

  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 900;
}

.price {
  font-size: 3.3rem;
  font-weight: 900;
  letter-spacing: -3px;
}

.period {
  align-self: flex-end;

  margin-bottom: 7px;
  margin-left: 8px;

  color: var(--gray-light);
  font-size: 0.7rem;
  font-weight: 800;
}

.rank-features {
  display: flex;
  flex-direction: column;
  gap: 17px;

  margin: 29px 0;
  list-style: none;
}

.rank-features li {
  position: relative;

  padding-left: 28px;
  color: #d2d2d2;

  font-size: 0.91rem;
  line-height: 1.4;
}

.rank-features li::before {
  position: absolute;
  top: 1px;
  left: 0;

  display: grid;
  place-items: center;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  color: var(--black);
  background: var(--yellow);

  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.buy-button {
  width: 100%;
  min-height: 53px;
  margin-top: auto;

  border: 1px solid var(--yellow);
  border-radius: 10px;
  color: var(--black);
  background: var(--yellow);

  font-weight: 900;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.buy-button:hover {
  transform: translateY(-3px);
  background: var(--yellow-dark);
}

.purchase-note {
  margin-top: 35px;

  color: #777777;
  font-size: 0.78rem;
  text-align: center;
}

/* COMMUNITY */

.community-section {
  background:
    linear-gradient(90deg, rgba(255, 213, 0, 0.07), rgba(255, 213, 0, 0.015)),
    var(--black);
}

.community-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  max-width: 1250px;
  margin: auto;
  padding: 58px;

  border: 1px solid rgba(255, 213, 0, 0.23);
  border-radius: 24px;
  background: #151515;
}

.community-content > div:first-child {
  max-width: 700px;
}

.community-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-width: 210px;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 35px 7%;

  border-top: 1px solid var(--border);
  color: #777777;
  background: #070707;

  font-size: 0.75rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

/* MODALS */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: grid;
  place-items: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-background {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(9px);
}

.modal-box {
  position: relative;
  z-index: 2;

  overflow-y: auto;

  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  padding: 45px;

  border: 1px solid rgba(255, 213, 0, 0.33);
  border-radius: 22px;
  background: #151515;
  box-shadow: var(--shadow);

  transform: translateY(25px);
  transition: transform 0.2s ease;
}

.modal.show .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 20px;

  width: 38px;
  height: 38px;

  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--white);
  background: var(--gray);

  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--black);
  background: var(--yellow);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-top: 30px;
}

.rule {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.rule span {
  display: grid;
  flex-shrink: 0;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 10px;
  color: var(--black);
  background: var(--yellow);

  font-size: 0.8rem;
  font-weight: 900;
}

.rule p {
  color: #d0d0d0;
  line-height: 1.5;
}

.purchase-description {
  margin-bottom: 28px;

  color: var(--gray-light);
  line-height: 1.7;
}

.purchase-description strong {
  color: var(--yellow);
}

.purchase-modal-box label {
  display: block;
  margin-bottom: 9px;

  color: #d7d7d7;
  font-size: 0.82rem;
  font-weight: 800;
}

.purchase-modal-box input {
  width: 100%;
  height: 54px;
  padding: 0 16px;

  border: 1px solid var(--border);
  outline: none;
  border-radius: 10px;
  color: var(--white);
  background: #202020;

  transition: border-color 0.2s ease;
}

.purchase-modal-box input:focus {
  border-color: var(--yellow);
}

.purchase-confirm {
  margin-top: 20px;
}

.username-error {
  min-height: 20px;
  margin-top: 8px;

  color: var(--danger);
  font-size: 0.76rem;
}

.payment-warning {
  margin-top: 16px;

  color: #727272;
  font-size: 0.71rem;
  line-height: 1.6;
  text-align: center;
}

/* NOTIFICATION */

.notification {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 5000;

  padding: 14px 21px;
  transform: translateY(100px);

  border: 1px solid rgba(255, 213, 0, 0.45);
  border-radius: 10px;
  color: var(--black);
  background: var(--yellow);

  font-size: 0.85rem;
  font-weight: 900;

  visibility: hidden;
  opacity: 0;

  transition: 0.25s ease;
}

.notification.show {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

/* TABLET */

@media (max-width: 1000px) {
  .rank-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .rank-card,
  .rank-card.popular {
    min-height: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .community-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-buttons {
    flex-direction: row;
    width: 100%;
  }

  .community-buttons > * {
    flex: 1;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .navbar {
    height: 72px;
    padding: 0 5%;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 15px 5% 25px;

    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.98);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a,
  .nav-button {
    width: 100%;
    padding: 15px;

    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero {
    min-height: 800px;
    padding: 125px 5% 80px;
    background-position: center;
  }

  .hero-overlay {
    background: linear-gradient(rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.97));
  }

  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
    letter-spacing: -4px;
  }

  .server-addresses {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons > * {
    width: 100%;
  }

  .features-section,
  .ranks-section,
  .community-section {
    padding: 80px 5%;
  }

  .rank-card,
  .rank-card.popular {
    padding: 30px 24px;
  }

  .community-content {
    padding: 35px 25px;
  }

  .community-buttons {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .modal-box {
    padding: 40px 23px 25px;
  }

  .notification {
    right: 15px;
    bottom: 15px;
    left: 15px;

    text-align: center;
  }
}
