:root {
  --bg: #f4f6f7;
  --ink: #142126;
  --muted: #4f646d;
  --card: #ffffff;
  --line: #d6e0e4;
  --brand: #0f6f74;
  --brand-2: #1f9a89;
  --accent: #f07b52;
  --shadow: 0 18px 42px rgba(12, 24, 30, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 460px at 110% -10%, rgba(15, 111, 116, 0.16), transparent 70%),
    radial-gradient(900px 420px at -10% 0%, rgba(240, 123, 82, 0.14), transparent 72%),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 9px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(214, 224, 228, 0.8);
  background: rgba(244, 246, 247, 0.9);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
}

.topbar-logo {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(13, 27, 33, 0.35));
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #e9f1f4;
}

.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
}

.site-nav a.active:hover,
.site-nav a.active:focus-visible {
  color: #ffffff;
}

.hero {
  padding: 40px 0 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-portrait {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--brand);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

h3 {
  font-size: 24px;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.hero-portrait {
  background-image:
    linear-gradient(180deg, rgba(20, 33, 38, 0.14), rgba(20, 33, 38, 0.46)),
    url("../assets/karnytine-paladin.jpg"),
    url("../assets/banner.png");
  background-size: cover;
  background-position: center 26%;
  min-height: 360px;
}

.section {
  padding: 16px 0;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
}

.section-card p {
  color: var(--muted);
  margin: 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head p {
  margin: 0 0 6px;
}

.addon-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.addon-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.addon-trigger {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 11px;
  font-weight: 700;
  cursor: pointer;
}

.addon-trigger:hover {
  border-color: #b4c7ce;
  background: #f8fbfc;
}

.addon-trigger:focus-visible,
.download-actions a:focus-visible,
.btn:focus-visible,
.site-nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.addon-trigger.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
}

.addon-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.addon-panel p {
  color: var(--muted);
  margin: 10px 0 0;
}

.panel-subhead {
  margin-top: 16px !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand) !important;
  font-weight: 800;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li {
  margin: 6px 0;
}

.command-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.command-list li {
  margin: 5px 0;
  font-family: "Space Mono", Consolas, monospace;
  font-size: 13px;
}

.panel-meta {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 13px;
}

.chip-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  font-family: "Space Mono", Consolas, monospace;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f5fafb;
}

.download-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-actions a {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 12px;
}

.download-actions a:hover {
  background: #f0f7f8;
}

.download-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.downloads-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.community-frame-wrap {
  border: 1px solid rgba(31, 154, 137, 0.4);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 111, 116, 0.06), rgba(240, 123, 82, 0.06)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(10, 24, 29, 0.14);
  padding: 10px;
}

.community-frame {
  width: 100%;
  min-height: 700px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}

.download-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
}

.download-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.download-actions.compact {
  margin-top: 6px;
  gap: 8px;
}

.download-actions.compact a {
  padding: 8px 10px;
  font-size: 13px;
}

.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-wrap a {
  color: var(--brand);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}

@media (max-width: 980px) {
  .hero-grid,
  .addon-layout {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .addon-menu {
    position: static;
  }

  .hero-portrait {
    min-height: 280px;
  }

  .community-frame {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .topbar-logo {
    height: 36px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-frame {
    min-height: 520px;
  }

}
