/* ==========================================================================
   VOIDHAVEN SMP — STYLE
   Minimalist dark. Near-black surfaces, off-white type, subtle violet accent.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-raised: #111114;
  --bg-raised-2: #17171b;
  --border: #232327;
  --border-strong: #2f2f35;
  --text: #ededf0;
  --text-dim: #9a9aa2;
  --text-faint: #6a6a72;
  --accent: #8b7cf6;
  --accent-dim: #6f61c9;



  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-brand img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

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

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:hover {
  border-color: var(--text-faint);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #08070c;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO (home)
   ========================================================================== */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.9)), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-kicker {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 12ch;
}

.hero-tagline {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 28px;
  font-weight: 600;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }
}

/* ==========================================================================
   SERVER INFO
   ========================================================================== */

.info {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.info-cell:last-child {
  border-right: none;
}

.info-label {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.info-value {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  word-break: break-word;
}

.info-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-cell:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   CTA GRID (home: store / vote)
   ========================================================================== */

.cta-section {
  padding: 64px 0 96px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cta-card {
  display: block;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.cta-card:hover {
  border-color: var(--border-strong);
}

.cta-card-label {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.cta-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 10px;
}

.cta-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.cta-card-action {
  margin-top: 24px;
}



@media (max-width: 700px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGE HEADER (store / vote)
   ========================================================================== */

.page-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 14px;
}

.page-header p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 46ch;
  margin: 0;
}

/* ==========================================================================
   STORE — RANK CARDS
   ========================================================================== */

.ranks {
  padding: 56px 0 24px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rank-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.rank-card.is-featured {
  border-color: var(--accent-dim);
}

.rank-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}

.rank-term {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.rank-price {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px;
}

.rank-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.rank-features li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.rank-features li:first-child {
  border-top: none;
}

@media (max-width: 960px) {
  .rank-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .rank-grid {
    grid-template-columns: 1fr;
  }
}

.disclaimer {
  padding: 32px 0 72px;
  text-align: center;
}

.disclaimer-title {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 8px;
  font-weight: 600;
}

.disclaimer p {
  color: var(--text-faint);
  font-size: 13.5px;
  max-width: 52ch;
  margin: 0 auto;
}

/* ==========================================================================
   MODAL (store purchase form)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
}

.modal-header p {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field select {
  width: 100%;
  background: var(--bg-raised-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ==========================================================================
   VOTE LIST
   ========================================================================== */

.vote-list {
  padding: 56px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.vote-item {
  background: var(--bg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

}

.vote-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
}

.vote-item-desc {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0;
}

.vote-item .btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .vote-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .vote-item .btn {
    width: 100%;
  }
}

.vote-note {
  padding: 8px 0 72px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

.vote-rewards-box {
  background: var(--bg-raised-2);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-top: 16px;
  margin-bottom: 40px;
}

.vote-rewards-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.vote-rewards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.vote-rewards-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
}

.vote-instructions-box {
  background: rgba(139, 124, 246, 0.06);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-bottom: 40px;
}

.vote-instructions-box h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--accent);
}

.vote-instructions-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.vote-instructions-box ul li {
  margin-bottom: 8px;
}

.vote-instructions-box ul li:last-child {
  margin-bottom: 0;
}

.vote-instructions-box code {
  background: var(--bg-raised);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg-raised-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.footer-brand img {
  height: 28px;
  width: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-dim);
}

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

.footer-meta {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
