/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep:    #1c1a16;
  --bg-dark:    #2a2722;
  --bg-card:    #2a2722;
  --bg-card-hover: #3b3831;
  --border:     #3b3831;
  --accent:     #c1a77b;
  --accent-dim: #a67c52;
  --accent-glow: rgba(193, 167, 123, 0.25);
  --gold:       #d19536;
  --gold-dim:   #8a6642;
  --text:       #e8e0cf;
  --text-dim:   #d0c8b5;
  --text-muted: #7a7468;
  --white:      #f2eee3;
  --success:    #7cb369;
  --error:      #c45a5a;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

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

/* ==============================
   UTILITY
   ============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
}

/* ==============================
   NAV
   ============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  transition: background .15s, box-shadow .15s;
}

.nav.scrolled {
  background: rgba(28, 26, 22, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
}

.nav-logo span.nav-logo-text { color: inherit; }\n.nav-logo span.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .15s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: .55rem 1.4rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg-deep) !important;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--white); color: var(--bg-deep) !important; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 4px;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(193,167,123,.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(209,149,54,.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated background particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: .6; }
  90% { opacity: .2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  background: rgba(61, 46, 31, .6);
  backdrop-filter: blur(8px);
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: .7; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-dim), var(--gold), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .25s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: var(--bg-deep);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(193,167,123,.06);
}

.btn svg { width: 18px; height: 18px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat p {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
}

/* ==============================
   FEATURES
   ============================== */
.features {
  padding: 6rem 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .15s, transform .15s, background .15s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(193,167,123,.15), rgba(193,167,123,.05));
  border: 1px solid rgba(193,167,123,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .35rem;
}

.feature-card .feature-tag {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
  display: block;
}

.feature-card p {
  font-size: .925rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Highlight feature */
.feature-card.highlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-card), rgba(193,167,123,.04));
}

.feature-card.highlight .feature-visual {
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  position: relative;
  overflow: hidden;
}

.feature-card.highlight .feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193,167,123,.03), rgba(209,149,54,.03));
}

/* ==============================
   OVERLAY SHOWCASE
   ============================== */
.showcase {
  padding: 6rem 0;
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.showcase-header {
  text-align: center;
  margin-bottom: 4rem;
}

.showcase-header .section-subtitle {
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.showcase-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}

.showcase-item:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.showcase-preview {
  min-height: 200px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.showcase-preview .overlay-mock {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-dim);
  padding: 1rem;
  text-align: center;
}

.showcase-preview .overlay-mock .mock-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
  opacity: .4;
  color: var(--accent);
}

.showcase-preview .overlay-mock .mock-icon svg {
  width: 2rem;
  height: 2rem;
}

/* ==============================
   LIVE APP PREVIEWS
   Mirrors the Electron overlay's
   actual CSS for pixel-accurate
   website previews.
   ============================== */
.app-live-preview {
  --lp-bg: rgba(0, 0, 0, 0.6);
  --lp-panel: rgb(27, 27, 27);
  --lp-widget-bg: rgba(27, 27, 27, 0.85);
  --lp-header-bg: rgba(40, 40, 40, 0.9);
  --lp-bar-track: rgb(40, 40, 40);
  --lp-text: rgb(200, 200, 200);
  --lp-text-muted: rgb(140, 140, 140);
  --lp-bar-green: rgb(34, 139, 34);
  --lp-accent-green: rgb(0, 255, 0);
  --lp-accent-blue: rgb(135, 206, 250);
  --lp-accent-yellow: rgb(255, 255, 0);
  --lp-border: rgba(100, 100, 100, 0.3);
  --lp-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lp-mono: 'Consolas', 'Courier New', monospace;

  width: 92%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--lp-font);
  font-size: 13px;
  color: var(--lp-text);
  user-select: none;
}

/* Widget container */
.lp-widget {
  background: var(--lp-widget-bg);
  border: 1px solid var(--lp-border);
  border-radius: 5px;
  overflow: hidden;
}

