:root {
  color-scheme: dark;
  --bg: #030609;
  --bg-soft: #07111c;
  --panel: rgba(4, 10, 18, 0.78);
  --panel-strong: rgba(5, 13, 24, 0.92);
  --line: rgba(0, 153, 255, 0.2);
  --line-strong: rgba(255, 0, 0, 0.34);
  --text: #f4f8ff;
  --muted: #b7c9dd;
  --dim: #72869a;
  --red: #ff0000;
  --red-deep: #6e0508;
  --logo-red: #ff0000;
  --logo-blue: #0099ff;
  --blue: #0099ff;
  --blue-deep: #022a55;
  --cyan: #72d7ff;
  --glow-red: rgba(255, 0, 0, 0.32);
  --glow-blue: rgba(0, 153, 255, 0.34);
  --eso-wallpaper-hero: none;
  --eso-wallpaper-blue: none;
  --parallax-y: 0px;
  --page-parallax-y: 0px;
  --backdrop-opacity: 0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --max: 1180px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: #02050a;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.page-backdrop {
  position: fixed;
  inset: -18vh 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--backdrop-opacity);
  background-image:
    linear-gradient(90deg, rgba(2, 5, 10, 0.9) 0%, rgba(3, 10, 20, 0.58) 46%, rgba(2, 5, 10, 0.9) 100%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.22) 0%, rgba(2, 5, 10, 0.88) 100%),
    radial-gradient(circle at 18% 30%, rgba(255, 0, 0, 0.26), transparent 26rem),
    radial-gradient(circle at 78% 42%, rgba(0, 153, 255, 0.24), transparent 30rem),
    var(--eso-wallpaper-blue);
  background-repeat: no-repeat;
  background-position: center calc(50% + var(--page-parallax-y));
  background-size: cover;
  filter: saturate(1.06) brightness(0.72) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.05);
  will-change: background-position;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(0, 153, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header,
main,
.site-footer,
.skip-link {
  position: relative;
  z-index: 2;
}

main {
  display: flex;
  flex-direction: column;
}

#hero { order: 1; }
#features { order: 2; }
#antiquities { order: 3; }
#buffs-debuffs { order: 4; }
#chat { order: 5; }
#combat { order: 6; }
#gear { order: 7; }
#fishing { order: 8; }
#grouping { order: 9; }
#friends { order: 10; }
#map { order: 11; }
#mounts { order: 12; }
#progress { order: 13; }
#provisioning { order: 14; }
#ticker { order: 15; }
#ui { order: 16; }
#utility { order: 17; }
#screenshots { order: 18; }
#news { order: 19; }
#install { order: 20; }
#support { order: 21; }
#credits { order: 22; }

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--logo-blue);
  color: #00101f;
  border-radius: 6px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(2, 6, 12, 0.78);
  border-bottom: 1px solid rgba(0, 153, 255, 0.2);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

body.is-at-top .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #c9bd9a;
}

