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

:root {
  color: #f8fbff;
  background: #020916;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  --ink: #f8fbff;
  --soft: rgba(231, 242, 255, 0.84);
  --muted: rgba(203, 219, 242, 0.68);
  --dim: rgba(171, 195, 224, 0.56);
  --cyan: #28f2ff;
  --blue: #2d8dff;
  --green: #49ec86;
  --violet: #8a6dff;
  --amber: #ffd15b;
  --coral: #ff6ca8;
  --surface: rgba(4, 24, 52, 0.72);
  --surface-strong: rgba(5, 30, 65, 0.82);
  --line: rgba(121, 210, 255, 0.25);
  --line-hot: rgba(108, 231, 255, 0.58);
  --shadow: 0 24px 80px rgba(0, 5, 18, 0.48);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body,
button,
a {
  font: inherit;
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #04132b 0%, #020916 38%, #020916 100%);
}

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

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  width: min(1368px, calc(100% - 144px));
  min-height: 72px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(6, 38, 80, 0.76), rgba(3, 19, 45, 0.7)),
    rgba(4, 23, 52, 0.72);
  box-shadow: 0 18px 62px rgba(0, 6, 20, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand,
.nav-links,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 14px;
  justify-self: start;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(33, 184, 255, 0.46);
}

.nav-links {
  gap: 52px;
  justify-self: center;
  color: var(--soft);
  font-size: 17px;
  font-weight: 500;
}

.nav-links a {
  padding: 10px 0;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  text-shadow: 0 0 20px rgba(40, 242, 255, 0.55);
  outline: none;
}

.nav-cta {
  justify-content: center;
  justify-self: end;
  gap: 10px;
  min-width: 140px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(88, 244, 255, 0.7);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #24e6ba 0%, #25a6ff 100%);
  color: #f9fdff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 34px rgba(23, 196, 255, 0.42);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.download-button:hover,
.download-button:focus-visible,
.copy-ip-button:hover,
.copy-ip-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(34, 211, 255, 0.45), 0 18px 42px rgba(0, 5, 18, 0.38);
  outline: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
}

#download,
#modpack,
#news,
#start {
  scroll-margin-top: 104px;
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: #04122a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 7, 19, 0.9) 0%, rgba(3, 13, 33, 0.68) 28%, rgba(2, 9, 25, 0.2) 66%, rgba(2, 8, 22, 0.46) 100%),
    linear-gradient(180deg, rgba(1, 8, 24, 0.18) 0%, rgba(1, 8, 24, 0.18) 56%, rgba(2, 9, 24, 0.96) 100%),
    url("./backgrounds/deep-reef.png");
  background-position: center, center, center top;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1);
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(35, 218, 255, 0.18) 0%, transparent 24%),
    linear-gradient(90deg, rgba(6, 232, 199, 0.16) 0%, transparent 17%, transparent 78%, rgba(255, 108, 168, 0.12) 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1368px, calc(100% - 144px));
  margin: 0 auto;
  padding-top: 142px;
}

.hero-copy {
  width: min(850px, 100%);
}

.eyebrow {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(40, 242, 255, 0.34);
}

.hero-copy h1 {
  margin-top: 18px;
  color: #fff;
  font-size: 96px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 4, 18, 0.58);
}

.hero-text {
  width: min(620px, 100%);
  margin-top: 20px;
  color: rgba(246, 250, 255, 0.92);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 5, 18, 0.62);
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 28px;
}

.download-button,
.copy-ip-button {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.download-button {
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(83, 218, 255, 0.36);
  box-shadow: 0 18px 46px rgba(0, 10, 28, 0.34);
}

.download-button--windows {
  width: 296px;
  background: linear-gradient(100deg, #31ed87 0%, #16b8ff 100%);
}

.download-button--mac {
  width: 306px;
  background: linear-gradient(180deg, rgba(9, 39, 81, 0.95), rgba(4, 22, 52, 0.95));
}

.download-button span:not(.button-icon) {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.download-button small {
  margin-left: auto;
  color: rgba(241, 247, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.button-icon,
.nav-cta-icon,
.copy-ip-icon,
.icon-tile,
.step-icon,
.feature-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
}

.button-icon {
  width: 32px;
  height: 32px;
}

.nav-cta-icon {
  width: 20px;
  height: 20px;
}

.copy-ip-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 184px;
  padding: 0 16px;
  border: 1px solid rgba(147, 226, 255, 0.38);
  background: rgba(4, 23, 54, 0.78);
  box-shadow: 0 18px 46px rgba(0, 10, 28, 0.32);
}

.copy-ip-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  color: rgba(226, 243, 255, 0.92);
  transform: translateY(-50%);
}

.copy-ip-button strong {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-ip-button.is-copied {
  border-color: rgba(73, 236, 134, 0.72);
  box-shadow: 0 0 34px rgba(73, 236, 134, 0.28), 0 18px 46px rgba(0, 10, 28, 0.32);
}

.hero-status {
  display: grid;
  grid-template-columns: 196px 160px 170px 170px;
  gap: 12px;
  margin-top: 26px;
}

.status-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: 20px 26px;
  align-items: center;
  min-height: 78px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 48, 91, 0.72), rgba(3, 24, 56, 0.72)),
    rgba(4, 19, 47, 0.72);
  box-shadow: 0 16px 42px rgba(0, 7, 22, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(12px) saturate(1.18);
}

.icon-tile {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(112, 205, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38, 145, 255, 0.28), rgba(4, 24, 54, 0.82));
  color: #58b8ff;
  box-shadow: 0 12px 28px rgba(0, 8, 24, 0.28);
}