/* Widget header */
.lp-widget-header {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 6px;
  background: var(--lp-header-bg);
  border-bottom: 1px solid rgba(80, 80, 80, 0.3);
}

.lp-drag-handle {
  font-size: 14px;
  color: var(--lp-text-muted);
  opacity: 0.5;
  line-height: 1;
  cursor: default;
}

.lp-widget-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.lp-widget-count {
  font-size: 10px;
  background: rgba(80, 80, 80, 0.6);
  color: var(--lp-text-muted);
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}

.lp-header-spacer { flex: 1; }

.lp-collapse-btn {
  font-size: 12px;
  color: var(--lp-text-muted);
  cursor: default;
  padding: 2px 4px;
}

/* Widget body */
.lp-widget-body {
  padding: 4px 8px 6px;
}

/* Timer bars */
.lp-timer-entry {
  margin-bottom: 4px;
}
.lp-timer-entry:last-child {
  margin-bottom: 0;
}

.lp-timer-bar {
  position: relative;
  height: 16px;
  background: var(--lp-bar-track);
  overflow: hidden;
}

.lp-timer-bar-fill {
  height: 100%;
  transition: width 1s linear;
}

.lp-bar-green { background: var(--lp-bar-green); }

.lp-timer-bar-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  font-family: var(--lp-mono);
  pointer-events: none;
}

/* Affiliation widget specifics */
.lp-affiliation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 2px;
}
.lp-aff-label { font-weight: 400; }
.lp-aff-value { font-family: var(--lp-mono); font-size: 12px; }
.lp-aff-bar { height: 18px; }
.lp-aff-remaining {
  font-size: 11px;
  color: var(--lp-text-muted);
  text-align: right;
  margin-top: 2px;
}

/* Faction widget specifics */
.lp-faction-entry { margin-bottom: 6px; }
.lp-faction-entry:last-child { margin-bottom: 0; }
.lp-faction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 2px;
}
.lp-faction-name { font-weight: 500; }
.lp-faction-rank {
  font-size: 11px;
  color: var(--lp-text-muted);
  font-family: var(--lp-mono);
}

/* Group Finder widget specifics */
.lp-gf-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}
.lp-gf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-gf-dot.online { background: #0f0; box-shadow: 0 0 4px #0f0; }
.lp-gf-name { font-weight: 500; }
.lp-gf-tag {
  font-size: 10px;
  color: var(--lp-accent-green);
  margin-left: auto;
}
.lp-gf-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}
.lp-gf-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--lp-text-muted);
}
.lp-gf-label { opacity: 0.7; }
.lp-gf-value { color: var(--lp-text); }
.lp-gf-active { color: var(--lp-accent-green); }
.lp-gf-badge {
  background: rgba(255, 170, 0, 0.25);
  color: #fa0;
  padding: 0 5px;
  border-radius: 8px;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
  font-size: 11px;
}
.lp-gf-open-btn {
  width: 100%;
  padding: 5px 0;
  border: none;
  border-radius: 4px;
  background: rgba(135, 206, 250, 0.15);
  color: var(--lp-accent-blue);
  font-size: 11px;
  cursor: default;
  font-family: var(--lp-font);
}

/* Wiki search widget */
.lp-wiki-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
}
.lp-wiki-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
  color: var(--lp-text-muted);
}
.lp-wiki-placeholder {
  font-size: 13px;
  color: var(--lp-text-muted);
  opacity: 0.7;
}

/* ==============================
   COMMUNITY AVATAR SVG
   ============================== */
.community-avatar svg {
  width: 22px;
  height: 22px;
}

.showcase-info {
  padding: 1.25rem 1.5rem;
}

.showcase-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .35rem;
}

.showcase-info p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ==============================
   COMMUNITY / SOCIAL PROOF
   ============================== */
.community {
  padding: 6rem 0;
  position: relative;
}

.community::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.community-header {
  text-align: center;
  margin-bottom: 3rem;
}