.brand-mark::before {
  position: absolute;
  inset: 8px;
  content: "";
  background: #020303;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--glow-blue)) drop-shadow(0 0 6px var(--glow-red));
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(135deg, #e6dcc0 0%, #b9ad90 45%, #746b58 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  transform: scaleX(0.84);
  text-shadow:
    0 1px 0 rgba(2, 2, 2, 0.5),
    0 0 1px rgba(230, 220, 192, 0.22);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #020202,
    0 0 12px rgba(0, 0, 0, 0.55);
}

.wordmark-n {
  color: var(--logo-red);
}

.wordmark-qol {
  color: var(--logo-blue);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-nav a {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.primary-nav a[aria-current="true"] {
  color: var(--cyan);
  background: rgba(0, 153, 255, 0.1);
  border-color: rgba(0, 153, 255, 0.3);
}

.section-anchor {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin-top: calc(var(--nav-height) * -1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: calc(var(--nav-height) + clamp(5rem, 10vw, 9rem)) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: min(28vh, 18rem);
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 10, 0.72) 64%, #02050a 100%);
}

/* Official ESO wallpaper stored locally in website/assets. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--eso-wallpaper-hero);
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y));
  filter: saturate(0.98) brightness(0.5) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
}

.hero-vanta {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.hero-vanta canvas {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.9) 0%, rgba(3, 9, 18, 0.68) 42%, rgba(2, 8, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 9, 7, 0.02) 0%, rgba(2, 5, 10, 0.18) 58%, rgba(2, 5, 10, 0.78) 100%);
}

.hero-content,
.section,
.feature-group,
.site-footer {
  width: min(var(--max), calc(100vw - 2rem));
  min-width: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-wordmark {
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-shadow:
    0 4px 0 #020202,
    0 12px 38px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(38, 167, 255, 0.24);
}

h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--cyan);
  font-size: 1rem;
}

.subtitle {
  max-width: 820px;
  margin-bottom: 1rem;
  color: #fff7e8;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  line-height: 1.22;
  font-weight: 700;
}

.intro,
.section-heading p,
.feature-copy p,
.news-video figcaption span,
.install-steps p,
.support-steps p,
.credits p {
  color: var(--muted);
}

.intro {
  max-width: 690px;
  font-size: 1.08rem;
}

.button {
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  color: var(--text);
  background: rgba(2, 6, 12, 0.44);
  border-color: rgba(114, 215, 255, 0.24);
  font-weight: 800;
}

.button:hover {
  color: #ffffff;
  border-color: rgba(114, 215, 255, 0.72);
  background: rgba(2, 6, 12, 0.62);
}

.support-ticket-button {
  min-height: 48px;
  margin-top: 0.45rem;
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.94), rgba(0, 153, 255, 0.88));
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 42px rgba(0, 153, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-size: 1rem;
}

.support-ticket-button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, #ff1a1a, #19a6ff);
  box-shadow: 0 20px 52px rgba(0, 153, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.section,
.feature-group,
.site-footer {
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 2rem;
}

.feature-group {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(3.2rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.feature-group.visual {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.feature-group.media-row {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.feature-copy {
  grid-column: 1 / -1;
  align-self: start;
  max-width: 100%;
}

.feature-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.feature-copy p:last-child {
  max-width: 100%;
}

.feature-group > .feature-list,
.feature-group.media-row > .feature-list {
  grid-column: 1 / -1;
}

.feature-group.visual > .screenshot-frame,
.feature-group.visual > .screenshot-pair {
  grid-column: 1;
}

.feature-group.visual > .feature-list,
.feature-group.visual > .tag-list {
  grid-column: 2;
}

.feature-list {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(0, 153, 255, 0.18);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list.compact li {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.feature-list strong {
  color: #f7fbff;
}

.feature-list span {
  color: var(--muted);
}

.feature-list code {
  color: var(--cyan);
  font: 0.95em ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.screenshot-frame {
  margin: 0;
}

.gallery figure {
  margin: 0;
}

.gallery-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34), 0 0 28px rgba(0, 153, 255, 0.08);
  cursor: zoom-in;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  border-color: rgba(114, 215, 255, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 153, 255, 0.18);
  transform: translateY(-2px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(2, 6, 12, 0.62);
}

.screenshot-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  max-height: 360px;
  object-fit: contain;
}

.screenshot-frame.tall img {
  max-height: 620px;
}

.screenshot-frame.wide {
  grid-column: 1 / -1;
}

figcaption,
.gallery-caption {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 153, 255, 0.16);
}

.gallery-caption {
  display: block;
}

.screenshot-frame figcaption {
  padding: 0.55rem 0 0;
  border-top: 0;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 3, 8, 0.78);
  backdrop-filter: blur(16px);
  cursor: zoom-out;
  opacity: 0;
  animation: modalFadeIn 280ms ease forwards;
}

.screenshot-modal-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  max-height: min(86vh, 900px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 215, 255, 0.38);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.96);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68), 0 0 45px rgba(0, 153, 255, 0.16);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  animation: modalZoomIn 360ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.screenshot-modal-frame img {
  width: 100%;
  min-height: 0;
  max-height: calc(86vh - 4.2rem);
  object-fit: contain;
  background: rgba(2, 6, 12, 0.84);
}

.screenshot-modal-frame figcaption {
  position: relative;
  z-index: 1;
  color: var(--text);
  background: rgba(4, 10, 18, 0.92);
}

.screenshot-modal-frame .sr-only {
  color: var(--text);
}

.screenshot-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(3, 7, 13, 0.82);
  border: 1px solid rgba(114, 215, 255, 0.42);
  border-radius: 6px;
  cursor: pointer;
}

.screenshot-modal-close:hover,
.screenshot-modal-close:focus-visible {
  border-color: var(--cyan);
}

body.has-screenshot-modal {
  overflow: hidden;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

@keyframes modalZoomIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screenshot-pair {
  display: grid;
  gap: 1rem;
}

.screenshot-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.chat-screenshots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.fishing-screenshots .wide {
  grid-column: 1 / -1;
}

.map-screenshots .wide {
  grid-column: 1 / -1;
}

.ui-screenshots .menu-tall {
  grid-row: span 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.5rem 0.65rem;
  color: var(--muted);
  background: rgba(0, 153, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.install-steps,
.news-list,
.support-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.news-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-steps > div,
.news-video,
.support-steps > div {
  min-height: 170px;
  padding: 1.2rem;
  background: rgba(0, 153, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-video {
  margin: 0;
}

.news-video iframe,
.news-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: rgba(2, 6, 12, 0.62);
  overflow: hidden;
}

.news-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-video figcaption {
  padding: 0.9rem 0 0;
  border-top: 0;
}

.news-video strong,
.news-video figcaption span,
.news-video figcaption a {
  display: block;
}

.news-video strong {
  margin-bottom: 0.3rem;
  color: #f7fbff;
}

.news-video figcaption a {
  margin-top: 0.55rem;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.news-video figcaption a:hover {
  color: #f7fbff;
}

.support-email {
  color: var(--cyan);
  font-weight: 800;
}

.support-email-glyph::before {
  content: attr(data-glyph);
}

.credits {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.credits a {
  color: var(--cyan);
}

.legal {
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .feature-group,
  .feature-group.visual,
  .feature-group.media-row {
    grid-template-columns: 1fr;
  }

  .feature-copy,
  .feature-group > .feature-list,
  .feature-group.media-row > .feature-list,
  .feature-group.visual > .screenshot-frame,
  .feature-group.visual > .screenshot-pair,
  .feature-group.visual > .feature-list,
  .feature-group.visual > .tag-list {
    grid-column: 1;
  }

  .chat-screenshots {
    grid-template-columns: 1fr;
  }

  .screenshot-grid-2 {
    grid-template-columns: 1fr;
  }

  .fishing-screenshots .wide {
    grid-column: 1;
  }

  .map-screenshots .wide {
    grid-column: 1;
  }

  .ui-screenshots .menu-tall {
    grid-row: auto;
  }

  .hero {
    min-height: auto;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 116px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .primary-nav {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-top: 2rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-vanta {
    display: none;
  }

  .hero-content,
  .section,
  .feature-group,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .section,
  .feature-group,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .subtitle {
    font-size: 1.18rem;
  }

  .install-steps,
  .news-list,
  .support-steps,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .install-steps,
  .news-list,
  .support-steps {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-backdrop,
  .hero-media,
  .hero-vanta,
  .gallery-trigger,
  .screenshot-modal-frame {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
