:root {
  --bg: #06140c;
  --bg-2: #08180f;
  --card: #0c1f14;
  --card-2: #12281a;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-soft: #4ade80;
  --ink: #ffffff;
  --muted: #abadb3;
  --dim: #6b7280;
  --line: #1f3d2a;
  --gold: #fbbf24;
  --radius: 12px;
  --max: 1600px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; background: var(--bg); }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-weight: 300; line-height: 1.2; }

.space { letter-spacing: 2px; word-spacing: 2.5px; }
.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* side glows, same shape as the original, green instead of blue */
.glow {
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 600px;
  height: 120vh;
  margin-top: -8rem;
  opacity: .22;
  z-index: 0;
}
.glow.left { left: 0; background: radial-gradient(ellipse at left, #22c55e, var(--bg), var(--bg)); }
.glow.right { right: 0; background: radial-gradient(ellipse at right, #22c55e, var(--bg), var(--bg)); }
@media (max-width: 1049px) { .glow { display: none; } }

/* NAV */
.nav {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 padding: 1rem 2rem .25rem;
 position: relative;
 z-index: 5;
 width: min(1280px, 100%);
 margin: 0 auto;
}
.brand {
 display: flex;
 align-items: center;
 gap: .1rem;
 color: #fff;
 flex: 0 0 auto;
}
.brand h2 { font-weight: 600; font-size: 1.35rem; letter-spacing: .12em; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.tabs {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 2rem;
}
.tab {
 color: var(--muted);
 font-size: .78rem;
 letter-spacing: .16em;
 position: relative;
 padding: .4rem 0 1rem;
 transition: color .15s;
 white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.active::after {
 content: "";
 position: absolute;
 left: 50%;
 bottom: .15rem;
 transform: translateX(-50%);
 width: .38rem;
 height: .38rem;
 border-radius: 999px;
 background: var(--muted);
}
.tab.premium {
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(251, 191, 36, .5);
  animation: pulse 2s ease-in-out infinite;
}
.tab.premium:hover { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.nav-end {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 gap: .45rem;
 flex: 0 0 auto;
}
.lang {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 36px;
 height: 36px;
 padding: 0 .55rem;
 border-radius: 10px;
 border: 1px solid var(--line);
 background: rgba(12, 31, 20, .7);
 color: var(--muted);
 font-size: .72rem;
 font-weight: 700;
 letter-spacing: .12em;
}
.lang:hover { color: #fff; border-color: var(--accent); }

.flip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}
.flip span, .flip img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .28s ease;
  white-space: nowrap;
}
.flip img { width: 32px; height: 32px; object-fit: contain; transform: translate(-50%, calc(-50% - 48px)); }
.flip:hover span { transform: translate(-50%, calc(-50% + 48px)); }
.flip:hover img { transform: translate(-50%, -50%); }
.flip.login { width: 112px; height: 32px; background: #fff; }
.flip.login span { color: var(--accent-2); font-size: 16px; letter-spacing: 1px; }
.flip.add { width: 220px; height: 48px; background: var(--accent-2); }
.flip.add span { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.flip.sub { width: 160px; height: 56px; background: var(--accent-2); }
.flip.sub span { color: #fff; font-size: 16px; }
.flip.go { width: 192px; height: 48px; background: #fff; }
.flip.go span { color: var(--accent-2); font-size: 16px; letter-spacing: 1px; }

.who {
 display: inline-flex;
 align-items: center;
 gap: .5rem;
 height: 36px;
 background: var(--card);
 color: #fff;
 border: 1px solid var(--line);
 border-radius: 10px;
 padding: 0 .7rem 0 .2rem;
 font-weight: 600;
 font-size: .82rem;
 letter-spacing: .02em;
}
.who:hover { border-color: var(--accent); }
.who img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; position: static; transform: none; }
.out {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 36px;
 height: 36px;
 border-radius: 10px;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--muted);
}
.out:hover { color: #fff; border-color: var(--accent); }

/* ── landing ── */
.stage {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 3.5rem;
 padding: 1rem 1.25rem 4rem;
 position: relative;
 z-index: 1;
 width: min(1180px, 100%);
 margin: 0 auto;
}
.hero {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}
@media (min-width: 768px) { .hero { gap: 5rem; } }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-copy { width: 33%; align-items: flex-start; }
  .hero-copy h1, .hero-copy p { text-align: left; }
}
.hero-copy h1 { font-size: 2.25rem; font-weight: 300; text-align: center; }
.hero-copy p { color: var(--muted); font-size: 1.25rem; text-align: center; letter-spacing: 2px; }
.hero-mark {
  width: 320px;
  height: 320px;
  display: none;
}
@media (min-width: 768px) {
  .hero-mark { display: block; width: 384px; height: 384px; }
}
.hero-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }

.row3, .row-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}
@media (min-width: 1280px) {
  .row3 { justify-content: space-between; }
 .row-chips { justify-content: center; gap: 1rem; }
}
.feat, .chip {
  width: 320px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(0,0,0,.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background .15s;
}
.feat:hover, .chip:hover { background: #10301c; }
.feat h2, .chip h2 { font-size: 1.25rem; font-weight: 300; text-align: center; }
.feat p { color: var(--muted); text-align: center; font-size: 1rem; }
.feat .ico { width: 36px; height: 36px; object-fit: contain; }
.chip { width: 260px; height: 58px; justify-content: center; padding: 0 .8rem; }
.chip h2 { font-size: .95rem; line-height: 1.2; }
.chip.prem { background: var(--card-2); }
.chip .float { display: none; }
.more { color: var(--muted); font-size: 1.25rem; font-weight: 400; }

.banner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #14532d;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .banner { justify-content: space-between; } }
.banner h2 { font-size: 2.25rem; font-weight: 700; position: relative; z-index: 2; }
.banner p { color: #e5e7eb; font-size: 1.125rem; text-align: center; position: relative; z-index: 2; }
@media (min-width: 1024px) { .banner p { width: 33%; text-align: left; } }
.banner .ghost { display: none; }

.statblock { margin-top: 2rem; width: 100%; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.statblock .kicker { color: #6b7280; font-weight: 600; letter-spacing: 1px; }
.statblock .big { color: var(--accent); font-weight: 700; font-size: clamp(4rem, 8vw, 6rem); line-height: .9; }
.statblock .sub { color: #9ca3af; font-size: 1.5rem; letter-spacing: 2px; max-width: 50%; }
@media (max-width: 640px) { .statblock .sub { max-width: 100%; } }

.section { width: 100%; display: flex; flex-direction: column; gap: 2rem; }
.head { position: relative; width: 100%; margin-bottom: .25rem; }
.head .small, .head .large { position: relative; z-index: 1; }
.head .small { font-weight: 700; font-size: 1rem; letter-spacing: .06em; }
.head .large { color: var(--accent); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.15rem); }
.head .ghost { display: none; }
.split { display: flex; flex-wrap: wrap; gap: 2rem; width: 100%; align-items: stretch; }
.copy { flex: 1 1 320px; color: var(--muted); font-size: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.demo { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(0,0,0,.1);
  padding: 1rem;
  width: min(400px, 100%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.panel h3 { font-size: 1.6rem; font-weight: 700; }
.metrics { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem; width: 100%; margin: auto 0; }
.metrics span { display: block; text-align: center; }
.metrics .l { color: #9ca3af; font-size: .8rem; letter-spacing: 1px; }
.metrics .v { color: #e5e7eb; }
.log {
  width: min(400px, 100%);
  background: #07150c;
  border-radius: var(--radius);
  padding: 1rem;
  color: #9ca3af;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.cmd {
  width: 100%;
  background: var(--card);
  box-shadow: 0 0 0 8px rgba(0,0,0,.1);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
}
.pill {
  display: inline-block;
  background: rgba(0,0,0,.5);
  border-radius: 12px;
  padding: .15rem .4rem;
  margin: 0 .15rem;
  font-size: .85rem;
  color: #e5e7eb;
}

.cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: rgba(22, 163, 74, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 1rem;
}
.cta h2 { font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.25rem); text-align: center; letter-spacing: 2px; color: #f3f4f6; }

/* ── footer ── */
.foot {
  border-top: 1px solid #374151;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}
.foot-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h3 { letter-spacing: 2px; font-size: 1.25rem; }
.foot h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .6rem; }
.foot p, .foot a { color: #9ca3af; font-size: .9rem; }
.foot a:hover { color: var(--accent-soft); }
.foot .col { display: flex; flex-direction: column; gap: .5rem; }
.foot-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.foot-brand img { width: 52px; height: 52px; object-fit: contain; }
.foot-bottom {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #6b7280;
  font-size: .85rem;
}

/* ── inner pages + dashboard, same cards ── */
.page {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page h1 { font-size: 2rem; font-weight: 600; letter-spacing: 1px; }
.page .lead { color: var(--muted); max-width: 68ch; }

.guild-grid, .guard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.guild-card, .guard-card {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(0,0,0,.08);
  padding: 1.1rem;
  color: #fff;
  transition: background .15s;
}
.guild-card:hover, .guard-card:hover { background: #10301c; }
.guild-card img, .guild-card-icon {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.guild-card-icon {
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); color: var(--accent); font-weight: 700; font-size: 1.2rem;
}
.guild-card strong, .guard-card-title { display: block; font-weight: 600; }
.guild-card span, .guard-card-cmd, .guard-card-desc { color: var(--muted); font-size: .85rem; }
.guild-card.invite { opacity: .7; }
.guard-card { flex-direction: column; }
.guard-card.on { outline: 1px solid rgba(34,197,94,.45); }
.guard-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; letter-spacing: 1px; font-weight: 700;
  padding: .1rem .45rem; border-radius: 999px;
}
.guard-badge.on { background: #14532d; color: var(--accent-soft); }
.guard-badge.off { background: #1f2937; color: #9ca3af; }
.guard-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.page-head h1 { font-size: 1.6rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.page-head p { color: var(--muted); }
.crumb { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .35rem; }
.crumb a:hover { color: #fff; }

.master-bar, .guard-detail, .note {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(0,0,0,.08);
  padding: 1rem 1.1rem;
}
.master-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.note { color: var(--accent-soft); }
.note.success { outline: 1px solid var(--accent); }
label { display: grid; gap: .3rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
input, select, textarea {
  background: #07150c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 7rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.toggle-row { display: flex; align-items: center; gap: .5rem; }
.btn {
  background: var(--accent-2);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: .6rem 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.btn:hover { background: #15803d; }
.btn.sm { padding: .4rem .8rem; font-size: .85rem; }

.legal h2 { font-size: 1.1rem; font-weight: 600; margin-top: .6rem; }
.legal p { color: var(--muted); }

@media (max-width: 640px) {
  .brand span { font-size: 1rem; }
  .tabs { gap: 1rem; }
  .statblock .big { font-size: 3.2rem; }
}

@media (max-width: 980px) {
 .nav { flex-wrap: wrap; justify-content: center; padding: 1rem; }
 .tabs { order: 3; width: 100%; gap: 1rem 1.4rem; }
 .nav-end { margin-left: auto; }
 .hero-copy { width: 100%; }
}