.community-header .section-subtitle {
  margin: 0 auto;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .15s, background .15s;
}

.community-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.community-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--bg-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.community-card h4 {
  font-size: .95rem;
  color: var(--white);
  font-weight: 600;
}

.community-card p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ==============================
   COMING SOON
   ============================== */
.coming-soon {
  padding: 6rem 0;
  position: relative;
}

.coming-soon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.coming-soon-header {
  text-align: center;
  margin-bottom: 3rem;
}

.coming-soon-header .section-subtitle {
  margin: 0 auto;
}

.coming-soon-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card), rgba(193,167,123,.04));
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}

.coming-soon-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(209,149,54,.2), rgba(193,167,123,.08));
  border: 1px solid rgba(209,149,54,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.coming-soon-icon svg {
  width: 28px;
  height: 28px;
}

.coming-soon-content h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}

.coming-soon-content > p {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.coming-soon-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.coming-soon-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-dim);
}

.coming-soon-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(209,149,54,.08);
}

.coming-soon-badge svg {
  width: 14px;
  height: 14px;
}

.coming-soon-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-mock {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: hidden;
}

.market-mock-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .8rem;
}

.market-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(59,56,49,.5);
  transition: background .15s;
}

.market-mock-row:last-child {
  border-bottom: none;
}

.market-mock-row:hover {
  background: var(--bg-card-hover);
}

.mock-item {
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
}

.mock-price {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .coming-soon-card {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   CTA
   ============================== */
.cta {
  padding: 6rem 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card), rgba(193,167,123,.04));
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(193,167,123,.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box .section-title { margin-bottom: .75rem; }
.cta-box p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .nav-logo { margin-bottom: .5rem; display: block; }

.footer-brand p {
  font-size: .825rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .75rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: .4rem; }

.footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ==============================
   ANIMATIONS
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(28,26,22,.97);
    backdrop-filter: blur(12px);
    padding: 0 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
    margin-left: 0;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-toggle { display: block; }

  .hero-stats { gap: 1.5rem; }
  .hero-stat h3 { font-size: 1.4rem; }

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

  .feature-card.highlight {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand p { margin: 0 auto; }
}

/* ==============================
   INNER PAGES (shared)
   ============================== */
.inner-page {
  padding: 8rem 0 4rem;
  min-height: 70vh;
}

.inner-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.inner-hero .section-subtitle {
  margin: 0 auto;
}

.inner-section {
  margin-top: 4rem;
}

.inner-section .section-title {
  margin-bottom: 1.5rem;
}

/* ── Prose: long-form text ── */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.prose p {
  font-size: .95rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  margin: .75rem 0 1.25rem 1.5rem;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.75;
}

.prose li {
  margin-bottom: .35rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--white);
}

/* ── Download page ── */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.download-card {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.download-card--primary {
  background: linear-gradient(135deg, var(--bg-card), rgba(193,167,123,.06));
  border-color: var(--accent-dim);
  position: relative;
  overflow: hidden;
}

.download-card--primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-os-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.download-card-header h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.download-version {
  font-size: .8rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(193,167,123,.15);
  color: var(--accent);
  font-weight: 600;
  margin-left: auto;
}

.download-details {
  list-style: none;
  margin-bottom: 2rem;
}

.download-details li {
  font-size: .9rem;
  color: var(--text-dim);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(59,56,49,.5);
}

.download-details li:last-child {
  border-bottom: none;
}

.download-btn {
  width: 100%;
  justify-content: center;
}

.download-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
}

.download-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-info-card {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.download-info-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}

.download-info-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.download-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
}

.download-steps li {
  margin-bottom: .5rem;
}

/* System requirements */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.req-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.req-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.req-card ul {
  list-style: none;
  padding: 0;
}

.req-card li {
  font-size: .9rem;
  color: var(--text-dim);
  padding: .35rem 0;
  border-bottom: 1px solid rgba(59,56,49,.4);
}

