
:root {
  color-scheme: dark;
  --bg: #060c16;
  --panel: #0c1727;
  --blue: #59caff;
  --blue-bright: #8be0ff;
  --white: #eff8ff;
  --muted: #91a7bd;
  --border: #8acfff20;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 50% 0%, #12305255, transparent 50%),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 5px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Navigation */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ffffff0d;
  background: #060c16dc;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform .35s var(--ease), filter .35s;
}

.brand:hover img {
  transform: rotate(-7deg) scale(1.08);
  filter: drop-shadow(0 0 10px #59caff80);
}

.brand-name span {
  color: var(--blue);
}

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

.nav-links a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

/* Buttons */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .25s var(--ease),
    box-shadow .25s,
    border-color .25s,
    background .25s;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  left: -100%;
  width: 65%;
  height: 220%;
  background: linear-gradient(
    90deg, transparent, #ffffff55, transparent
  );
  transform: rotate(25deg);
  transition: left .65s var(--ease);
}

.btn:hover::before {
  left: 150%;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(.97);
}

.btn-primary {
  color: #04111d;
  background: linear-gradient(120deg, #91e4ff, #49b9ff);
  box-shadow: 0 5px 22px #36aaff20;
}

.btn-primary:hover {
  box-shadow: 0 8px 32px #36aaff55;
}

.btn-secondary {
  color: var(--white);
  border-color: #7bd5ff35;
  background: #ffffff06;
}

.btn-secondary:hover {
  border-color: #59caffaa;
  background: #59caff12;
}

/* Hero */

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 95px 0 100px;
}

.hero-glow {
  position: absolute;
  top: 5%;
  right: -15%;
  width: min(600px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1478d30c;
  filter: blur(35px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
}

.hero-copy,
.hero-visual {
  animation: enterUp .8s var(--ease) both;
}

.hero-visual {
  animation-delay: .15s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--blue-bright);
  border: 1px solid #59caff28;
  border-radius: 999px;
  background: #59caff0a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 25px 0 18px;
  font-size: clamp(43px, 6.5vw, 76px);
  line-height: .99;
  letter-spacing: -4px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #b7eeff, #54c8ff 45%, #8a9eff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description,
.section-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-description {
  max-width: 510px;
  font-size: 15px;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.server-ip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff05;
  transition: border-color .25s, background .25s;
}

.server-ip:hover {
  border-color: #59caff66;
  background: #59caff09;
}

.ip-icon,
.feature-icon {
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  border: 1px solid #59caff20;
  border-radius: 14px;
  background: #59caff0c;
}

.ip-icon {
  width: 36px;
  height: 36px;
}

.ip-label,
.section-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ip-address {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
}

.copy-btn {
  padding: 9px 12px;
  color: var(--blue-bright);
  border: 1px solid #59caff30;
  border-radius: 9px;
  background: #59caff0a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.copy-btn:hover {
  transform: translateY(-2px);
  background: #59caff1d;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
}

.orbit {
  position: absolute;
  width: 350px;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid #59caff16;
  border-radius: 50%;
  animation: orbitSpin 30s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

.orbit::before {
  top: 12%;
  left: 25%;
}

.orbit::after {
  right: 8%;
  bottom: 30%;
  width: 5px;
  height: 5px;
}

.hero-logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(275px, 68vw);
  aspect-ratio: 1;
  padding: 22px;
  border: 1px solid #8cdeff35;
  border-radius: 35px;
  background: linear-gradient(145deg, #122943, #091321);
  box-shadow: 0 0 90px #168bff18, inset 0 1px #ffffff12;
  transform: rotate(-3deg);
  transition: transform .45s var(--ease), box-shadow .45s;
}

.hero-logo:hover {
  transform: rotate(0) scale(1.035);
  box-shadow: 0 0 80px #168bff35;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-label {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border: 1px solid #8cdeff28;
  border-radius: 13px;
  background: #0b1829ef;
  box-shadow: 0 12px 35px #0005;
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}

.floating-label strong {
  display: block;
  font-size: 12px;
}

.floating-label span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.label-top { top: 12%; right: -3%; }
.label-bottom { bottom: 11%; left: -1%; animation-delay: -2s; }

/* Content sections */

section.content-section {
  padding: 90px 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.community-panel h2 {
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.5px;
}

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

.feature-card {
  position: relative;
  min-height: 220px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, #101e30, #091321);
  transition:
    transform .35s var(--ease),
    border-color .35s,
    box-shadow .35s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #59caff90, transparent);
  opacity: 0;
  transition: opacity .35s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: #59caff60;
  box-shadow: 0 20px 50px #0003, 0 0 30px #59caff08;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 23px;
  font-size: 22px;
  transition: transform .3s var(--ease), background .3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: #59caff18;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.feature-card p,
.community-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-card p {
  margin: 0;
}

.community-panel {
  position: relative;
  padding: 55px 30px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #59caff2c;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 120%, #168bff1c, transparent 60%),
    linear-gradient(145deg, #10233a, #091321);
}

.community-panel p {
  max-width: 560px;
  margin: 0 auto 25px;
  font-size: 14px;
}

.community-actions {
  justify-content: center;
}

footer {
  margin-top: 80px;
  border-top: 1px solid #ffffff0d;
  background: #04091180;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--blue-bright);
}

/* Scroll animations */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
  padding: 13px 18px;
  color: var(--white);
  border: 1px solid #59caff45;
  border-radius: 12px;
  background: #0d1d30f5;
  box-shadow: 0 12px 40px #0005;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes enterUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .nav-links { gap: 15px; }
  .hero-grid { gap: 25px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 30px, 520px); }
  .nav-inner { min-height: 68px; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 15px;
    right: 15px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #081321f7;
    box-shadow: 0 20px 50px #0006;
  }

  .nav-links.open {
    display: flex;
    animation: enterUp .2s ease both;
  }

  .nav-links a { padding: 12px; font-size: 14px; }
  .nav-links a::after { display: none; }
  .nav-actions .btn { min-height: 40px; padding-inline: 13px; font-size: 11px; }

  .hero { min-height: auto; padding: 75px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  h1 { letter-spacing: -2px; font-size: clamp(42px, 12vw, 65px); }
  .hero-visual { min-height: 330px; }
  .hero-logo { width: 215px; border-radius: 27px; }
  .orbit { width: 285px; }
  .label-top { top: 5%; right: 0; }
  .label-bottom { bottom: 5%; left: 0; }
  .floating-label { padding: 10px 12px; }

  section.content-section { padding: 65px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 13px; }
  .feature-card { min-height: 0; padding: 24px; }
  .community-panel { padding: 42px 20px; }
  .footer-inner { padding: 25px 0; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .brand { gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .nav-actions .btn { padding-inline: 10px; }
  .server-ip { gap: 8px; padding: 10px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
