:root {
  --forest: #2c4a3e;
  --forest-deep: #17271f;
  --forest-soft: #4f7465;
  --sand: #d9c8a4;
  --sand-light: #f7eedb;
  --sand-mist: #fbf7ed;
  --clay: #a97863;
  --sage: #e4ead8;
  --ink: #17231c;
  --muted: #6d786f;
  --white: #fffdfa;
  --line: rgba(44, 74, 62, 0.14);
  --shadow: 0 22px 60px rgba(31, 48, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::selection {
  color: var(--forest-deep);
  background: rgba(217, 200, 164, 0.78);
}

::-moz-selection {
  color: var(--forest-deep);
  background: rgba(217, 200, 164, 0.78);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 200, 164, 0.42), transparent 34rem),
    linear-gradient(180deg, var(--sand-mist) 0%, #f1ead8 44%, #edf2e7 100%);
  overflow-x: hidden;
  -ms-overflow-style: none;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
}

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

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 22px;
  align-content: center;
  background: #f3ead7;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__mark {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  animation: floatLogo 2.2s ease-in-out infinite;
}

.loader__bar {
  width: min(260px, 62vw);
  height: 6px;
  border-radius: 18px;
  background: rgba(44, 74, 62, 0.12);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
  animation: loading 1.2s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  width: min(1040px, calc(100% - 32px));
  min-height: 58px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px;
  border: 1px solid rgba(44, 74, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.7);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 44px rgba(31, 48, 39, 0.08);
}

.brand,
.header-cta,
.button,
.copy-ip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
}

.brand {
  width: 54px;
  min-height: 48px;
  padding: 0;
  color: var(--forest-deep);
  background: transparent;
}

.brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(31, 48, 39, 0.13));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(23, 35, 28, 0.68);
}

.nav a {
  padding: 12px 16px;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease;
}

.nav a:hover {
  color: var(--forest-deep);
  background: rgba(44, 74, 62, 0.07);
}

.header-cta,
.button--primary,
.copy-ip {
  border: 0;
  color: #fffaf0;
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(44, 74, 62, 0.18);
  cursor: pointer;
}

.header-cta,
.button--primary {
  color: #fffaf0;
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(44, 74, 62, 0.18);
}

.header-cta {
  gap: 8px;
  padding: 0 16px 0 18px;
  font-size: 14px;
}

.header-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s ease;
}

.header-cta:hover svg {
  transform: translateX(3px);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 390px);
  align-items: center;
  gap: 58px;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 86px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 74, 62, 0.16), transparent);
}

.hero__content,
.hero-card,
.section,
.footer,
.not-found {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--forest-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(70px, 13vw, 156px);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__slogan {
  margin: 24px 0 0;
  max-width: 690px;
  color: var(--forest);
  font-size: clamp(28px, 4.8vw, 54px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__text {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(23, 35, 28, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 0 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover,
.copy-ip:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.copy-ip:focus-visible,
.nav a:focus-visible,
.header-cta:focus-visible,
.social-card:focus-visible {
  outline: 3px solid rgba(44, 74, 62, 0.28);
  outline-offset: 3px;
}

.button--ghost {
  color: var(--forest);
  border: 1px solid rgba(44, 74, 62, 0.16);
  background: rgba(255, 253, 250, 0.56);
}

.hero-card {
  padding: 0;
  border: 1px solid rgba(44, 74, 62, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.82), rgba(228, 234, 216, 0.56));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.server-card {
  padding: 28px;
  border: 0;
  border-radius: 26px;
  background: transparent;
}

.server-card__top span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.server-card__top strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--forest-deep);
  font-size: 26px;
  line-height: 1.1;
}

.copy-ip {
  width: 100%;
  margin-top: 18px;
  font: inherit;
}

.copy-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section__heading {
  max-width: 650px;
}

.section__heading h2 {
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(32px, 5.8vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.feature-card,
.social-card,
.join__panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.6);
  box-shadow: 0 16px 44px rgba(31, 48, 39, 0.07);
}

.feature-card {
  padding: 26px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 20px 54px rgba(31, 48, 39, 0.1);
}

.feature-card span {
  color: var(--clay);
  font-weight: 900;
}

.feature-card h3,
.steps h3 {
  margin: 18px 0 10px;
  color: var(--forest-deep);
  font-size: 22px;
}

.feature-card p,
.steps p,
.not-found p,
.footer p {
  margin: 0;
  color: rgba(23, 35, 28, 0.68);
  line-height: 1.7;
}

.join__panel {
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.72), rgba(228, 234, 216, 0.58));
}

.steps {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(44, 74, 62, 0.1);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.62);
}

.steps span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fffaf0;
  background: var(--forest);
  font-weight: 900;
}

.steps h3 {
  margin-top: 0;
}

.social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.social-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 253, 250, 0.82);
  box-shadow: 0 20px 54px rgba(31, 48, 39, 0.1);
}

.social-card span {
  color: var(--forest-deep);
  font-size: 24px;
  font-weight: 900;
}

.social-card svg {
  width: 34px;
  height: 34px;
  color: var(--forest);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s ease, color 0.24s ease;
}

.social-card:hover svg {
  color: var(--clay);
  transform: scale(1.08) rotate(-3deg);
}

.social-card .icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-card small {
  color: var(--clay);
  font-weight: 900;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(44, 74, 62, 0.14);
}

.footer span {
  color: var(--forest-deep);
  font-weight: 900;
}

.animate-line {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  animation: textRise 0.86s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-line:nth-child(2) {
  animation-delay: 0.12s;
}

.animate-line:nth-child(3) {
  animation-delay: 0.24s;
}

.animate-line:nth-child(4) {
  animation-delay: 0.36s;
}

.animate-line:nth-child(5) {
  animation-delay: 0.48s;
}

[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.not-found {
  width: min(720px, 100%);
  text-align: center;
  padding: 42px;
  border: 1px solid rgba(44, 74, 62, 0.12);
  border-radius: 34px;
  background: rgba(255, 253, 250, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.not-found__art {
  margin: 0 auto 18px;
}

.not-found__art span {
  display: block;
  color: rgba(44, 74, 62, 0.2);
  font-size: clamp(92px, 22vw, 168px);
  font-weight: 900;
  line-height: 0.82;
}

.not-found h1 {
  margin: 0 0 14px;
  color: var(--forest-deep);
  font-size: clamp(38px, 8vw, 76px);
  line-height: 0.98;
}

.not-found .button {
  margin-top: 28px;
}

@keyframes textRise {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

@keyframes loading {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 116px;
  }

  .hero__title {
    font-size: clamp(66px, 22vw, 118px);
  }

  .feature-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .brand {
    width: 54px;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero__actions {
    display: grid;
  }

  .hero-card,
  .server-card,
  .feature-card,
  .join__panel,
  .social-card {
    border-radius: 18px;
  }

  .steps li {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .steps span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

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