.req-card li:last-child {
  border-bottom: none;
}

/* ── FAQ page ── */
.faq-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item[open] {
  border-color: var(--accent-dim);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .15s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: .925rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: .75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: .5rem 0 .75rem 1.5rem;
  color: var(--text-dim);
  font-size: .925rem;
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: .25rem;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .15s;
}

.contact-card:hover {
  border-color: var(--accent-dim);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(193,167,123,.15), rgba(193,167,123,.05));
  border: 1px solid rgba(193,167,123,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}

.contact-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.contact-email {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent) !important;
  font-size: .95rem !important;
}

.contact-note {
  font-size: .8rem !important;
  color: var(--text-muted) !important;
}

.contact-btn {
  display: inline-flex;
  padding: .6rem 1.4rem;
  font-size: .85rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-faq-callout {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-card), rgba(193,167,123,.06));
}

.contact-faq-callout h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}

.contact-faq-callout p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-info-card {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-info-card h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}

.contact-info-card p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: .5rem;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-card li {
  font-size: .875rem;
  color: var(--text-dim);
  padding: .3rem 0;
}

/* ── About page ── */
.about-content {
  max-width: 900px;
}

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

.about-feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .15s, transform .15s;
}

.about-feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.about-feature-card h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .35rem;
}

.about-feature-card p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

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

.principle-card {
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .15s;
}

.principle-card:hover {
  border-color: var(--accent-dim);
}

.principle-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
}

.principle-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Guide page ── */
.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.guide-toc h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.guide-toc ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.2rem;
}
.guide-toc li {
  margin-bottom: .5rem;
}
.guide-toc a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.guide-toc a:hover {
  color: var(--accent);
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.guide-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.guide-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step-body h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 .5rem;
}
.guide-step-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.25rem 0 .5rem;
}
.guide-step-body p,
.guide-step-body ul {
  color: var(--text-dim);
  line-height: 1.7;
}
.guide-step-body ul {
  padding-left: 1.2rem;
  margin-top: .5rem;
}

.guide-callout {
  background: rgba(193, 167, 123, .08);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-top: .75rem;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.6;
}
.guide-callout--tip {
  border-left-color: var(--gold);
  background: rgba(209, 149, 54, .08);
}

.guide-tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.guide-tips-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Map guide page ── */
.map-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.map-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.map-stat-card h3 {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}
.map-stat-card p {
  color: var(--text-dim);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
}

.poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.poi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.poi-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}
.poi-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.poi-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.poi-card p {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.dungeon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.dungeon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.dungeon-card h3 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}
.dungeon-count {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.dungeon-card p {
  font-size: .85rem;
  color: var(--text-dim);
}

/* ── Changelog page ── */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.changelog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.changelog-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.changelog-badge {
  background: var(--accent);
  color: var(--bg-deep);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .05em;
}
.changelog-date {
  color: var(--text-dim);
  font-size: .85rem;
  margin-left: auto;
}
.changelog-body {
  padding: 1.5rem;
}
.changelog-body h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.changelog-body h3:first-child {
  margin-top: 0;
}
.changelog-body ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.changelog-body li {
  margin-bottom: .3rem;
}
.changelog-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-dim);
}
.changelog-footer a {
  color: var(--accent);
}

/* ── Cookie policy page ── */
.cookie-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.cookie-table th,
.cookie-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cookie-table th {
  background: rgba(193, 167, 123, .1);
  color: var(--accent);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cookie-table td {
  color: var(--text-dim);
}
.cookie-table tr:last-child td {
  border-bottom: none;
}

/* ── Inner page responsive ── */
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
  .req-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    flex-direction: column;
    gap: 1rem;
  }
  .guide-toc ol {
    columns: 1;
  }
  .guide-step {
    flex-direction: column;
  }
  .map-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .poi-grid {
    grid-template-columns: 1fr;
  }
  .dungeon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .changelog-date {
    margin-left: 0;
  }
}
