:root {
  --orange: #d6a32d;
  --orange-dark: #9f7415;
  --orange-light: #f1c95e;
  --white: #ffffff;
  --black: #0d0d0d;
  --ink: #181818;
  --muted: #77746d;
  --line: rgba(214, 163, 45, 0.22);
  --header-h: 82px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.navbar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
}

.arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 210px;

  padding: 8px;

  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(214, 163, 45, 0.25);
  border-radius: 14px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(214, 163, 45, 0.08);

  backdrop-filter: blur(15px);

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);

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

  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  position: relative;

  display: block;
  padding: 11px 14px;

  color: rgba(255, 255, 255, 0.75);

  border-radius: 9px;

  font-size: 0.88rem;
  font-weight: 600;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    padding-left 0.2s ease;
}

.dropdown-menu a::before {
  content: "";

  position: absolute;
  left: 8px;
  top: 50%;

  width: 3px;
  height: 0;

  border-radius: 10px;

  background: #d6a32d;

  transform: translateY(-50%);

  transition: height 0.2s ease;
}

.dropdown-menu a:hover {
  color: white;
  background: rgba(214, 163, 45, 0.10);
  padding-left: 20px;
}

.dropdown-menu a:hover::before {
  height: 18px;
}

.brand {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.03);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.nav-link {
  position: relative;
  padding: 12px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  box-shadow: 0 0 18px rgba(214,163,45,0.55);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #060606;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("landing-sec-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.66) 100%);
}

.hero-content {
  padding: calc(var(--header-h) + 56px) 0 90px;
  text-align: center;
  color: var(--white);
}

.title-logo {
  width: min(690px, 80vw);
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.42));
  animation: floatLogo 5.5s ease-in-out infinite;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--orange);
  text-shadow: 0 0 28px rgba(214,163,45,0.16);
}

.hero-text {
  max-width: 700px;
  margin: 20px auto 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  color: var(--black);
  background: var(--orange);
  box-shadow: 0 10px 32px rgba(214,163,45,0.28);
}

.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 14px 42px rgba(214,163,45,0.38);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  border-color: rgba(214,163,45,0.7);
  background: rgba(214,163,45,0.12);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.72);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 18px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 999px;
  position: relative;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--orange);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* Sections */
.section {
  position: relative;
  padding: 110px 0;
}

.light {
  background:
    radial-gradient(circle at 20% 15%, rgba(214,163,45,0.08), transparent 30%),
    var(--white);
}

.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 75% 15%, rgba(214,163,45,0.12), transparent 30%),
    #101010;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.section-heading {
  padding: 12px 30px 12px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: var(--orange-light);
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
  margin: 18px 0 0;
}

.feature-card {
  padding: 28px;
  border: 1px solid rgba(24,24,24,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(214,163,45,0.36);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(214,163,45,0.14);
  color: var(--orange-dark);
  font-size: 1.2rem;
  margin-bottom: 26px;
}

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

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.lead {
  color: rgba(255,255,255,0.72);
  max-width: 650px;
  font-size: 1.05rem;
  margin: 20px 0 0;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}

.tag {
  padding: 8px 12px;
  border: 1px solid rgba(214,163,45,0.34);
  border-radius: 999px;
  background: rgba(214,163,45,0.09);
  color: var(--orange-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.modpack-panel {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214,163,45,0.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(214,163,45,0.10), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(214,163,45,0.20);
  filter: blur(50px);
}

.panel-logo {
  position: absolute;
  width: 270px;
  opacity: 0.22;
  transform: rotate(-8deg);
}

.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.panel-content span,
.panel-content strong {
  display: block;
}

.panel-content span {
  color: var(--orange-light);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  font-weight: 800;
}

.panel-content strong {
  margin-top: 6px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.panel-content p {
  max-width: 280px;
  margin: 16px auto 0;
  color: rgba(255,255,255,0.7);
}

.roleplay-section {
  overflow: hidden;
}

.roleplay-box {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 60px;
  align-items: center;
}

.roleplay-section .lead {
  color: var(--muted);
}

.roleplay-quote {
  position: relative;
  padding: 34px 34px 34px 44px;
  border-left: 4px solid var(--orange);
  background: rgba(214,163,45,0.07);
  border-radius: 0 22px 22px 0;
}

.roleplay-quote span {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--orange);
  font-size: 3rem;
  line-height: 1;
}

.roleplay-quote p {
  margin: 0;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 28px 0;
  background: #0b0b0b;
  color: rgba(255,255,255,0.68);
}

.footer-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  font-size: 0.84rem;
}

.footer-inner > a {
  color: var(--orange-light);
  font-size: 0.86rem;
  font-weight: 800;
}

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

@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 8px); opacity: 0.4; }
}

/* Responsive */
@media (max-width: 980px) {
  .section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .split-layout,
  .roleplay-box {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .navbar {
    min-height: var(--header-h);
  }

  .brand {
    width: 44px;
    height: 44px;
  }

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(12,12,12,0.97);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    left: 8px;
    right: auto;
    bottom: 9px;
    width: 34px;
    height: 3px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(214,163,45,0.08);
  }

  .hero-content {
    padding-top: calc(var(--header-h) + 30px);
  }

  .title-logo {
    width: min(620px, 94vw);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .section {
    padding: 78px 0;
  }

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

  .section-heading {
    grid-column: auto;
  }

  .feature-card {
    padding: 24px;
  }

  .modpack-panel {
    min-height: 330px;
  }

  .panel-logo {
    width: 210px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title-logo,
  .scroll-cue i::after { animation: none; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
