/* ============================================================
   Outlands Multi Tracker — Site styles
   Palette derived from the app's own theme (main.py) and logo
   ============================================================ */

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --bg3:       #141414;
  --panel:     #181818;

  --gold:      #c8952a;
  --gold-lt:   #f0c060;
  --gold-dk:   #4a2e05;

  --text:      #e8dcc8;
  --dim:       #8a7458;
  --dim2:      #5c4c38;

  --accent:    #1a2840;
  --accent2:   #243655;

  --border:    #3a2e18;
  --border-lt: #54421f;

  --ember:     #d4502f;

  --serif: "Cinzel", "Palatino Linotype", Georgia, serif;
  --body:  "Inter", "Segoe UI", -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #080808;
  padding: 8px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-lt);
  font-size: 17px;
}
.nav-brand img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links li { margin-left: 28px; }
.nav-links li:first-child { margin-left: 0; }
.nav-links a {
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold-lt); }
.nav-cta {
  background: var(--gold);
  color: #1a1004;
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--gold-lt); color: #1a1004; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border-lt);
    color: var(--gold-lt);
    width: 40px; height: 40px;
    border-radius: 3px;
    font-size: 18px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 16px;
  }
}

.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200,149,42,0.22) 0%, rgba(200,149,42,0.07) 38%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: ember-pulse 6s ease-in-out infinite;
}
@keyframes ember-pulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

.hero-logo {
  position: relative;
  max-width: 560px;
  width: 88%;
  margin: 0 auto 28px;
}
.hero-eyebrow {
  position: relative;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-sub {
  position: relative;
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.92;
}
.hero-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #1a1004;
}
.btn-primary:hover { background: linear-gradient(180deg, #ffd687, var(--gold-lt)); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-lt);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); }

.hero-meta {
  position: relative;
  margin-top: 46px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.hero-meta div { margin: 0 18px; }
.hero-meta span { color: var(--gold-lt); font-weight: 600; margin-right: 5px; }

section { padding: 96px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--gold-lt);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.section-desc { color: var(--dim); font-size: 16px; }

.divider {
  width: 64px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.feature-card { flex: 1 1 calc(33.333% - 15px); min-width: 260px; }
@media (max-width: 900px) { .feature-card { flex: 1 1 calc(50% - 11px); } }
@media (max-width: 600px) { .feature-card { flex: 1 1 100%; } }

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature-card:hover {
  border-color: var(--gold-dk);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--accent2), var(--accent));
  border: 1px solid var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
  color: var(--gold-lt);
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.feature-card p {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

.changelog-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.changelog-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:first-child { padding-top: 0; }
.changelog-version {
  font-family: var(--serif);
  color: var(--gold-lt);
  font-size: 17px;
  white-space: nowrap;
}
.changelog-date {
  display: block;
  color: var(--dim2);
  font-size: 12px;
  margin-top: 4px;
}
.changelog-changes { list-style: none; margin: 0; padding: 0; }
.changelog-changes li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--text);
}
.tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.tag-security    { background: rgba(212,80,47,0.16); color: #e8835f; border: 1px solid rgba(212,80,47,0.35); }
.tag-bug-fix      { background: rgba(36,54,85,0.5);   color: #9db4d9; border: 1px solid var(--accent2); }
.tag-improvement  { background: rgba(200,149,42,0.14); color: var(--gold-lt); border: 1px solid var(--gold-dk); }
.tag-new          { background: rgba(80,150,90,0.16); color: #7fcf8c; border: 1px solid rgba(80,150,90,0.35); }

.changelog-more { text-align: center; margin-top: 36px; }
.changelog-collapsed { display: none; }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--gold-lt); }
.faq-q .icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-a-inner { padding: 0 4px 20px; }
.faq-item.open .faq-a { max-height: 400px; }

.cta-band {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--gold-lt);
  margin: 0 0 16px;
}
.cta-band p { color: var(--dim); margin: 0 0 32px; }

footer {
  padding: 40px 0 50px;
  text-align: center;
  color: var(--dim2);
  font-size: 13px;
}
footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer .foot-links a { color: var(--dim); font-size: 13px; }
footer .foot-links a:hover { color: var(--gold-lt); }
.foot-since { color: var(--dim2); letter-spacing: 0.05em; }