.icon-tile--green {
  color: var(--green);
}

.icon-tile--cyan {
  color: var(--cyan);
}

.icon-tile--grass {
  color: #7cff76;
}

.icon-tile--violet {
  color: var(--violet);
}

.icon-tile--amber {
  color: var(--amber);
}

.status-label {
  color: rgba(218, 231, 252, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-card strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  position: absolute;
  top: 17px;
  right: 13px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(68, 238, 131, 0.72);
}

.status-dot.is-offline {
  background: #ff617b;
  box-shadow: 0 0 18px rgba(255, 97, 123, 0.72);
}

.flow-section,
.modpack-section,
.news-section {
  position: relative;
  width: min(1368px, calc(100% - 144px));
  margin: 0 auto;
}

.flow-section {
  padding: 64px 0 34px;
}

.flow-section::before,
.modpack-section::before,
.news-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 50%;
  width: 100vw;
  content: "";
  transform: translateX(-50%);
}

.flow-section::before {
  background:
    linear-gradient(180deg, rgba(3, 18, 44, 0.96), rgba(2, 9, 24, 0.98)),
    url("./backgrounds/deep-reef.png");
  background-position: center top;
  background-size: cover;
  border-top: 1px solid rgba(112, 205, 255, 0.18);
  filter: saturate(0.84);
}

.section-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.section-copy h2,
.section-heading h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  min-height: 144px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 50, 96, 0.78), rgba(4, 23, 54, 0.78));
  box-shadow: 0 18px 48px rgba(0, 7, 22, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(10px);
}

.steps li:not(:last-child)::after {
  position: absolute;
  top: 53px;
  right: -19px;
  color: rgba(188, 220, 252, 0.62);
  content: "›";
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.step-number {
  position: absolute;
  top: 18px;
  left: 58px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #74f6ff, #3676ff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(54, 118, 255, 0.62);
}

.step-icon {
  width: 56px;
  height: 56px;
  align-self: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 139, 255, 0.34), rgba(3, 19, 44, 0.74));
  color: rgba(249, 253, 255, 0.95);
}

.steps strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
}

.steps span:not(.step-number):not(.step-icon) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border: 1px solid rgba(112, 205, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 23, 53, 0.7);
  backdrop-filter: blur(12px) saturate(1.2);
}

.feature-strip article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 16px 22px;
}

.feature-strip article:not(:last-child) {
  border-right: 1px solid rgba(112, 205, 255, 0.18);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(10, 46, 92, 0.68);
  color: var(--cyan);
}

.feature-strip strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.feature-strip span:not(.feature-icon) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.modpack-section,
.news-section {
  padding: 72px 0 20px;
}

.modpack-section::before {
  background:
    linear-gradient(180deg, rgba(2, 9, 24, 0.98), rgba(3, 14, 34, 0.98)),
    linear-gradient(90deg, rgba(73, 236, 134, 0.08), transparent 35%, rgba(255, 108, 168, 0.08) 100%);
}

.news-section::before {
  background: linear-gradient(180deg, #030e23, #020916);
}

.section-heading {
  max-width: 760px;
}

.modpack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.modpack-grid article,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 42, 82, 0.76), rgba(4, 22, 52, 0.78));
  box-shadow: 0 18px 48px rgba(0, 7, 22, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(10px);
}

.modpack-grid article {
  min-height: 218px;
  padding: 22px;
}

.modpack-grid .icon-tile {
  grid-row: auto;
  width: 44px;
  height: 44px;
}

.modpack-grid h3 {
  margin-top: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.modpack-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.news-card {
  min-height: 172px;
  padding: 22px;
}

.news-card time {
  display: block;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.news-card h3 {
  margin-top: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.news-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(1368px, calc(100% - 144px));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(112, 205, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(5, 25, 57, 0.74);
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  border-color: var(--line-hot);
  transform: translateY(-2px);
  outline: none;
}

svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

.button-icon svg {
  width: 30px;
  height: 30px;
}

.icon-tile svg,
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.step-icon svg {
  width: 34px;
  height: 34px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: slow-drift 18s ease-in-out infinite alternate;
  }

  .status-dot {
    animation: pulse-dot 2.4s ease-in-out infinite;
  }
}

@keyframes slow-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-12px, -8px, 0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

@media (max-width: 1180px) {
  .site-nav,
  .hero-inner,
  .flow-section,
  .modpack-section,
  .news-section,
  .site-footer {
    width: min(100% - 48px, 980px);
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-copy h1 {
    font-size: 76px;
  }

  .hero-status,
  .modpack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .steps li {
    min-height: 132px;
    padding: 20px 18px;
    grid-template-columns: 56px 1fr;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .step-number {
    top: 16px;
    left: 50px;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .hero-inner,
  .flow-section,
  .modpack-section,
  .news-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-nav {
    top: 10px;
    min-height: 60px;
    padding: 8px;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    min-width: 46px;
    min-height: 44px;
    padding: 0 12px;
  }

  .nav-cta span:last-child {
    display: none;
  }

  .hero-section {
    min-height: 820px;
  }

  .hero-inner {
    padding-top: 108px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .download-button,
  .copy-ip-button {
    width: 100%;
  }

  .download-button span:not(.button-icon) {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-status,
  .modpack-grid,
  .news-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-strip article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(112, 205, 255, 0.18);
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: 30px;
  }

  .steps li {
    grid-template-columns: 56px 1fr;
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
