:root {
  --bg: #0c0d10;
  --bg-alt: #14161b;
  --card: #1a1c22;
  --border: #2a2d35;
  --text: #e7e6e2;
  --text-dim: #9a9a96;
  --gold: #c8aa6e;
  --gold-bright: #e7c989;
  --blue: #88c0d0;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

img {
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .mark {
  color: var(--gold);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  margin: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.brand:hover .brand-logo {
  border-color: var(--gold);
  transform: scale(1.05);
}


.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

@media (max-width: 560px) {
  .nav {
    justify-content: center;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
    gap: 14px 18px;
    font-size: 0.88rem;
  }
}

/* Hero */
.hero {
  padding: 88px 24px 80px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(200, 170, 110, 0.10), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 14px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw + 1rem, 2.65rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p.lead {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-fineprint {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.75;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-copy .btn-row {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .btn-row {
    justify-content: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Discord mock card */
.hero-mock {
  display: flex;
  justify-content: center;
}

.discord-mock {
  width: 100%;
  max-width: 380px;
  background: #313338;
  border: 1px solid #1e1f22;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.discord-mock-msg {
  display: flex;
  gap: 14px;
}

.discord-avatar-img {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-msg-body {
  flex: 1;
  min-width: 0;
}

.discord-msg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.discord-username {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.discord-app-badge {
  display: inline-flex;
  align-items: center;
  background: #5865f2;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.discord-time {
  color: #87898c;
  font-size: 0.72rem;
}

/* Item render, mirroring src/renderer/satoriGenerator.ts color codes for a Rare item */
.poe-render {
  display: flex;
  align-items: stretch;
  max-width: 300px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.poe-art {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1c1408 0%, #050505 80%);
  border: 2px solid #ffff77;
  border-right: none;
  padding: 6px;
}

.poe-art img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.poe-card {
  flex: 1;
  min-width: 0;
  background: #0c0c10;
  border: 2px solid #ffff77;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.68rem;
}

.poe-header {
  padding: 8px 10px 9px;
  background: linear-gradient(180deg, #1c1c08, #121208);
  border-bottom: 2px solid #ffff77;
  text-align: center;
}

.poe-name {
  color: #ffff77;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.poe-type {
  color: #ffff77;
  font-size: 0.72rem;
  margin-top: 1px;
}

.poe-body {
  padding: 8px 10px;
  text-align: center;
}

.poe-prop {
  margin: 2px 0;
}

.poe-prop .lbl, .poe-sockets .lbl {
  color: #7f7f7f;
}

.poe-prop .val {
  color: #c8c8c8;
}

.poe-sockets {
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eaeaea, #8a8a8a 70%, #555);
  display: inline-block;
}

.poe-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffff77, transparent);
  margin: 6px 0;
}

.poe-mod {
  color: #8888ff;
  margin: 2px 0;
}

.poe-mod.crafted {
  color: #b8daf1;
}

.discord-btn-row {
  display: flex;
}

.discord-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4e5058;
  color: #e7e6e2;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
}

.link-arrow {
  font-size: 0.78rem;
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1306;
}

.btn-primary:hover {
  color: #1a1306;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 170, 110, 0.25);
}

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 170, 110, 0.25);
}

/* Sections */
section {
  padding: 64px 24px;
}

@media (max-width: 560px) {
  section {
    padding: 44px 18px;
  }
  .hero {
    padding: 56px 18px 48px;
  }
  h2.section-title {
    font-size: 1.55rem;
  }
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 12px;
}

h2.section-title.flex-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.title-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  object-fit: cover;
  padding: 0;
  margin: 0;
}

p.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

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

/* Command list */
.cmd-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}

.cmd-row:first-child {
  border-top: 1px solid var(--border);
}

.cmd-tag {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.cmd-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cmd-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .cmd-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 760px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .roadmap-grid .btn-row {
    justify-content: center !important;
  }
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.tier-free {
  background: rgba(136, 192, 208, 0.15);
  color: var(--blue);
}

.tier-premium {
  background: rgba(200, 170, 110, 0.18);
  color: var(--gold-bright);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--text-dim);
}

footer.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 2.1rem;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.3rem;
  color: var(--gold-bright);
}

.legal p, .legal li {
  color: #cfcfca;
}

.legal ul {
  padding-left: 20px;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}
