/* ---------------------------------------------------------------------- */
/* Tokens — matched to the reference theme (weao.gg): neutral dark gray,   */
/* blue + green as the only accent colours, subtle 10%-white borders.      */
/* ---------------------------------------------------------------------- */
:root {
  --bg: #1a1a1a;
  --card: rgba(33, 36, 37, 0.55);
  --card-solid: #212425;
  --row-hover: #26292a;

  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-faint: #6b6b6b;

  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --green: #22c55e;

  --outline: rgba(255, 255, 255, 0.10);
  --outline-bright: rgba(255, 255, 255, 0.18);

  --radius: 10px;
  --radius-sm: 7px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1120px;
}

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

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

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.accent-text { color: var(--blue-bright); }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
}

/* ---------------------------------------------------------------------- */
/* Nav                                                                     */
/* ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { height: 22px; width: auto; display: block; }
.brand-word { font-size: 15.5px; font-weight: 600; color: var(--text); }
.brand-word .accent-text { color: var(--blue-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--card-solid); }
.nav-links a.is-active { color: var(--text); }

.nav-icon { width: 15px; height: 15px; flex-shrink: 0; }

.nav-cta {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--blue-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------- */
/* Shared bits                                                            */
/* ---------------------------------------------------------------------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }

.btn-ghost {
  background: var(--card);
  border-color: var(--outline);
  color: var(--text);
}
.btn-ghost:hover { background: var(--row-hover); border-color: var(--outline-bright); }

.btn-lg { padding: 12px 22px; font-size: 14.5px; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Page hero (used on features/modules pages — smaller than the homepage) */
/* ---------------------------------------------------------------------- */
.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 20px;
}

.page-hero h1 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); font-size: 15px; max-width: 560px; }

/* ---------------------------------------------------------------------- */
/* Hero (homepage)                                                         */
/* ---------------------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px 90px;
  text-align: center;
}

.hero-copy { max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 19px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-faint); }
.stat-sep { width: 1px; height: 28px; background: var(--outline); }

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px;
}

.section-alt { background: rgba(255,255,255,0.012); max-width: none; }
.section-alt > * { max-width: var(--container); margin: 0 auto; }

.section-head { max-width: 600px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; }

/* -- homepage quick highlights -- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.highlight-card:hover { border-color: var(--outline-bright); transform: translateY(-2px); }

.highlight-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  margin-bottom: 14px;
  font-size: 19px;
}
.highlight-icon .icon { width: 19px; height: 19px; color: var(--blue-bright); }

.highlight-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.highlight-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ---------------------------------------------------------------------- */
/* Features page                                                           */
/* ---------------------------------------------------------------------- */
.feature-list { display: flex; flex-direction: column; gap: 14px; }

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease;
}
.feature-item:hover { border-color: var(--outline-bright); }

.feature-icon-box {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--outline);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon-box .icon { width: 24px; height: 24px; color: var(--blue-bright); }

.feature-item h3 { font-size: 17px; margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }

.feature-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-modules span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--card-solid);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------------------------------------------------------------------- */
/* Purchase page                                                           */
/* ---------------------------------------------------------------------- */
.purchase-page { max-width: 980px; }

.discord-gate {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 40px;
}

.discord-gate-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  display: flex; align-items: center; justify-content: center;
}
.discord-gate-icon svg { width: 20px; height: 20px; color: var(--blue-bright); }

.discord-gate h3 { font-size: 15px; margin-bottom: 4px; }
.discord-gate p { font-size: 13px; color: var(--text-dim); }
.discord-gate .btn { flex-shrink: 0; margin-left: auto; }

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

.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card-popular { border-color: var(--blue); }

.price-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-name { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }

.price-amount { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; }
.price-num { font-size: 30px; font-weight: 700; }
.price-period { font-size: 13px; color: var(--text-faint); }

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-features li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.price-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.price-btn:last-child { margin-bottom: 0; }

.purchase-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 32px;
}
.purchase-note a { color: var(--blue-bright); }
.purchase-note a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Dashboard                                                                */
/* ---------------------------------------------------------------------- */
.dashboard-page { max-width: 900px; }

