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

:root {
  --primary: #73e7ff;
  --secondary: #9274ff;
  --page-bg: #070910;
  --text: #f7f8ff;
  --muted: #a1a8bb;
  --background-image: url("assets/backgrounds/bg.png");
  --glass: rgba(14, 18, 29, 0.56);
  --line: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: transparent;
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.audio-toggle {
  position: fixed;
  z-index: 10;
  top: 24px;
  right: 26px;
  min-width: 96px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(10, 13, 22, .58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle.is-playing {
  border-color: rgba(115, 231, 255, .3);
  color: var(--text);
  background: rgba(13, 18, 29, .78);
}

.audio-toggle.has-error {
  color: #ff8e9e;
  border-color: rgba(255, 100, 125, .3);
}

.audio-toggle__bars {
  height: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.audio-toggle__bars i {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.audio-toggle.is-playing .audio-toggle__bars i {
  color: var(--primary);
  animation: audio-bar .8s ease-in-out infinite alternate;
}

.audio-toggle.is-playing .audio-toggle__bars i:nth-child(2) {
  animation-delay: -.5s;
}

.audio-toggle.is-playing .audio-toggle__bars i:nth-child(3) {
  animation-delay: -.2s;
}

.audio-toggle.is-playing .audio-toggle__bars i:nth-child(4) {
  animation-delay: -.65s;
}

.background {
  position: fixed;
  inset: -28px;
  z-index: -3;
  background-image: var(--background-image);
  background-position: center;
  background-size: cover;
  filter: blur(5px) saturate(.8) brightness(.9);
  transform: scale(1.035);
  animation: background-arrive 1.4s var(--ease) both;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(56, 111, 168, .09), transparent 38%),
    linear-gradient(180deg, rgba(3, 5, 10, .5), rgba(3, 5, 11, .62) 55%, rgba(3, 5, 10, .79));
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.landing {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 110px) 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  margin-bottom: clamp(34px, 6vh, 60px);
  text-align: center;
  animation: reveal .9s .08s var(--ease) both;
}

.brand__logo {
  display: block;
  width: min(510px, 70vw);
  max-height: 170px;
  margin: 0 auto -13px;
  object-fit: contain;
  transition: transform .55s var(--ease), filter .55s var(--ease);
  filter: drop-shadow(0 10px 32px rgba(89, 190, 255, .16));
}

.brand:hover .brand__logo {
  transform: translateY(-4px) scale(1.018);
  filter: drop-shadow(0 14px 38px rgba(100, 196, 255, .28));
}

.brand__fallback {
  margin-bottom: 8px;
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: .08em;
}

.brand__tagline {
  margin: 0 0 15px;
  color: rgba(235, 239, 250, .7);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brand__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 2s infinite;
}

.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  min-height: 210px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 36%),
    var(--glass);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: card-reveal .7s calc(.28s + var(--delay)) var(--ease) forwards;
  transition:
    border-color .35s var(--ease),
    background .35s var(--ease),
    box-shadow .35s var(--ease),
    transform .35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  transition: opacity .35s var(--ease);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(125, 220, 255, .34);
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), transparent 42%),
    rgba(14, 18, 29, .7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 0 38px rgba(102, 177, 255, .08);
}

.card:hover::after,
.card:focus-visible::after {
  opacity: .8;
}

.card__shine {
  position: absolute;
  inset: -80% auto auto -45%;
  width: 55%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: rotate(22deg);
  transition: left .8s var(--ease);
}

.card:hover .card__shine {
  left: 115%;
}

.card__icon {
  width: 45px;
  height: 45px;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  color: var(--primary);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 16px rgba(123, 220, 255, .035);
  transition: transform .35s var(--ease), color .35s;
}

.card:hover .card__icon {
  color: #fff;
  transform: translateY(-2px);
}

.card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon svg path:first-child:not(:last-child) {
  fill: none;
}

.card:first-child .card__icon svg {
  fill: currentColor;
  stroke: none;
}

.card__content {
  display: block;
  padding-right: 12px;
}

.card__title {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.card__text {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.card__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,.42);
  transition: color .3s, transform .3s var(--ease);
}

.card:hover .card__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.card__arrow svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.card__badge {
  position: absolute;
  top: 24px;
  right: 20px;
  padding: 5px 8px;
  border: 1px solid rgba(167, 151, 255, .2);
  border-radius: 999px;
  color: #bdb0ff;
  background: rgba(139, 115, 255, .08);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 20px 2px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(186, 193, 211, .48);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer nav {
  display: flex;
  gap: 26px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

.footer a:hover {
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 9, .77);
  backdrop-filter: blur(10px);
  cursor: default;
}

.modal__panel {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(112, 105, 255, .1), transparent 32%),
    rgba(11, 14, 23, .94);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  transform: translateY(15px) scale(.98);
  transition: transform .35s var(--ease);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.modal__close:hover {
  color: white;
}

.modal__close svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.modal__heading {
  padding: 8px 30px 20px 0;
}

.modal__heading--info {
  padding: 22px 8px 18px;
}

.modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
}

.modal h2 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.modal p,
.modal li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal p {
  margin: 0;
}

.modal ul {
  margin: 20px 0 0;
  padding: 16px 16px 16px 32px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.discord-widget {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #11131b;
}

.discord-widget iframe {
  display: block;
  width: 100%;
  height: min(420px, 48vh);
}

.modal__action {
  min-height: 48px;
  margin-top: 14px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(127, 222, 255, .18);
  border-radius: 13px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(78, 175, 216, .13), rgba(122, 97, 218, .13));
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}

.modal__action:hover {
  border-color: rgba(127, 222, 255, .4);
  transform: translateY(-2px);
}

.modal__action svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.modal-open {
  overflow: hidden;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes card-reveal {
  to { opacity: 1; transform: none; }
}

@keyframes background-arrive {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.035); }
}

@keyframes pulse {
  50% { opacity: .45; box-shadow: 0 0 4px var(--primary); }
}

@keyframes audio-bar {
  from { height: 3px; }
  to { height: 13px; }
}

@media (max-width: 900px) {
  .landing {
    padding-top: 70px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .audio-toggle {
    top: 14px;
    right: 14px;
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .audio-toggle > span:last-child {
    display: none;
  }

  .landing {
    width: min(100% - 28px, 460px);
    min-height: auto;
    padding: 58px 0 32px;
  }

  .brand {
    margin-bottom: 34px;
  }

  .brand__logo {
    width: min(360px, 88vw);
  }

  .brand__tagline {
    font-size: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    min-height: 132px;
    padding: 20px;
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    align-items: center;
    gap: 16px;
  }

  .card__icon {
    margin: 0;
  }

  .card__text {
    line-height: 1.5;
  }

  .card__arrow {
    position: static;
  }

  .card__badge {
    top: 13px;
    right: 14px;
  }

  .footer {
    width: calc(100% - 28px);
    padding-bottom: 24px;
    flex-direction: column;
    gap: 17px;
    text-align: center;
  }

  .footer nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal__panel {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