.login-gate {
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.login-gate-icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.login-gate-icon svg { width: 26px; height: 26px; color: #fff; }

.login-gate h3 { font-size: 19px; margin-bottom: 10px; }
.login-gate p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.account-who { display: flex; align-items: center; gap: 14px; }

.account-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.account-avatar svg { width: 20px; height: 20px; color: #fff; }

.account-tag { font-size: 15px; font-weight: 600; }
.account-plan { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.dash-card-head { display: flex; gap: 12px; margin-bottom: 18px; }

.dash-card-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  display: flex; align-items: center; justify-content: center;
}
.dash-card-icon svg { width: 18px; height: 18px; color: var(--blue-bright); }

.dash-card h3 { font-size: 14.5px; margin-bottom: 3px; }
.dash-card p { font-size: 12px; color: var(--text-faint); line-height: 1.4; }

.dash-action { justify-content: center; margin-top: auto; }
.dash-action.disabled, .dash-action:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.redeem-row { display: flex; gap: 8px; margin-bottom: 8px; }

.redeem-input {
  flex: 1;
  min-width: 0;
  background: var(--card-solid);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--mono);
}
.redeem-input:focus { outline: none; border-color: var(--blue); }
.redeem-input::placeholder { color: var(--text-faint); }

.dash-note { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.update-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-section h4 { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.update-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.update-section li { font-size: 13px; color: var(--text-dim); line-height: 1.5; padding-left: 16px; position: relative; }
.update-section li::before { content: "—"; position: absolute; left: 0; color: var(--text-faint); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
}
.faq-q span { color: var(--text-faint); font-weight: 400; transition: transform 0.2s ease; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 18px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 18px 18px; }

/* ---------------------------------------------------------------------- */
/* Legal pages                                                             */
/* ---------------------------------------------------------------------- */
.legal-page { max-width: 720px; }

.legal-block {
  padding: 22px 0;
  border-top: 1px solid var(--outline);
}
.legal-block:first-child { border-top: none; padding-top: 0; }

.legal-block h3 { font-size: 15.5px; margin-bottom: 8px; }
.legal-block p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
.legal-block p a { color: var(--blue-bright); }
.legal-block p a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Modules page — organized list rows                                     */
/* ---------------------------------------------------------------------- */
.module-groups { display: flex; flex-direction: column; gap: 34px; }

.module-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.module-group-head .icon { width: 16px; height: 16px; color: var(--blue-bright); }

.module-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.module-row {
  display: grid;
  grid-template-columns: 3px 160px 100px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--outline);
  margin-bottom: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.module-row:hover { border-color: var(--outline-bright); background: var(--row-hover); }

.module-bar {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  justify-self: start;
  background: var(--blue);
}

.module-name { font-size: 14.5px; font-weight: 600; }

.module-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--card-solid);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 3px 9px;
  width: fit-content;
}

.module-desc { font-size: 13px; color: var(--text-dim); }

/* ---------------------------------------------------------------------- */
/* CTA                                                                     */
/* ---------------------------------------------------------------------- */
.cta-section {
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-left: auto; margin-right: auto;
  border-radius: var(--radius);
  padding: 70px 40px;
  text-align: center;
  border: 1px solid var(--outline-bright);
  background: var(--card);
}

.cta-inner h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.cta-inner p { color: var(--text-dim); font-size: 15px; margin-bottom: 30px; }
.cta-actions { justify-content: center; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--outline);
  padding: 50px 24px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand { max-width: 280px; }
.footer-mark { height: 18px; opacity: 0.85; }
.footer-tag { color: var(--text-faint); font-size: 13px; margin: 10px 0 0; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 110px;
}

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--outline);
  padding: 20px 0;
}

.footer-bottom p { color: var(--text-faint); font-size: 12.5px; }

/* ---------------------------------------------------------------------- */
/* Toast                                                                   */
/* ---------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-solid);
  border: 1px solid var(--outline-bright);
  color: var(--text);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

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

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .module-row { grid-template-columns: 3px 1fr auto; }
  .module-desc { display: none; }
  .feature-item { grid-template-columns: 44px 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .update-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 53px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--outline);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 11px 0; }
  .nav-cta { width: 100%; text-align: center; margin-top: 4px; }
  .nav-toggle { display: flex; }

  .highlight-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .section { padding: 60px 20px; }
  .cta-section { padding: 50px 24px; margin: 0 16px; }
  .page-hero { padding: 50px 20px 10px; }
}
